diff --git a/packages/react-native-renderer/src/ReactNativeTypes.js b/packages/react-native-renderer/src/ReactNativeTypes.js index cfd026bc7d08..9205d8120651 100644 --- a/packages/react-native-renderer/src/ReactNativeTypes.js +++ b/packages/react-native-renderer/src/ReactNativeTypes.js @@ -83,7 +83,7 @@ type InspectorDataProps = $ReadOnly<{ }>; type InspectorDataGetter = ( - ( + ( componentOrHandle: React.ElementRef | number, ) => ?number, ) => $ReadOnly<{ @@ -142,10 +142,10 @@ export type RenderRootOptions = { * Provide minimal Flow typing for the high-level RN API and call it a day. */ export type ReactNativeType = { - findHostInstance_DEPRECATED( + findHostInstance_DEPRECATED( componentOrHandle: ?(React.ElementRef | number), ): ?PublicInstance, - findNodeHandle( + findNodeHandle( componentOrHandle: ?(React.ElementRef | number), ): ?number, isChildPublicInstance(parent: PublicInstance, child: PublicInstance): boolean, @@ -171,10 +171,10 @@ export opaque type Node = mixed; export opaque type InternalInstanceHandle = mixed; export type ReactFabricType = { - findHostInstance_DEPRECATED( + findHostInstance_DEPRECATED( componentOrHandle: ?(React.ElementRef | number), ): ?PublicInstance, - findNodeHandle( + findNodeHandle( componentOrHandle: ?(React.ElementRef | number), ): ?number, dispatchCommand(