From 77489278adf681ef34ccf9189f33a55b12240ba6 Mon Sep 17 00:00:00 2001 From: Pieter Vanderwerff Date: Wed, 14 Jun 2023 19:46:36 -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: 0300ce24dabc7d36335354e667ec50fc1c7127cb --- 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 = {