This is an excerpt from Manning's book React Native in Action. Login to get full access to this book.
The drawer navigator has an API very similar to that of the stack and tab navigators. You’ll use the createDrawerNavigator function from React Navigation to create a drawer-based navigation. First define the routes to use:
createDrawerNavigator
(try again in a couple of minutes)