Stack navigator component for React Navigation
npm install react-navigation-stack-web
Stack navigator for use on the web.
Open a Terminal in your project's folder and run,
``sh`
yarn add react-navigation-stack-web
This package assumes you alias react-native to react-native-web in you bundler.
`js
import { createStackNavigator } from 'react-navigation-stack-web';
export default createStackNavigator({
Inbox: InboxScreen
Drafts: DraftsScreen,
}, {
initialRouteName: 'Inbox',
});
`
- Clone this repository
- Run yarn in the root directory and in the example directoryyarn dev
- Run in the root directoryyarn storybook
- Run in the example` directory
Documentation can be found on the React Navigation website.