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