Skip to content

Commit 7d5d24b

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

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)