Before you commit to using React Navigation for your project, you might want to read the anti-pitch — it will help you to understand the tradeoffs that we have chosen along with the areas where we consider the library to be deficient currently.
What to expect
If you're already familiar with React Native then you'll be able to get moving with React Navigation quickly! If not, you may want to read sections 1 to 4 (inclusive) of React Native Express first, then come back here when you're done.
What follows within the Fundamentals section of this documentation is a tour of the most important aspects of React Navigation. It should cover enough for you to know how to build your typical small mobile application, and give you the background that you need to dive deeper into the more advanced parts of React Navigation.
Install the required packages in your React Native project.
yarn add @react-navigation/[email protected] @react-navigation/[email protected]
Or with npm
npm install @react-navigation/[email protected] @react-navigation/[email protected]
When you use a navigator, you'll need to follow the installation instructions of that navigator for any additional configuration.
Continue to "Hello React Navigation" to start writing some code.