React.ComponentType<object>
)registerComponent(componentName: string, getComponentClassFunc: ComponentProvider): void
Every navigation component in your app must be registered with a unique name. The component itself is a traditional React component extending React.Component.
string
)ComponentProvider
)void
)setRoot(layout: any): Promise<any>
Reset the app to a new layout
any
)Promise<any>
)setDefaultOptions(options: any): void
Set default options to all screens. Useful for declaring a consistent style across the app.
any
)void
)mergeOptions(componentId: string, options: any): void
Change a component’s navigation options
string
)any
)void
)showModal(layout: any): Promise<any>
Show a screen as a modal.
any
)Promise<any>
)dismissModal(componentId: string): Promise<any>
Dismiss a modal by componentId. The dismissed modal can be anywhere in the stack.
string
)Promise<any>
)dismissAllModals(): Promise<any>
Dismiss all Modals
Promise<any>
)push(componentId: string, layout: any): Promise<any>
Push a new layout into this screen’s navigation stack.
string
)any
)Promise<any>
)pop(componentId: string, params: any): Promise<any>
Pop a component from the stack, regardless of it’s position.
string
)any
)Promise<any>
)popTo(componentId: string): Promise<any>
Pop the stack to a given component
string
)Promise<any>
)popToRoot(componentId: string): Promise<any>
Pop the component’s stack to root.
string
)Promise<any>
)setStackRoot(componentId: string, layout: any): Promise<any>
Sets new root component to stack.
string
)any
)Promise<any>
)showOverlay(layout: any): Promise<any>
Show overlay on top of the entire app
any
)Promise<any>
)dismissOverlay(componentId: string): Promise<any>
dismiss overlay by componentId
string
)Promise<any>
)events(): EventsRegistry
Obtain the events registry instance
EventsRegistry
)