/// /// import * as React from 'react'; 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; createReducer?: Function; onStateChange?: Function; getSceneStyle?: Function; uriPrefix?: string; onDeepLink?: Function; } interface RouterStatic extends React.ComponentClass {} // Scene export var Scene: SceneStatic; export type Scene = SceneStatic; interface SceneProps extends React.Props { key?: string; component?: React.ComponentType; back?: boolean; init?: boolean; clone?: boolean; contentComponent?: React.ComponentType; backButtonImage?: string; backButtonTintColor?: string; drawer?: boolean; failure?: (() => void) | string; headerBackTitle?: string; headerMode?: HeaderModeType; hideNavBar?: boolean; hideTabBar?: boolean; hideBackImage?: boolean; initial?: boolean; leftButtonImage?: Image; modal?: boolean; navigationBarTitleImage?: Image; navigationBarTitleImageStyle?: StyleProp; navTransparent?: boolean; on?: (props: any) => void; onEnter?: (props: any) => void; onExit?: (props: any) => void; onLeft?: (props: any) => void; onRight?: (props: any) => void; renderTitle?: React.ComponentType; renderLeftButton?: React.ComponentType; renderRightButton?: React.ComponentType; renderBackButton?: React.ComponentType; rightTitle?: string; rightButtonImage?: Image | null; rightButtonTextStyle?: StyleProp; success?: (() => void) | string; tabs?: boolean; title?: (() => string) | string; titleStyle?: StyleProp; type?: ActionConstShort; [name: string]: any; // These are passed through to the scenes } interface TabSceneProps extends React.Props { icon?: React.ComponentType; tabBarLabel?: string; } interface SceneStatic extends React.ComponentClass {} export type HeaderModeType = 'float' | 'screen' | 'none'; // Tabs export var Tabs: TabsStatic; export type Tabs = TabsStatic; interface TabsProps extends React.Props { wrap?: boolean; activeBackgroundColor?: string; activeTintColor?: string; inactiveBackgroundColor?: string; inactiveTintColor?: string; labelStyle?: StyleProp; lazy?: boolean; hideNavBar?: boolean; hideTabBar?: boolean; tabBarComponent?: React.ComponentType; tabBarPosition?: TabBarPositionType; tabBarStyle?: StyleProp; tabStyle?: StyleProp; indicatorStyle?: StyleProp; showLabel?: boolean; swipeEnabled?: boolean; tabBarOnPress?: Function; backToInitial?: boolean; } interface TabsStatic extends React.ComponentClass {} export type TabBarPositionType = 'top' | 'bottom'; // Drawer export var Drawer: DrawerStatic; export type Drawer = DrawerStatic; interface DrawerProps extends React.Props { drawerImage?: Image; drawerIcon?: React.ReactElement | React.ComponentType; drawerPosition?: DrawerPositionType; } interface DrawerStatic extends React.ComponentClass {} export type DrawerPositionType = 'right' | 'left'; // Modal export var Modal: ModalStatic; export type Modal = ModalStatic; interface ModalProps extends React.Props {} interface ModalStatic 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 { navigationBarStyle?: StyleProp; icon?: any; tintColor?: string; hideNavBar?: boolean; hideTabBar?: boolean; title?: string; lightbox?: boolean; tabs?: boolean; initial?: boolean; titleStyle?: StyleProp; type?: string; navTransparent?: boolean; renderer?: any; } interface StackStatic extends React.ComponentClass {} export var Actions: ActionsGenericStatic; export type Actions = ActionsGenericStatic; interface ActionsStatic { currentScene: any; jump: (sceneKey: string, props?: any) => void; pop: (params?: { animated?: boolean }) => void; popAndPush: (sceneKey: string, props?: any) => void; popTo: (sceneKey: string, props?: any) => void; push: (sceneKey: string, props?: any) => void; refresh: (props?: any) => void; replace: (sceneKey: string, props?: any) => void; reset: (sceneKey: string, props?: any) => void; addRef: (name: string, ref?: any) => void drawerOpen?: any; drawerClose?: any; } interface ActionsGenericStatic extends ActionsStatic { [key: string]: (props?: any) => void; } export type ActionConstShort = 'jump' | 'push' | 'replace' | 'pop' | 'popTo' | 'refresh' | 'reset'; export declare const ActionConst: ActionConst; export type ActionConst = { JUMP: string; PUSH: string; PUSH_OR_POP: string; REPLACE: string; BACK: string; BACK_ACTION: string; POP_TO: string; REFRESH: string; RESET: string; FOCUS: string; BLUR: string; ANDROID_BACK: string; };