Routing and navigation for your React Native apps
Installations
npm install @react-navigation/routers
Developer Guide
Typescript
Yes
Module System
CommonJS, ESM
Node Version
22.12.0
NPM Version
lerna/3.9.3/node@v22.12.0+arm64 (darwin)
Score
99.8
Supply Chain
76.4
Quality
88.6
Maintenance
100
Vulnerability
100
License
Releases
@react-navigation/stack@7.1.1
Updated on Dec 18, 2024
@react-navigation/drawer@7.1.1
Updated on Dec 12, 2024
react-native-drawer-layout@4.1.1
Updated on Dec 12, 2024
@react-navigation/stack@7.1.0
Updated on Dec 12, 2024
@react-navigation/drawer@7.1.0
Updated on Dec 12, 2024
@react-navigation/native@7.0.14
Updated on Dec 12, 2024
Contributors
Languages
TypeScript (99.46%)
JavaScript (0.54%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
Download Statistics
Total Downloads
131,747,596
Last Day
217,608
Last Week
1,340,540
Last Month
5,143,767
Last Year
47,255,888
GitHub Statistics
23,808 Stars
3,128 Commits
5,073 Forks
318 Watchers
26 Branches
235 Contributors
Updated on Feb 14, 2025
Bundle Size
13.66 kB
Minified
3.52 kB
Minified + Gzipped
Package Meta Information
Latest Version
7.1.2
Package Id
@react-navigation/routers@7.1.2
Unpacked Size
245.51 kB
Size
34.23 kB
File Count
68
NPM Version
lerna/3.9.3/node@v22.12.0+arm64 (darwin)
Node Version
22.12.0
Published on
Dec 12, 2024
Total Downloads
Cumulative downloads
Total Downloads
131,747,596
Last Day
7.4%
217,608
Compared to previous day
Last Week
12.6%
1,340,540
Compared to previous week
Last Month
41.5%
5,143,767
Compared to previous month
Last Year
39.8%
47,255,888
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Dev Dependencies
4
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
:
1yarn global add gitpkg
Then 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
cd
to the location of the cloned repo - Run
yarn
to install any dependencies - If you want to make any changes, make them and commit
- Run
yarn lerna run prepack
to perform the build steps - Now
cd
to the package directory that you want to use (e.g.cd packages/stack
for@react-navigation/stack
) - Run
gitpkg publish
to publish the package to your repo
After publishing, you should see something like this:
1Package uploaded to git@github.com:<user>/<repo>.git with the name <name>
You can now install the dependency in your project:
1yarn add <user>/<repo>.git#<name>
Remember to replace <user>
, <repo>
and <name>
with right values.

No vulnerabilities found.
Reason
30 commit(s) and 4 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
Found 6/30 approved changesets -- score normalized to 2
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Info: topLevel 'contents' permission set to 'read': .github/workflows/autofix.yml:12
- Warn: no topLevel permission defined: .github/workflows/check-labels.yml:1
- Warn: no topLevel permission defined: .github/workflows/check-repro.yml:1
- Warn: no topLevel permission defined: .github/workflows/ci.yml:1
- Warn: no topLevel permission defined: .github/workflows/closed-issue.yml:1
- Warn: no topLevel permission defined: .github/workflows/expo-preview.yml:1
- Warn: no topLevel permission defined: .github/workflows/expo.yml:1
- Warn: no topLevel permission defined: .github/workflows/first-pull-request.yml:1
- Info: topLevel 'pull-requests' permission set to 'read': .github/workflows/pull-request-title.yml:11
- Warn: no topLevel permission defined: .github/workflows/rebase.yml:1
- Warn: no topLevel permission defined: .github/workflows/snackager.yml:1
- Warn: no topLevel permission defined: .github/workflows/stale.yml:1
- Warn: no topLevel permission defined: .github/workflows/triage.yml:1
- Warn: no topLevel permission defined: .github/workflows/versions.yml:1
- Info: no jobLevel write permissions found
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/autofix.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/autofix.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-labels.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/check-labels.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-repro.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/check-repro.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/ci.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:67: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:79: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:94: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/closed-issue.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/closed-issue.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/expo-preview.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/expo-preview.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/expo-preview.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/expo-preview.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/expo-preview.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/expo-preview.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/expo.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/expo.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/expo.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/expo.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/first-pull-request.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/first-pull-request.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/pull-request-title.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/pull-request-title.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rebase.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/rebase.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/rebase.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/rebase.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/snackager.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/snackager.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/stale.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/stale.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/triage.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/triage.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/triage.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/triage.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/triage.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/triage.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/triage.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/triage.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/triage.yml:117: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/triage.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/triage.yml:132: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/triage.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/triage.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/triage.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/triage.yml:87: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/triage.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/triage.yml:102: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/triage.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/versions.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/react-navigation/react-navigation/versions.yml/main?enable=pin
- Info: 0 out of 27 GitHub-owned GitHubAction dependencies pinned
- Info: 1 out of 7 third-party GitHubAction dependencies pinned
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 6 are checked with a SAST tool
Reason
13 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-x4c5-c7rf-jjgv
- Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q
- Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38
- Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-3q56-9cc2-46j4
- Warn: Project is vulnerable to: GHSA-593f-38f6-jp5m
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
- Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j
- Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg
- Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p
- Warn: Project is vulnerable to: GHSA-c76h-2ccp-4975
Score
3.7
/10
Last Scanned on 2025-02-10
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More