diff --git a/packages/react-native-renderer/src/ReactNativeTypes.js b/packages/react-native-renderer/src/ReactNativeTypes.js index 80d9df6f84c5c..23fb193dd920c 100644 --- a/packages/react-native-renderer/src/ReactNativeTypes.js +++ b/packages/react-native-renderer/src/ReactNativeTypes.js @@ -132,9 +132,10 @@ declare const ensureNativeMethodsAreSynced: NativeMethods; (ensureNativeMethodsAreSynced: INativeMethods); export type HostInstance = NativeMethods; -/*:: -export type HostComponent = component(ref: React$RefSetter, ...Config); -*/ +export type HostComponent = component( + ref: React$RefSetter, + ...Config +); type InspectorDataProps = $ReadOnly<{ [propName: string]: string, @@ -205,9 +206,7 @@ export type ReactNativeType = { componentOrHandle: ?(ElementRef | number), ): ?number, isChildPublicInstance( - // eslint-disable-next-line no-undef parent: PublicInstance | HostComponent, - // eslint-disable-next-line no-undef child: PublicInstance | HostComponent, ): boolean, dispatchCommand(