mirror of
https://github.com/status-im/react-native.git
synced 2025-01-13 11:05:21 +00:00
Flowtype ProgressViewIOS
Reviewed By: yungsters Differential Revision: D7985969 fbshipit-source-id: d351ebc26e7be2741c93ce462ae59aa13d0c1f27
This commit is contained in:
parent
1c66cdc7e8
commit
c87701ba05
@ -13,6 +13,7 @@
|
||||
const Image = require('Image');
|
||||
const NativeMethodsMixin = require('NativeMethodsMixin');
|
||||
const React = require('React');
|
||||
const ReactNative = require('ReactNative');
|
||||
const PropTypes = require('prop-types');
|
||||
const StyleSheet = require('StyleSheet');
|
||||
const ViewPropTypes = require('ViewPropTypes');
|
||||
@ -20,6 +21,20 @@ const ViewPropTypes = require('ViewPropTypes');
|
||||
const createReactClass = require('create-react-class');
|
||||
const requireNativeComponent = require('requireNativeComponent');
|
||||
|
||||
import type {ImageSource} from 'ImageSource';
|
||||
import type {ColorValue} from 'StyleSheetTypes';
|
||||
import type {ViewProps} from 'ViewPropTypes';
|
||||
|
||||
type Props = $ReadOnly<{|
|
||||
...ViewProps,
|
||||
progressViewStyle?: ?('default' | 'bar'),
|
||||
progress?: ?number,
|
||||
progressTintColor?: ?ColorValue,
|
||||
trackTintColor?: ?string,
|
||||
progressImage?: ?ImageSource,
|
||||
trackImage?: ?ImageSource,
|
||||
|}>;
|
||||
|
||||
/**
|
||||
* Use `ProgressViewIOS` to render a UIProgressView on iOS.
|
||||
*/
|
||||
@ -81,4 +96,6 @@ const RCTProgressView = requireNativeComponent(
|
||||
ProgressViewIOS,
|
||||
);
|
||||
|
||||
module.exports = ProgressViewIOS;
|
||||
module.exports = ((ProgressViewIOS: any): Class<
|
||||
ReactNative.NativeComponent<Props>,
|
||||
>);
|
||||
|
Loading…
x
Reference in New Issue
Block a user