Merge pull request #18055 from RoryCombe/master

[react-native] Change type to accept ComponentType
This commit is contained in:
Eloy Durán
2017-07-14 14:41:16 +02:00
committed by GitHub
+2 -2
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;