diff --git a/IntegrationTests/IntegrationTestHarnessTest.js b/IntegrationTests/IntegrationTestHarnessTest.js index 0489a0ae41972d..e1469dda1b418a 100644 --- a/IntegrationTests/IntegrationTestHarnessTest.js +++ b/IntegrationTests/IntegrationTestHarnessTest.js @@ -10,28 +10,22 @@ 'use strict'; -/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error - * found when Flow v0.54 was deployed. To see the error delete this comment and - * run Flow. */ const requestAnimationFrame = require('fbjs/lib/requestAnimationFrame'); const React = require('react'); -const PropTypes = require('prop-types'); const ReactNative = require('react-native'); const {Text, View} = ReactNative; const {TestModule} = ReactNative.NativeModules; -class IntegrationTestHarnessTest extends React.Component< - { - shouldThrow?: boolean, - waitOneFrame?: boolean, - }, - $FlowFixMeState, -> { - static propTypes = { - shouldThrow: PropTypes.bool, - waitOneFrame: PropTypes.bool, - }; +type Props = $ReadOnly<{| + shouldThrow?: boolean, + waitOneFrame?: boolean, +|}>; + +type State = {| + done: boolean, +|}; +class IntegrationTestHarnessTest extends React.Component { state = { done: false, }; diff --git a/Libraries/Components/TextInput/InputAccessoryView.js b/Libraries/Components/TextInput/InputAccessoryView.js index 7bd7f7d04d6955..2e7f906096c3b0 100644 --- a/Libraries/Components/TextInput/InputAccessoryView.js +++ b/Libraries/Components/TextInput/InputAccessoryView.js @@ -10,7 +10,6 @@ 'use strict'; const DeprecatedColorPropType = require('DeprecatedColorPropType'); -const DeprecatedViewPropTypes = require('DeprecatedViewPropTypes'); const Platform = require('Platform'); const React = require('React'); const StyleSheet = require('StyleSheet'); @@ -19,6 +18,8 @@ const requireNativeComponent = require('requireNativeComponent'); const RCTInputAccessoryView = requireNativeComponent('RCTInputAccessoryView'); +import type {ViewStyleProp} from 'StyleSheet'; + /** * Note: iOS only * @@ -77,16 +78,16 @@ const RCTInputAccessoryView = requireNativeComponent('RCTInputAccessoryView'); * For an example, look at InputAccessoryViewExample.js in RNTester. */ -type Props = { +type Props = $ReadOnly<{| +children: React.Node, /** * An ID which is used to associate this `InputAccessoryView` to * specified TextInput(s). */ - nativeID?: string, - style?: DeprecatedViewPropTypes.style, - backgroundColor?: DeprecatedColorPropType, -}; + nativeID?: ?string, + style?: ?ViewStyleProp, + backgroundColor?: ?DeprecatedColorPropType, +|}>; class InputAccessoryView extends React.Component { render(): React.Node {