From 1913cb874941c7b6185b62cb4adce65eb47c3e8b Mon Sep 17 00:00:00 2001 From: Rory Combe Date: Fri, 14 Jul 2017 16:13:48 +0800 Subject: [PATCH] Change type to accept ComponentType Change type to accept React.ComponentType to accomodate for stateless as well as standard components --- types/react-native/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 1b78fb408c..01111b26ba 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;