Stack navigator component for React Navigation
npm install @forbeslindesay/react-navigation-stack
Stack navigator for use on iOS and Android.
Open a Terminal in your project's folder and run,
``sh`
yarn add react-navigation-stack
`js
import { createStackNavigator } from 'react-navigation-stack';
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 start
- Run in the example` directory
Documentation can be found on the React Navigation website.