mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 11:41:44 +00:00
Merge pull request #18055 from RoryCombe/master
[react-native] Change type to accept ComponentType
This commit is contained in:
Vendored
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user