mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix component type references in xplat (#37903)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
8c9e37561f
commit
894b62ce90
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user