UNPKG

@react-native-community/progress-bar-android

Version:
42 lines (39 loc) 974 B
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes'; export type ProgressBarAndroidProps = $ReadOnly<{| ...ViewProps, /** * Style of the ProgressBar and whether it shows indeterminate progress (e.g. spinner). * * `indeterminate` can only be false if `styleAttr` is Horizontal, and requires a * `progress` value. */ ... | {| styleAttr: 'Horizontal', indeterminate: false, progress: number, |} | {| typeAttr: | 'Horizontal' | 'Normal' | 'Small' | 'Large' | 'Inverse' | 'SmallInverse' | 'LargeInverse', indeterminate: true, |}, /** * Whether to show the ProgressBar (true, the default) or hide it (false). */ animating?: ?boolean, /** * Color of the progress bar. */ color?: ?string, /** * Used to locate this view in end-to-end tests. */ testID?: ?string, |}>;