Routing and navigation for your React Native apps.
Documentation can be found at reactnavigation.org.
If you are looking for version 4, the code can be found in the 4.x branch.
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
:
yarn global add gitpkg
Then follow these steps to publish and install a forked package:
cd
to the location of the cloned repoyarn
to install any dependenciesyarn 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:
yarn add <user>/<repo>.git#<name>
Remember to replace <user>
, <repo>
and <name>
with right values.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。