diff --git a/index.d.ts b/index.d.ts index 015715be8..bd143fae6 100644 --- a/index.d.ts +++ b/index.d.ts @@ -7,9 +7,15 @@ 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; + createReducer?: Function; } interface RouterStatic extends React.ComponentClass { } @@ -97,22 +103,30 @@ export type Modal = ModalStatic; interface ModalProps extends React.Props { } interface ModalStatic extends React.ComponentClass { } -// Lighbox -export var Lighbox: LighboxStatic; -export type Lighbox = LighboxStatic; -interface LighboxProps extends React.Props { } -interface LighboxStatic extends React.ComponentClass { } +// Overlay +export var Overlay: OverlayStatic; +export type Overlay = OverlayStatic; +interface OverlayProps extends React.Props { } +interface OverlayStatic extends React.ComponentClass { } + +// Lightbox +export var Lightbox : LightboxStatic; +export type Lightbox = LightboxStatic; +interface LightboxProps extends React.Props { } +interface LightboxStatic extends React.ComponentClass { } // Stack export var Stack: StackStatic; export type Stack = StackStatic; -interface StackProps extends React.Props { } +interface StackProps extends React.Props { + navigationBarStyle?: StyleProp; +} interface StackStatic extends React.ComponentClass { } export var Actions: ActionsStatic & ActionsGenericStatic; export type Actions = ActionsStatic & ActionsGenericStatic; interface ActionsStatic { - currentScene: () => string; + currentScene: string; jump: (sceneKey: string, props?: any) => void; pop: () => void; popAndPush: (sceneKey: string, props?: any) => void;