@react-native-community/progress-bar-android
Version:
Progress Bar component for React Native
31 lines (25 loc) • 709 B
JavaScript
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
;
import {requireNativeComponent} from 'react-native';
import type {HostComponent, ViewProps, Double, WithDefault} from 'react-native';
type NativeProps = $ReadOnly<{|
...ViewProps,
//Props
styleAttr?: string,
typeAttr?: string,
indeterminate: boolean,
progress?: WithDefault<Double, 0>,
animating?: WithDefault<boolean, true>,
color?: ?string,
testID?: ?string,
|}>;
export default (requireNativeComponent<NativeProps>(
'RNCProgressBar',
): HostComponent<NativeProps>);