UNPKG

2.31 kBTypeScriptView Raw
1import * as React from 'react';
2import { StyleProp, View, ViewStyle } from 'react-native';
3declare type Props = React.ComponentPropsWithRef<typeof View> & {
4 /**
5 * Whether to show the indicator or hide it.
6 */
7 animating?: boolean;
8 /**
9 * The color of the spinner.
10 */
11 color?: string;
12 /**
13 * Size of the indicator.
14 */
15 size?: 'small' | 'large' | number;
16 /**
17 * Whether the indicator should hide when not animating.
18 */
19 hidesWhenStopped?: boolean;
20 style?: StyleProp<ViewStyle>;
21 /**
22 * @optional
23 */
24 theme: ReactNativePaper.Theme;
25};
26declare const _default: React.ComponentType<Pick<import("react-native").ViewProps & React.RefAttributes<View> & {
27 /**
28 * Whether to show the indicator or hide it.
29 */
30 animating?: boolean | undefined;
31 /**
32 * The color of the spinner.
33 */
34 color?: string | undefined;
35 /**
36 * Size of the indicator.
37 */
38 size?: number | "small" | "large" | undefined;
39 /**
40 * Whether the indicator should hide when not animating.
41 */
42 hidesWhenStopped?: boolean | undefined;
43 style?: StyleProp<ViewStyle>;
44 /**
45 * @optional
46 */
47 theme: ReactNativePaper.Theme;
48}, "color" | "size" | keyof import("react-native").ViewProps | keyof React.RefAttributes<View> | "animating" | "hidesWhenStopped"> & {
49 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
50}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<import("react-native").ViewProps & React.RefAttributes<View> & {
51 /**
52 * Whether to show the indicator or hide it.
53 */
54 animating?: boolean | undefined;
55 /**
56 * The color of the spinner.
57 */
58 color?: string | undefined;
59 /**
60 * Size of the indicator.
61 */
62 size?: number | "small" | "large" | undefined;
63 /**
64 * Whether the indicator should hide when not animating.
65 */
66 hidesWhenStopped?: boolean | undefined;
67 style?: StyleProp<ViewStyle>;
68 /**
69 * @optional
70 */
71 theme: ReactNativePaper.Theme;
72}> & (({ animating, color: indicatorColor, hidesWhenStopped, size: indicatorSize, style, theme, ...rest }: Props) => JSX.Element), {}>;
73export default _default;
74
\No newline at end of file