From 798c3dd842fb091eb9e1ffc827076674ea91ea72 Mon Sep 17 00:00:00 2001 From: "Alex Taylor (alta)" Date: Fri, 28 Mar 2025 13:07:06 -0700 Subject: [PATCH] Deploy 0.266.0 to xplat (#50373) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50373 Changelog: [Internal] Reviewed By: jbrown215, SamChou19815, panagosg7 Differential Revision: D72061660 fbshipit-source-id: a6862fe0e1f62992b76145006b3f8bc3ad788258 --- .flowconfig | 2 +- package.json | 2 +- .../Libraries/ReactNative/RendererImplementation.js | 4 ++++ .../src/private/animated/createAnimatedPropsHook.js | 1 + yarn.lock | 8 ++++---- 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.flowconfig b/.flowconfig index b613ef84be9..9c6d7d1c913 100644 --- a/.flowconfig +++ b/.flowconfig @@ -98,4 +98,4 @@ untyped-import untyped-type-import [version] -^0.265.3 +^0.266.0 diff --git a/package.json b/package.json index fa0be3bcbc5..33dabcfec20 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "eslint-plugin-redundant-undefined": "^0.4.0", "eslint-plugin-relay": "^1.8.3", "flow-api-translator": "0.25.1", - "flow-bin": "^0.265.3", + "flow-bin": "^0.266.0", "glob": "^7.1.1", "hermes-eslint": "0.25.1", "hermes-transform": "0.25.1", diff --git a/packages/react-native/Libraries/ReactNative/RendererImplementation.js b/packages/react-native/Libraries/ReactNative/RendererImplementation.js index 34613c645b6..ee5a80d4fc5 100644 --- a/packages/react-native/Libraries/ReactNative/RendererImplementation.js +++ b/packages/react-native/Libraries/ReactNative/RendererImplementation.js @@ -59,17 +59,21 @@ export function renderElement({ } export function findHostInstance_DEPRECATED( + // $FlowFixMe[incompatible-call] componentOrHandle: ?(ElementRef | number), ): ?HostInstance { return require('../Renderer/shims/ReactNative').default.findHostInstance_DEPRECATED( + // $FlowFixMe[incompatible-call] componentOrHandle, ); } export function findNodeHandle( + // $FlowFixMe[incompatible-call] componentOrHandle: ?(ElementRef | number), ): ?number { return require('../Renderer/shims/ReactNative').default.findNodeHandle( + // $FlowFixMe[incompatible-call] componentOrHandle, ); } diff --git a/packages/react-native/src/private/animated/createAnimatedPropsHook.js b/packages/react-native/src/private/animated/createAnimatedPropsHook.js index 27a87e8b5f9..9b3ac92ebb9 100644 --- a/packages/react-native/src/private/animated/createAnimatedPropsHook.js +++ b/packages/react-native/src/private/animated/createAnimatedPropsHook.js @@ -137,6 +137,7 @@ export default function createAnimatedPropsHook( (instance: TInstance) => { // NOTE: This may be called more often than necessary (e.g. when `props` // changes), but `setNativeView` already optimizes for that. + // $FlowFixMe[incompatible-call] node.setNativeView(instance); // NOTE: When using the JS animation driver, this callback is called on diff --git a/yarn.lock b/yarn.lock index e6d8ca72ec0..dd8e11952c7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4357,10 +4357,10 @@ flow-api-translator@0.25.1: hermes-transform "0.25.1" typescript "5.3.2" -flow-bin@^0.265.3: - version "0.265.3" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.265.3.tgz#cbaad2115f4622e34920981dc79949824c27f421" - integrity sha512-08PjO2kjuQxy8MxYJNCzmgRpAe1uqTf7kQ+U32QTavRzTD/7IJASYKFEEvCkVNHlhSy8CTJsN+AQdHsXVqChIw== +flow-bin@^0.266.0: + version "0.266.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.266.0.tgz#0829ea93ff9670f014695c7c272a1c36fc93d634" + integrity sha512-2icyk/Z4Q0UtcEg9vRuPafUBNup3qlz01nZFw1SuixoTh3SUTrzsrVBaMJLlq/NQMZCKaf+uQczbwvuKQ/jyzQ== flow-enums-runtime@^0.0.6: version "0.0.6"