@lomray/react-native-navigation-manager
v1.4.0
Published
React native navigation manager for wix react-native-navigation.
Downloads
29
Maintainers
Readme
Manager for react-native-navigation
Key features:
- More flexible control your navigation.
- Navigation tree under hand.
- Get state in any time.
Table of contents
Getting started
The package is distributed using npm, the node package manager.
npm i --save @lomray/react-native-navigation-manager
How to use
- Create instance of navigation manager:
import { NavigationManager } from '@lomray/react-native-navigation-manager'
const manager = new NavigationManager();
export default manager;
- Use navigation manager instead original navigation:
import NavigationManager from './navigation-manager';
// Run as soon as possible
NavigationManager.listen();
// Use manager instead base navigation
NavigationManager.push({
component: {
name: 'my-scfreen',
},
});
// Get latest component id in tree
console.log(NavigationManager.current.getComponentId());
console.log(NavigationManager.current.getStackId());
console.log(NavigationManager.current.getModalId());
console.log(NavigationManager.current.getOverlayId());
Bugs and feature requests
Bug or a feature request, please open a new issue.
License
Made with 💚
Published under MIT License.