Creating routes with React Navigation

Let's proceed by installing React Navigation. There are many packages available to help you handle routing in React Native, but this is one of the most popular and advised to use by Expo. Besides React Navigation, you must also install the related packages, called react-navigation-stack and react-navigation-tabs, which are needed to create the navigators for your application. React Navigation and its dependencies can be installed by running the following command:

npm install react-navigation react-navigation-stack react-navigation-tabs

To add routing to your React Native application, you will need to understand the difference between routing in a browser and a mobile application. History in React Native ...

Get React Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.