1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | import type * as React from 'react';
|
11 | import {Constructor} from '../../../types/private/Utilities';
|
12 | import {NativeMethods} from '../../../types/public/ReactNativeTypes';
|
13 | import {ColorValue, StyleProp} from '../../StyleSheet/StyleSheet';
|
14 | import {ViewStyle} from '../../StyleSheet/StyleSheetTypes';
|
15 | import {LayoutChangeEvent} from '../../Types/CoreEventTypes';
|
16 | import {ViewProps} from '../View/ViewPropTypes';
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | export interface ActivityIndicatorProps extends ViewProps {
|
22 | |
23 |
|
24 |
|
25 | animating?: boolean | undefined;
|
26 |
|
27 | |
28 |
|
29 |
|
30 | color?: ColorValue | undefined;
|
31 |
|
32 | |
33 |
|
34 |
|
35 | hidesWhenStopped?: boolean | undefined;
|
36 |
|
37 | |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 | size?: number | 'small' | 'large' | undefined;
|
44 |
|
45 | style?: StyleProp<ViewStyle> | undefined;
|
46 | }
|
47 |
|
48 | declare class ActivityIndicatorComponent extends React.Component<ActivityIndicatorProps> {}
|
49 | declare const ActivityIndicatorBase: Constructor<NativeMethods> &
|
50 | typeof ActivityIndicatorComponent;
|
51 | export class ActivityIndicator extends ActivityIndicatorBase {}
|
52 |
|
53 |
|
54 |
|
55 |
|
56 | export interface ActivityIndicatorIOSProps extends ViewProps {
|
57 | |
58 |
|
59 |
|
60 | animating?: boolean | undefined;
|
61 |
|
62 | |
63 |
|
64 |
|
65 | color?: ColorValue | undefined;
|
66 |
|
67 | |
68 |
|
69 |
|
70 | hidesWhenStopped?: boolean | undefined;
|
71 |
|
72 | |
73 |
|
74 |
|
75 | onLayout?: ((event: LayoutChangeEvent) => void) | undefined;
|
76 |
|
77 | /**
|
78 | * Size of the indicator.
|
79 | * Small has a height of 20, large has a height of 36.
|
80 | *
|
81 | * enum('small', 'large')
|
82 | */
|
83 | size?: 'small' | 'large' | undefined;
|
84 |
|
85 | style?: StyleProp<ViewStyle> | undefined;
|
86 | }
|
87 |
|
\ | No newline at end of file |