diff --git a/package.json b/package.json index 3fd22c3ecc02e..488ce8a701364 100644 --- a/package.json +++ b/package.json @@ -64,8 +64,8 @@ "eslint-plugin-react-internal": "link:./scripts/eslint-rules", "fbjs-scripts": "^3.0.1", "filesize": "^6.0.1", - "flow-bin": "^0.220.1", - "flow-remove-types": "^2.220.1", + "flow-bin": "^0.221.0", + "flow-remove-types": "^2.221.0", "glob": "^7.1.6", "glob-stream": "^6.1.0", "google-closure-compiler": "^20230206.0.0", diff --git a/packages/react-native-renderer/src/ReactNativePublicCompat.js b/packages/react-native-renderer/src/ReactNativePublicCompat.js index 4a8452ad3550f..88377dc75e527 100644 --- a/packages/react-native-renderer/src/ReactNativePublicCompat.js +++ b/packages/react-native-renderer/src/ReactNativePublicCompat.js @@ -142,11 +142,12 @@ export function findNodeHandle(componentOrHandle: any): ?number { } if (hostInstance == null) { + // $FlowFixMe[incompatible-return] Flow limitation in refining an opaque type return hostInstance; } - // $FlowFixMe[incompatible-type] For compatibility with legacy renderer instances if (hostInstance._nativeTag != null) { + // $FlowFixMe[incompatible-return] For compatibility with legacy renderer instances return hostInstance._nativeTag; } diff --git a/packages/react/src/ReactChildren.js b/packages/react/src/ReactChildren.js index 6ad83d60f12e5..2bbd980046eb3 100644 --- a/packages/react/src/ReactChildren.js +++ b/packages/react/src/ReactChildren.js @@ -245,6 +245,7 @@ function mapChildren( context: mixed, ): ?Array { if (children == null) { + // $FlowFixMe limitation refining abstract types in Flow return children; } const result: Array = []; diff --git a/yarn.lock b/yarn.lock index eddc1878ad9da..00876fed7cc70 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7878,22 +7878,17 @@ flatted@^3.1.0: resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.7.tgz#609f39207cb614b89d0765b477cb2d437fbf9787" integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ== -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-parser@^0.220.0: - version "0.220.1" - resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.220.1.tgz#8302ef224e2efb549cccb69fcfb8fb8fb2346668" - integrity sha512-RoM3ARqVYvxnwtkM36RjQFzo5Z9p22jUqtuMrN8gzA/8fU6iMLFE3cXkdSFPyfHRXLU8ILH8TCtSFADk1ACPCg== - -flow-remove-types@^2.220.1: - version "2.220.1" - resolved "https://registry.yarnpkg.com/flow-remove-types/-/flow-remove-types-2.220.1.tgz#c5c44bc40976bbfdd48ca694ec30105b0c0e0e22" - integrity sha512-XtJKOdJY1Im35z4YwKzDCbAkt62Blu+EMneigTW0BmIZ+CdDAKvkyrAOl+3Cbnw2leyuyOFnq+h2Z/7dv2nL4Q== - dependencies: - flow-parser "^0.220.0" +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-remove-types@^2.221.0: + version "2.221.0" + resolved "https://registry.yarnpkg.com/flow-remove-types/-/flow-remove-types-2.221.0.tgz#98da76051cadcb641afc9bf16a1fa8eabf16d591" + integrity sha512-mQ/rmIy9jEYZtbXMn+avJCHUyINy3wAX50CEYlkJ2kwlkJi9EjmyzgkyHkA+1fraxnbh70J2GV/mXyk3PhbFew== + dependencies: + hermes-parser "0.17.1" pirates "^3.0.2" vlq "^0.2.1"