I previously wrote an article on how to have multiple navigators in react native. However, since react-navigation 5 was released, there have been major changes, and a huge chunk of my previous article may not be as useful anymore. So here’s an article on how to create multiple navigators in react-navigation 5.

Installing Packages

First off, make sure you have all the required packages, as mentioned in the react-navigation documentation. You can install them using this command:

npm install --save @react-navigation/native react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view

Next, since we are going to use the stack, tab and drawer navigators, we need to install these packages too. …


Shreyas Nisal

I’m a undergrad at BITS Pilani, Goa Campus, expecting to graduate in 2022. I love coding and writing about technical stuff.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store