react-navigation/ react-navigation
View on GitHubRouting and navigation for React Native and Web apps
Routing and navigation for React Native and Web apps
Routing and navigation for your React Native apps.
Documentation can be found at reactnavigation.org.
This branch contains the code for the upcoming major version of React Navigation. You can find the code for other versions in the following branches:
| Name | Latest Version |
| ---------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------: |
| @react-navigation/bottom-tabs | |
| @react-navigation/core |
|
| @react-navigation/devtools |
|
| @react-navigation/drawer |
|
| @react-navigation/elements |
|
| @react-navigation/material-top-tabs |
|
| @react-navigation/native-stack |
|
| @react-navigation/native |
|
| @react-navigation/routers |
|
| @react-navigation/stack |
|
| react-native-drawer-layout |
|
| react-native-tab-view |
|
Please read through our contribution guide to get started!
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:
pnpm add --global gitpkg
Then follow these steps to publish and install a forked package:
cd to the location of the cloned repopnpm install to install any dependenciespnpm lerna run prepack to perform the build stepscd to the package directory that you want to use (e.g. cd packages/stack for @react-navigation/stack)gitpkg publish to publish the package to your repoAfter 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:
pnpm add <user>/<repo>.git#<name>
Remember to replace <user>, <repo> and <name> with right values.
No comments yet. Set the tone — say what you would want to know.