diff --git a/packages/react-native-renderer/src/ReactNativeComponent.js b/packages/react-native-renderer/src/ReactNativeComponent.js index 795c666474a..fe0425e04e3 100644 --- a/packages/react-native-renderer/src/ReactNativeComponent.js +++ b/packages/react-native-renderer/src/ReactNativeComponent.js @@ -41,16 +41,12 @@ export default function( * * @abstract */ - class ReactNativeComponent extends React.Component< - Props, - State, - > { + class ReactNativeComponent extends React.Component { /** * Due to bugs in Flow's handling of React.createClass, some fields already * declared in the base class need to be redeclared below. */ props: Props; - state: State; /** * Removes focus. This is the opposite of `focus()`. diff --git a/packages/react-native-renderer/src/ReactNativeTypes.js b/packages/react-native-renderer/src/ReactNativeTypes.js index b062d065640..013058a996e 100644 --- a/packages/react-native-renderer/src/ReactNativeTypes.js +++ b/packages/react-native-renderer/src/ReactNativeTypes.js @@ -137,7 +137,7 @@ type SecretInternalsFabricType = { * Provide minimal Flow typing for the high-level RN API and call it a day. */ export type ReactNativeType = { - NativeComponent: _InternalReactNativeComponentClass<{...}>, + NativeComponent: typeof ReactNativeComponent, findHostInstance_DEPRECATED( componentOrHandle: any, ): ?ElementRef>, @@ -157,7 +157,7 @@ export type ReactNativeType = { }; export type ReactFabricType = { - NativeComponent: _InternalReactNativeComponentClass<{...}>, + NativeComponent: typeof ReactNativeComponent, findHostInstance_DEPRECATED(componentOrHandle: any): ?HostComponent, findNodeHandle(componentOrHandle: any): ?number, dispatchCommand(handle: any, command: string, args: Array): void,