This event is called once the app is launched. Initialise the app with the layout you want. This creates the native layout hierarchy, loads the react components into the component by name, after which the app is ready for user interaction.
Navigation.events().onAppLaunched(() => {
});
Listen globally to all components componentDidAppear
events
Navigation.events().componentDidAppear((componentId, componentName) => {
});
Listen for component
class MyComponent extends Component {
componentDidAppear() {
}
}
Listen globally to all components componentDidDisappear
events
Navigation.events().componentDidDisappear((componentId, componentName) => {
});
Listen for component
class MyComponent extends Component {
componentDidDisappear() {
}
}
Listen globally to all onNavigationButtonPressed
events
Navigation.events().onNavigationButtonPressed((buttonId) => {
});
Listen in component
class MyComponent extends Component {
onNavigationButtonPressed(buttonId) {
}
}