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: 439a6b6a3e1f9eec5d661bbfb2cb3c630c0ea49c
  • Loading branch information
pieterv authored and facebook-github-bot committed Jun 15, 2023
1 parent 8c9e375 commit f64f8db
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 f64f8db

Please sign in to comment.