Skip to content

Commit

Permalink
Fix component type references in xplat (#37903)
Browse files Browse the repository at this point in the history
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: b8a51f63faad3b85232bd17a4bbe6ee7b0e4120f
  • Loading branch information
pieterv authored and facebook-github-bot committed Jun 15, 2023
1 parent 8c9e375 commit 894b62c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native/Libraries/ReactNative/AppRegistry.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type TaskCancelProvider = () => TaskCanceller;

export type ComponentProvider = () => React$ComponentType<any>;
export type ComponentProviderInstrumentationHook = (
component: ComponentProvider,
component_: ComponentProvider,
scopedPerformanceLogger: IPerformanceLogger,
) => React$ComponentType<any>;
export type AppConfig = {
Expand Down

0 comments on commit 894b62c

Please sign in to comment.