UNPKG

2.71 kBTypeScriptView Raw
1import * as React from 'react';
2import { View, ViewStyle, StyleProp } from 'react-native';
3declare type Props = React.ComponentPropsWithRef<typeof View> & {
4 /**
5 * Progress value (between 0 and 1).
6 */
7 progress?: number;
8 /**
9 * Color of the progress bar. The background color will be calculated based on this but you can change it by passing `backgroundColor` to `style` prop.
10 */
11 color?: string;
12 /**
13 * If the progress bar will show indeterminate progress.
14 */
15 indeterminate?: boolean;
16 /**
17 * Whether to show the ProgressBar (true, the default) or hide it (false).
18 */
19 visible?: 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 * Progress value (between 0 and 1).
29 */
30 progress?: number | undefined;
31 /**
32 * Color of the progress bar. The background color will be calculated based on this but you can change it by passing `backgroundColor` to `style` prop.
33 */
34 color?: string | undefined;
35 /**
36 * If the progress bar will show indeterminate progress.
37 */
38 indeterminate?: boolean | undefined;
39 /**
40 * Whether to show the ProgressBar (true, the default) or hide it (false).
41 */
42 visible?: boolean | undefined;
43 style?: StyleProp<ViewStyle>;
44 /**
45 * @optional
46 */
47 theme: ReactNativePaper.Theme;
48}, "progress" | "color" | "visible" | keyof import("react-native").ViewProps | keyof React.RefAttributes<View> | "indeterminate"> & {
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 * Progress value (between 0 and 1).
53 */
54 progress?: number | undefined;
55 /**
56 * Color of the progress bar. The background color will be calculated based on this but you can change it by passing `backgroundColor` to `style` prop.
57 */
58 color?: string | undefined;
59 /**
60 * If the progress bar will show indeterminate progress.
61 */
62 indeterminate?: boolean | undefined;
63 /**
64 * Whether to show the ProgressBar (true, the default) or hide it (false).
65 */
66 visible?: boolean | undefined;
67 style?: StyleProp<ViewStyle>;
68 /**
69 * @optional
70 */
71 theme: ReactNativePaper.Theme;
72}> & (({ color, indeterminate, style, progress, visible, theme, ...rest }: Props) => JSX.Element), {}>;
73export default _default;
74
\No newline at end of file