Built in views in web
- It is a polyfill for react-navigation to make web be like native when it comes to navigations.
It could be unnecesary and deprecated in the near future when in
react-navigation
bring support to built in views for web.
Motivation
It brings all behaviors from the built-in views of react-navigation from the native to the web.
Demo
Try navigation playground on web.
Quick start
- Install dependency
npm i --save react-navigation react-navigation-polyfill
-
Resolve alias in webpack
-
Navigate!
Navigators
DrawerNavigator
DrawerNavigator can't be used on web, instead this polyfill is wrapping the native one.
TabNavigator
TabNavigator can't be used on web, instead this polyfill is wrapping the native one.
StackNavigator
StackNavigator can't be used on web, instead this polyfill is wrapping the native one.
More info
Create React App
Starter
Use react-native-web-boilerplate as a simple starter
Flow annotation
Use flow anotation from react-navigation
About
This module is meant somehow as a solution to follow discussions from react-navigation and react-native-tab-view and because so far it is the way to make native navigators work on web.
CONTRIBUTING
PR, stars ✭ and issue reporting, welcome.
License
MIT