File tree Expand file tree Collapse file tree 2 files changed +16
-21
lines changed
Libraries/Components/TextInput Expand file tree Collapse file tree 2 files changed +16
-21
lines changed Original file line number Diff line number Diff line change 1010
1111'use strict' ;
1212
13- /* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
14- * found when Flow v0.54 was deployed. To see the error delete this comment and
15- * run Flow. */
1613const requestAnimationFrame = require ( 'fbjs/lib/requestAnimationFrame' ) ;
1714const React = require ( 'react' ) ;
18- const PropTypes = require ( 'prop-types' ) ;
1915const ReactNative = require ( 'react-native' ) ;
2016const { Text, View} = ReactNative ;
2117const { TestModule} = ReactNative . NativeModules ;
2218
23- class IntegrationTestHarnessTest extends React . Component <
24- {
25- shouldThrow ?: boolean ,
26- waitOneFrame ?: boolean ,
27- } ,
28- $FlowFixMeState ,
29- > {
30- static propTypes = {
31- shouldThrow : PropTypes . bool ,
32- waitOneFrame : PropTypes . bool ,
33- } ;
19+ type Props = $ReadOnly < { |
20+ shouldThrow ?: boolean ,
21+ waitOneFrame ?: boolean ,
22+ | } > ;
23+
24+ type State = { |
25+ done : boolean ,
26+ | } ;
3427
28+ class IntegrationTestHarnessTest extends React . Component < Props , State > {
3529 state = {
3630 done : false ,
3731 } ;
Original file line number Diff line number Diff line change 1010'use strict' ;
1111
1212const DeprecatedColorPropType = require ( 'DeprecatedColorPropType' ) ;
13- const DeprecatedViewPropTypes = require ( 'DeprecatedViewPropTypes' ) ;
1413const Platform = require ( 'Platform' ) ;
1514const React = require ( 'React' ) ;
1615const StyleSheet = require ( 'StyleSheet' ) ;
@@ -19,6 +18,8 @@ const requireNativeComponent = require('requireNativeComponent');
1918
2019const RCTInputAccessoryView = requireNativeComponent ( 'RCTInputAccessoryView' ) ;
2120
21+ import type { ViewStyleProp } from 'StyleSheet' ;
22+
2223/**
2324 * Note: iOS only
2425 *
@@ -77,16 +78,16 @@ const RCTInputAccessoryView = requireNativeComponent('RCTInputAccessoryView');
7778 * For an example, look at InputAccessoryViewExample.js in RNTester.
7879 */
7980
80- type Props = {
81+ type Props = $ReadOnly < { |
8182 + children : React . Node ,
8283 /**
8384 * An ID which is used to associate this `InputAccessoryView` to
8485 * specified TextInput(s).
8586 */
86- nativeID ?: string ,
87- style ?: DeprecatedViewPropTypes . style ,
88- backgroundColor ?: DeprecatedColorPropType ,
89- } ;
87+ nativeID ?: ? string ,
88+ style ?: ? ViewStyleProp ,
89+ backgroundColor ?: ? DeprecatedColorPropType ,
90+ | } > ;
9091
9192class InputAccessoryView extends React . Component < Props > {
9293 render ( ) : React . Node {
You can’t perform that action at this time.
0 commit comments