Drawer navigator for use on iOS and Android.
Open a Terminal in your project's folder and run,
yarn add react-navigation-drawer
import { createDrawerNavigator } from 'react-navigation-drawer';
export default createDrawerNavigator({
Inbox: InboxStack
Drafts: DraftsStack,
}, {
initialRouteName: 'Inbox',
contentOptions: {
activeTintColor: '#e91e63',
},
});
- Clone this repository
- Run
yarn
in the root directory and in theexample
directory - Run
yarn dev
in the root directory - Run
yarn start
in theexample
directory
Documentation can be found on the React Navigation website.