Skip to content

Commit d542f00

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: 65994bc97d4930406b5e0b6a286d7fe08be8ff4a
1 parent 8c9e375 commit d542f00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)