Socket
Book a DemoInstallSign in
Socket

react-navigation-polyfill

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-navigation-polyfill

A polyfill for react-navigation

latest
npmnpm
Version
0.3.1
Version published
Maintainers
1
Created
Source

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

Supported

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

FAQs

Package last updated on 02 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.