0.3.1 • Published 7 years ago
react-navigation-polyfill v0.3.1
Built in views in web
This is a polyfill to make StackNavigator, TabNavigator and DrawerNavigator from react-navigation work on web.
It could be unnecesary and deprecated in the near future when react-navigation bring support to built-in views for web out of the box.
Motivation
For a thorough discussion, please read the following blog post about it.
Starter
https://github.com/agrcrobles/react-native-web-boilerplate
Quick start
npm i --save react-navigation react-navigation-polyfill
Resolve alias in webpack
{
// other webpack config
resolve: {
alias: {
'react-navigation': 'react-navigation-polyfill'
}
}
More info
Create React App
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.
License
MIT