diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index c0ca165987..f3f90b88f9 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -440,7 +440,7 @@ export interface Touchable { onTouchEndCapture?: (event: GestureResponderEvent) => void } -export type ComponentProvider = () => React.ComponentClass +export type ComponentProvider = () => React.ComponentType export type AppConfig = { appKey: string; @@ -4574,7 +4574,7 @@ export interface SceneConfigs { } export interface Route { - component?: React.ComponentClass + component?: React.ComponentType id?: string title?: string passProps?: Object;