Closes the current eitri-app
Example:
Eitri.navigation.close()
- API LEVEL
1
- Functionality added
Optional
options: CloseOptionsNavigates to another screen contained in the views folder
Examples:
Simple navigation to a View in the folder:
Eitri.navigation.navigate({path: '/AnotherView'})
Navigation passing a state object from one view to another:
Eitri.navigation.navigate({path: '/AnotherView', state: { name: 'Pedro Álvares Cabral' }})
Use replace = true to indicate that the view will be replaced by the next one:
Eitri.navigation.navigate({path: '/AnotherView', replace: true})
- API LEVEL
1
- Functionality added
Opens an eitri-app
Example:
Eitri.navigation.open({
slug: 'checkout',
initParams: {item: 'Refrigerator', id: 999987},
restorationContext: {screen: 'categories/appliances'}
})
- API LEVEL
1
- Functionality added
Creates a listener to receive events when your eitri-app returns to user's attention from certain situations.
This event will be triggered when:
1 - You return from another app or the home screen.
2 - The app uses a setup with multiple eitri-machines. When the top eitri-machine is stopped, the current eitri-app of the previous eitri-machine in the stack will be notified.
It won't be fired when transitioning between eitri-apps using Eitri.navigation.open() or Eitri.navigation.close()
Example:
Eitri.navigation.setOnResumeListener(() => { console.log("eitri-app was resumed") })
- API LEVEL
6
- Functionality added
Generated using TypeDoc
Set of methods for navigating between screens. Each set of files (jsx and js) in the view folder generates a screen. It is possible to navigate through these screens using the methods described here.