Change type to accept ComponentType

Change type to accept React.ComponentType to accomodate for stateless as well as standard components
This commit is contained in:
Rory Combe
2017-07-14 16:13:48 +08:00
parent 444664dd77
commit 1913cb8749

View File

@@ -440,7 +440,7 @@ export interface Touchable {
onTouchEndCapture?: (event: GestureResponderEvent) => void
}
export type ComponentProvider = () => React.ComponentClass<any>
export type ComponentProvider = () => React.ComponentType<any>
export type AppConfig = {
appKey: string;
@@ -4574,7 +4574,7 @@ export interface SceneConfigs {
}
export interface Route {
component?: React.ComponentClass<ViewProperties>
component?: React.ComponentType<any>
id?: string
title?: string
passProps?: Object;