DEV Community

muneebejazz
muneebejazz

Posted on

4 4

React Native

React Navigation v6.x

Installation

1. Install in Expo Project

npm install @react-navigation/native
expo install react-native-screens react-native-safe-area-context
expo install @react-navigation/native-stack
Enter fullscreen mode Exit fullscreen mode

2. Wrap your App.js with NavigationContainer component.

<NavigationContainer>
   // you app code goes here
</NavigationContainer>
Enter fullscreen mode Exit fullscreen mode

3. React Native Stack Navigator

Create Native Stack Navigator

const Stack = createNativeStackNavigator()

Top comments (0)

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay