screen-navigator
v2.1.7
Published
Navigate easily between screens, with transitions.
Downloads
52
Maintainers
Readme
screen-navigator
Description
Navigate easily between screens, with transitions.
Inspired by Feathers ScreenNavigator http://feathersui.com/api-reference/feathers/controls/ScreenNavigator.html
Installation
npm install screen-navigator --save
Getting started
Create a screen navigator
var navigator = new ScreenNavigator();
Add screens items
// add screen instance
navigator.addScreen('home', new Home());
// add screen class
navigator.addScreen('about', About);
Navigate between screens
// show home page
navigator.showScreen('home');
// show about page
navigator.showScreen('about');
Want more ? See the example/
directory.
Documentation
License
MIT.