1*fe5cfb17STomasz Sapeta/** 2*fe5cfb17STomasz Sapeta * Copyright (c) Meta Platforms, Inc. and affiliates. 3*fe5cfb17STomasz Sapeta * 4*fe5cfb17STomasz Sapeta * This source code is licensed under the MIT license found in the 5*fe5cfb17STomasz Sapeta * LICENSE file in the root directory of this source tree. 6*fe5cfb17STomasz Sapeta * 7*fe5cfb17STomasz Sapeta * @format 8*fe5cfb17STomasz Sapeta */ 9*fe5cfb17STomasz Sapeta 10*fe5cfb17STomasz Sapetaimport type * as React from 'react'; 11*fe5cfb17STomasz Sapetaimport {Constructor} from '../../../types/private/Utilities'; 12*fe5cfb17STomasz Sapetaimport {NativeMethods} from '../../../types/public/ReactNativeTypes'; 13*fe5cfb17STomasz Sapetaimport {ColorValue} from '../../StyleSheet/StyleSheet'; 14*fe5cfb17STomasz Sapetaimport {ViewProps} from '../View/ViewPropTypes'; 15*fe5cfb17STomasz Sapeta 16*fe5cfb17STomasz Sapeta/** 17*fe5cfb17STomasz Sapeta * ProgressBarAndroid has been extracted from react-native core and will be removed in a future release. 18*fe5cfb17STomasz Sapeta * It can now be installed and imported from `@react-native-community/progress-bar-android` instead of 'react-native'. 19*fe5cfb17STomasz Sapeta * @see https://github.com/react-native-community/progress-bar-android 20*fe5cfb17STomasz Sapeta * @deprecated 21*fe5cfb17STomasz Sapeta */ 22*fe5cfb17STomasz Sapetaexport interface ProgressBarAndroidProps extends ViewProps { 23*fe5cfb17STomasz Sapeta /** 24*fe5cfb17STomasz Sapeta * Style of the ProgressBar. One of: 25*fe5cfb17STomasz Sapeta Horizontal 26*fe5cfb17STomasz Sapeta Normal (default) 27*fe5cfb17STomasz Sapeta Small 28*fe5cfb17STomasz Sapeta Large 29*fe5cfb17STomasz Sapeta Inverse 30*fe5cfb17STomasz Sapeta SmallInverse 31*fe5cfb17STomasz Sapeta LargeInverse 32*fe5cfb17STomasz Sapeta */ 33*fe5cfb17STomasz Sapeta styleAttr?: 34*fe5cfb17STomasz Sapeta | 'Horizontal' 35*fe5cfb17STomasz Sapeta | 'Normal' 36*fe5cfb17STomasz Sapeta | 'Small' 37*fe5cfb17STomasz Sapeta | 'Large' 38*fe5cfb17STomasz Sapeta | 'Inverse' 39*fe5cfb17STomasz Sapeta | 'SmallInverse' 40*fe5cfb17STomasz Sapeta | 'LargeInverse' 41*fe5cfb17STomasz Sapeta | undefined; 42*fe5cfb17STomasz Sapeta 43*fe5cfb17STomasz Sapeta /** 44*fe5cfb17STomasz Sapeta * If the progress bar will show indeterminate progress. 45*fe5cfb17STomasz Sapeta * Note that this can only be false if styleAttr is Horizontal. 46*fe5cfb17STomasz Sapeta */ 47*fe5cfb17STomasz Sapeta indeterminate?: boolean | undefined; 48*fe5cfb17STomasz Sapeta 49*fe5cfb17STomasz Sapeta /** 50*fe5cfb17STomasz Sapeta * The progress value (between 0 and 1). 51*fe5cfb17STomasz Sapeta */ 52*fe5cfb17STomasz Sapeta progress?: number | undefined; 53*fe5cfb17STomasz Sapeta 54*fe5cfb17STomasz Sapeta /** 55*fe5cfb17STomasz Sapeta * Whether to show the ProgressBar (true, the default) or hide it (false). 56*fe5cfb17STomasz Sapeta */ 57*fe5cfb17STomasz Sapeta animating?: boolean | undefined; 58*fe5cfb17STomasz Sapeta 59*fe5cfb17STomasz Sapeta /** 60*fe5cfb17STomasz Sapeta * Color of the progress bar. 61*fe5cfb17STomasz Sapeta */ 62*fe5cfb17STomasz Sapeta color?: ColorValue | undefined; 63*fe5cfb17STomasz Sapeta 64*fe5cfb17STomasz Sapeta /** 65*fe5cfb17STomasz Sapeta * Used to locate this view in end-to-end tests. 66*fe5cfb17STomasz Sapeta */ 67*fe5cfb17STomasz Sapeta testID?: string | undefined; 68*fe5cfb17STomasz Sapeta} 69*fe5cfb17STomasz Sapeta 70*fe5cfb17STomasz Sapeta/** 71*fe5cfb17STomasz Sapeta * React component that wraps the Android-only `ProgressBar`. This component is used to indicate 72*fe5cfb17STomasz Sapeta * that the app is loading or there is some activity in the app. 73*fe5cfb17STomasz Sapeta */ 74*fe5cfb17STomasz Sapetadeclare class ProgressBarAndroidComponent extends React.Component<ProgressBarAndroidProps> {} 75*fe5cfb17STomasz Sapetadeclare const ProgressBarAndroidBase: Constructor<NativeMethods> & 76*fe5cfb17STomasz Sapeta typeof ProgressBarAndroidComponent; 77*fe5cfb17STomasz Sapeta/** 78*fe5cfb17STomasz Sapeta * ProgressBarAndroid has been extracted from react-native core and will be removed in a future release. 79*fe5cfb17STomasz Sapeta * It can now be installed and imported from `@react-native-community/progress-bar-android` instead of 'react-native'. 80*fe5cfb17STomasz Sapeta * @see https://github.com/react-native-progress-view/progress-bar-android 81*fe5cfb17STomasz Sapeta * @deprecated 82*fe5cfb17STomasz Sapeta */ 83*fe5cfb17STomasz Sapetaexport class ProgressBarAndroid extends ProgressBarAndroidBase {} 84