Skip to content

Commit 51a9765

Browse files
pietervfacebook-github-bot
authored andcommitted
Fix component type references in xplat (#37903)
Summary: Pull Request resolved: #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: 3a5d36ebd59707b8c4786c95066a5ec6337a9bea
1 parent 0f688dc commit 51a9765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native/Libraries/ReactNative/AppRegistry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type TaskCancelProvider = () => TaskCanceller;
3131

3232
export type ComponentProvider = () => React$ComponentType<any>;
3333
export type ComponentProviderInstrumentationHook = (
34-
component: ComponentProvider,
34+
component_: ComponentProvider,
3535
scopedPerformanceLogger: IPerformanceLogger,
3636
) => React$ComponentType<any>;
3737
export type AppConfig = {

0 commit comments

Comments
 (0)