From 1fed7ab8ea72c5e95545ddac56510b6885704d1d Mon Sep 17 00:00:00 2001 From: "Alex Taylor (alta)" Date: Thu, 14 Dec 2023 14:58:43 -0800 Subject: [PATCH] Deploy 0.224.0 to xplat (#41949) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/41949 Changelog: [internal] Reviewed By: gkz Differential Revision: D52177280 fbshipit-source-id: 37fe478645ad30b40f4fb4e81d7fc467ac971928 --- .flowconfig | 2 +- package.json | 2 +- .../Libraries/Animated/createAnimatedComponent.js | 1 + .../react-native/Libraries/StyleSheet/StyleSheetTypes.js | 1 + .../react-native/Libraries/vendor/emitter/EventEmitter.js | 1 + .../Compatibility/ManyPointersPropertiesExample.js | 1 + yarn.lock | 8 ++++---- 7 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.flowconfig b/.flowconfig index 7d61f8473e2..bce25675c71 100644 --- a/.flowconfig +++ b/.flowconfig @@ -85,4 +85,4 @@ untyped-import untyped-type-import [version] -^0.223.3 +^0.224.0 diff --git a/package.json b/package.json index 2214e22d6f1..b53ce49cb54 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.18.0", - "flow-bin": "^0.223.3", + "flow-bin": "^0.224.0", "glob": "^7.1.1", "hermes-eslint": "0.18.0", "inquirer": "^7.1.0", diff --git a/packages/react-native/Libraries/Animated/createAnimatedComponent.js b/packages/react-native/Libraries/Animated/createAnimatedComponent.js index d859209037d..78b66e09481 100644 --- a/packages/react-native/Libraries/Animated/createAnimatedComponent.js +++ b/packages/react-native/Libraries/Animated/createAnimatedComponent.js @@ -13,6 +13,7 @@ import useMergeRefs from '../Utilities/useMergeRefs'; import useAnimatedProps from './useAnimatedProps'; import * as React from 'react'; +// $FlowFixMe[deprecated-type] export type AnimatedProps = $ObjMap< Props & $ReadOnly<{ diff --git a/packages/react-native/Libraries/StyleSheet/StyleSheetTypes.js b/packages/react-native/Libraries/StyleSheet/StyleSheetTypes.js index 9fd8974107d..3ff76a848dd 100644 --- a/packages/react-native/Libraries/StyleSheet/StyleSheetTypes.js +++ b/packages/react-native/Libraries/StyleSheet/StyleSheetTypes.js @@ -912,6 +912,7 @@ export type ____Styles_Internal = { ... }; +// $FlowFixMe[deprecated-type] export type ____FlattenStyleProp_Internal<+TStyleProp> = $Call< (GenericStyleProp) => T, TStyleProp, diff --git a/packages/react-native/Libraries/vendor/emitter/EventEmitter.js b/packages/react-native/Libraries/vendor/emitter/EventEmitter.js index 177cbbdf300..f640082fef3 100644 --- a/packages/react-native/Libraries/vendor/emitter/EventEmitter.js +++ b/packages/react-native/Libraries/vendor/emitter/EventEmitter.js @@ -35,6 +35,7 @@ interface Registration { +remove: () => void; } +// $FlowFixMe[deprecated-type] type Registry = $ObjMap< TEventToArgsMap, (TArgs) => Set>, diff --git a/packages/rn-tester/js/examples/Experimental/Compatibility/ManyPointersPropertiesExample.js b/packages/rn-tester/js/examples/Experimental/Compatibility/ManyPointersPropertiesExample.js index c0a57596a9b..be3958d9e23 100644 --- a/packages/rn-tester/js/examples/Experimental/Compatibility/ManyPointersPropertiesExample.js +++ b/packages/rn-tester/js/examples/Experimental/Compatibility/ManyPointersPropertiesExample.js @@ -46,6 +46,7 @@ function ManyPointersPropertiesExample(): React.Node { const [data, setData] = React.useState<{}>({}); const onPointerMove = (event: PointerEvent) => { const pointerId = event.nativeEvent.pointerId; + // $FlowFixMe[invalid-computed-prop] setData({...data, [pointerId]: event.nativeEvent}); }; diff --git a/yarn.lock b/yarn.lock index f9b6926cd4c..2d75bc8ed09 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5156,10 +5156,10 @@ flow-api-translator@0.18.0: hermes-parser "0.18.0" hermes-transform "0.18.0" -flow-bin@^0.223.3: - version "0.223.3" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.223.3.tgz#351cfce2c685ec92769fcbc0bb906497c7ddc061" - integrity sha512-20jLm49wN6Gfcs+MI/coAeeXK8/Sbb3eSfyEY4KjlusRotLYaYB6Tg1ngh2sCtpbO598oAEawrKDZr0u6jKakQ== +flow-bin@^0.224.0: + version "0.224.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.224.0.tgz#99454c9a37d2c531e831fa1261ad3e38f24edaf1" + integrity sha512-dsfQCDzOzNL/6bSQMGSSjTUNU7jpniZzmHQRt1rjD7AROthtXdqAkWQ00Xoifn42xeMaO/YkjlOvjpDA4F5Igw== flow-enums-runtime@^0.0.6: version "0.0.6"