Skip to content

Commit

Permalink
Flowtype ProgressViewIOS
Browse files Browse the repository at this point in the history
Reviewed By: yungsters

Differential Revision: D7985969

fbshipit-source-id: d351ebc26e7be2741c93ce462ae59aa13d0c1f27
  • Loading branch information
TheSavior authored and facebook-github-bot committed May 14, 2018
1 parent 1c66cdc commit c87701b
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js
Expand Up @@ -13,13 +13,28 @@
const Image = require('Image'); const Image = require('Image');
const NativeMethodsMixin = require('NativeMethodsMixin'); const NativeMethodsMixin = require('NativeMethodsMixin');
const React = require('React'); const React = require('React');
const ReactNative = require('ReactNative');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');
const StyleSheet = require('StyleSheet'); const StyleSheet = require('StyleSheet');
const ViewPropTypes = require('ViewPropTypes'); const ViewPropTypes = require('ViewPropTypes');


const createReactClass = require('create-react-class'); const createReactClass = require('create-react-class');
const requireNativeComponent = require('requireNativeComponent'); 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. * Use `ProgressViewIOS` to render a UIProgressView on iOS.
*/ */
Expand Down Expand Up @@ -81,4 +96,6 @@ const RCTProgressView = requireNativeComponent(
ProgressViewIOS, ProgressViewIOS,
); );


module.exports = ProgressViewIOS; module.exports = ((ProgressViewIOS: any): Class<
ReactNative.NativeComponent<Props>,
>);

0 comments on commit c87701b

Please sign in to comment.