Skip to content

Commit

Permalink
Fix component type references in xplat (facebook#37903)
Browse files Browse the repository at this point in the history
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: 0300ce24dabc7d36335354e667ec50fc1c7127cb
  • Loading branch information
pieterv authored and facebook-github-bot committed Jun 15, 2023
1 parent 8c9e375 commit 7748927
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 7748927

Please sign in to comment.