React Navigation 7
Routing and navigation for your React Native apps.
Documentation can be found at reactnavigation.org.
This branch contains the code for the latest stable version of React Navigation. You can find the code for previous versions in the following branches:
Package Versions
Contributing
Please read through our contribution guide to get started!
Installing from a fork on GitHub
Since we use a monorepo, it's not possible to install a package from the repository URL. If you need to install a forked version from Git, you can use gitpkg.
First install gitpkg:
yarn global add gitpkgThen follow these steps to publish and install a forked package:
- Fork this repo to your account and clone the forked repo to your local machine
- Open a Terminal and
cdto the location of the cloned repo - Run
yarnto install any dependencies - If you want to make any changes, make them and commit
- Run
yarn lerna run prepackto perform the build steps - Now
cdto the package directory that you want to use (e.g.cd packages/stackfor@react-navigation/stack) - Run
gitpkg publishto publish the package to your repo
After publishing, you should see something like this:
Package uploaded to git@github.com:<user>/<repo>.git with the name <name>You can now install the dependency in your project:
yarn add <user>/<repo>.git#<name>Remember to replace <user>, <repo> and <name> with right values.