Stack navigator for use on iOS and Android.
Open a Terminal in your project's folder and run,
yarn add react-navigation-stackimport { createStackNavigator } from 'react-navigation-stack';
export default createStackNavigator({
Inbox: InboxScreen
Drafts: DraftsScreen,
}, {
initialRouteName: 'Inbox',
});- Clone this repository
- Run
yarnin the root directory and in theexampledirectory - Run
yarn devin the root directory - Run
yarn startin theexampledirectory
Documentation can be found on the React Navigation website.