From f64f8db7e7f955a8794937c89d45a8e3c8bf275e Mon Sep 17 00:00:00 2001 From: Pieter Vanderwerff Date: Wed, 14 Jun 2023 21:11:44 -0700 Subject: [PATCH] Fix component type references in xplat (#37903) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/37903 The name "component" in a function type contexts will be banned in future versions of Flow (the same other keywords like typeof are today). This diff renames the offending usages in xplat files. Changelog: [Internal] Reviewed By: gkz Differential Revision: D46748791 fbshipit-source-id: 439a6b6a3e1f9eec5d661bbfb2cb3c630c0ea49c --- packages/react-native/Libraries/ReactNative/AppRegistry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/Libraries/ReactNative/AppRegistry.js b/packages/react-native/Libraries/ReactNative/AppRegistry.js index 011bb45d45c84c..afd4f08cff0774 100644 --- a/packages/react-native/Libraries/ReactNative/AppRegistry.js +++ b/packages/react-native/Libraries/ReactNative/AppRegistry.js @@ -31,7 +31,7 @@ type TaskCancelProvider = () => TaskCanceller; export type ComponentProvider = () => React$ComponentType; export type ComponentProviderInstrumentationHook = ( - component: ComponentProvider, + component_: ComponentProvider, scopedPerformanceLogger: IPerformanceLogger, ) => React$ComponentType; export type AppConfig = {