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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.