Every screen component in your app must be registered with a unique name. The component itself is a traditional React component extending React.Component.
| Param | Type | Description |
|---|---|---|
| containerName | string |
Unique container name |
| getContainerFunc | function |
generator function, typically () => require('./myContainer') |
Reset the navigation stack to a new screen (the stack root is changed).
| Param | Type |
|---|---|
| root | Root |
Set default options to all screens. Useful for declaring a consistent style across the app.
| Param | Type |
|---|---|
| options | NavigationOptions |
Change a containers navigation options
| Param | Type | Description |
|---|---|---|
| containerId | string |
The container’s id. |
| options | NavigationOptions |
Show a screen as a modal.
| Param | Type |
|---|---|
| params | Object |
Dismiss a modal by containerId. The dismissed modal can be anywhere in the stack.
| Param | Type | Description |
|---|---|---|
| containerId | String |
The container’s id. |
Dismiss all Modals
Push a new screen into this screen’s navigation stack.
| Param | Type | Description |
|---|---|---|
| containerId | String |
The container’s id. |
| params | * |
Pop a container from the stack, regardless of it’s position.
| Param | Type | Description |
|---|---|---|
| containerId | String |
The container’s id. |
| params | * |
Pop the stack to a given container
| Param | Type | Description |
|---|---|---|
| containerId | String |
The container’s id. |
Pop the container’s stack to root.
| Param | Type |
|---|---|
| containerId | * |
Obtain the events registery instance