1.4.0 • Published 2 months ago

@lomray/react-native-navigation-manager v1.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

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

  1. Create instance of navigation manager:
import { NavigationManager } from '@lomray/react-native-navigation-manager'

const manager = new NavigationManager();

export default manager;
  1. 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.

1.4.0

2 months ago

1.3.0

2 months ago

1.2.0

2 months ago

1.1.0

2 months ago

1.0.1

2 months ago

1.0.0

2 months ago