From dc78c7d820f64cfd4d9cf4bee8f368b75feac1f4 Mon Sep 17 00:00:00 2001 From: Michele Bombardi Date: Thu, 20 Sep 2018 10:19:28 +0200 Subject: [PATCH] Typings: RouterProps createReducer, onStateChange, getSceneStyle, uriPrefix; Reducer. --- index.d.ts | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/index.d.ts b/index.d.ts index 4a9e23365..1fec6b8ba 100644 --- a/index.d.ts +++ b/index.d.ts @@ -7,14 +7,22 @@ import { StyleProp, Image, ViewStyle, TextStyle, ImageStyle } from 'react-native export var Router: RouterStatic; export type Router = RouterStatic; +// Reducer +export var Reducer: any; +export type Reducer = any; + // Router interface RouterProps extends React.Props { - sceneStyle?: StyleProp; - backAndroidHandler?: Function; - wrapBy?: Function; - scenes?: any; + sceneStyle?: StyleProp; + backAndroidHandler?: Function; + wrapBy?: Function; + scenes?: any; + createReducer?: Function; + onStateChange?: Function; + getSceneStyle?: Function; + uriPrefix?: string; } -interface RouterStatic extends React.ComponentClass {} +interface RouterStatic extends React.ComponentClass { } // Scene export var Scene: SceneStatic;