diff --git a/.flowconfig b/.flowconfig index 46d67e2f6b2..9bb440b3968 100644 --- a/.flowconfig +++ b/.flowconfig @@ -82,4 +82,4 @@ untyped-import untyped-type-import [version] -^0.220.1 +^0.221.0 diff --git a/package.json b/package.json index 7d2d5040e2f..02dc6a06048 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "eslint-plugin-redundant-undefined": "^0.4.0", "eslint-plugin-relay": "^1.8.3", "flow-api-translator": "0.17.1", - "flow-bin": "^0.220.1", + "flow-bin": "^0.221.0", "glob": "^7.1.1", "hermes-eslint": "0.17.1", "inquirer": "^7.1.0", diff --git a/packages/react-native/Libraries/ActionSheetIOS/ActionSheetIOS.js b/packages/react-native/Libraries/ActionSheetIOS/ActionSheetIOS.js index 5366c0ccc2c..e970cdc06a6 100644 --- a/packages/react-native/Libraries/ActionSheetIOS/ActionSheetIOS.js +++ b/packages/react-native/Libraries/ActionSheetIOS/ActionSheetIOS.js @@ -89,7 +89,9 @@ const ActionSheetIOS = { RCTActionSheetManager.showActionSheetWithOptions( { ...remainingOptions, + // $FlowFixMe[incompatible-call] tintColor: processedTintColor, + // $FlowFixMe[incompatible-call] cancelButtonTintColor: processedCancelButtonTintColor, destructiveButtonIndices, }, diff --git a/packages/react-native/Libraries/Components/DrawerAndroid/__tests__/DrawerAndroid-test.js b/packages/react-native/Libraries/Components/DrawerAndroid/__tests__/DrawerAndroid-test.js index 5a9896c1e05..adf22019ab0 100644 --- a/packages/react-native/Libraries/Components/DrawerAndroid/__tests__/DrawerAndroid-test.js +++ b/packages/react-native/Libraries/Components/DrawerAndroid/__tests__/DrawerAndroid-test.js @@ -16,6 +16,7 @@ const View = require('../../View/View'); /* $FlowFixMe[cannot-resolve-module] (>=0.99.0 site=react_native_ios_fb) This * comment suppresses an error found when Flow v0.99 was deployed. To see the * error, delete this comment and run Flow. */ +// $FlowFixMe[missing-platform-support] const DrawerLayoutAndroid = require('../DrawerLayoutAndroid.android'); const React = require('react'); diff --git a/packages/react-native/Libraries/Components/Pressable/useAndroidRippleForView.js b/packages/react-native/Libraries/Components/Pressable/useAndroidRippleForView.js index 44e78c45421..20dd19e9691 100644 --- a/packages/react-native/Libraries/Components/Pressable/useAndroidRippleForView.js +++ b/packages/react-native/Libraries/Components/Pressable/useAndroidRippleForView.js @@ -71,8 +71,10 @@ export default function useAndroidRippleForView( return { viewProps: foreground === true - ? {nativeForegroundAndroid: nativeRippleValue} - : {nativeBackgroundAndroid: nativeRippleValue}, + ? // $FlowFixMe[incompatible-return] + {nativeForegroundAndroid: nativeRippleValue} + : // $FlowFixMe[incompatible-return] + {nativeBackgroundAndroid: nativeRippleValue}, onPressIn(event: PressEvent): void { const view = viewRef.current; if (view != null) { diff --git a/packages/react-native/Libraries/Components/ProgressBarAndroid/__tests__/ProgressBarAndroid-test.js b/packages/react-native/Libraries/Components/ProgressBarAndroid/__tests__/ProgressBarAndroid-test.js index e293e129314..07cb39ff211 100644 --- a/packages/react-native/Libraries/Components/ProgressBarAndroid/__tests__/ProgressBarAndroid-test.js +++ b/packages/react-native/Libraries/Components/ProgressBarAndroid/__tests__/ProgressBarAndroid-test.js @@ -15,6 +15,7 @@ const ReactNativeTestTools = require('../../../Utilities/ReactNativeTestTools'); /* $FlowFixMe[cannot-resolve-module] (>=0.99.0 site=react_native_ios_fb) This * comment suppresses an error found when Flow v0.99 was deployed. To see the * error, delete this comment and run Flow. */ +// $FlowFixMe[missing-platform-support] const ProgressBarAndroid = require('../ProgressBarAndroid.android'); const React = require('react'); diff --git a/packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js b/packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js index 17dfed376cb..f20e85a654f 100644 --- a/packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js +++ b/packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js @@ -146,6 +146,7 @@ class TouchableNativeFeedback extends React.Component { ); return { type: 'RippleAndroid', + // $FlowFixMe[incompatible-type] color: processedColor, borderless, rippleRadius, diff --git a/yarn.lock b/yarn.lock index 5fb5ebb3972..5c9c1025aed 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5156,10 +5156,10 @@ flow-api-translator@0.17.1: hermes-parser "0.17.1" hermes-transform "0.17.1" -flow-bin@^0.220.1: - version "0.220.1" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.220.1.tgz#637d522e43ed5c0d4319e8fe51f4e0a708e56bb1" - integrity sha512-p25Ga+f3yWG0/Nlua6jGary2ptR4vHWt6cWh6MXGLR41NFlOwtrZtDtEjLpSWgOLUphTN4tEQjqoaruU72JObg== +flow-bin@^0.221.0: + version "0.221.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.221.0.tgz#ebf2cef7301ce330dee53a4e8c3e817a9daf5dc0" + integrity sha512-ozjD7cMb7tY6NuRqf6THALc4CDmiuodePYYVj1CS4vkepU9C3qx7/Q6jlieE7SBUN4CkWzlbt4LSMsWFu5a1eQ== flow-enums-runtime@^0.0.6: version "0.0.6"