Routing and navigation for your React Native apps
Installations
npm install @react-navigation/native
Releases
@react-navigation/drawer@7.0.13
Published on 27 Nov 2024
@react-navigation/bottom-tabs@7.0.13
Published on 27 Nov 2024
@react-navigation/native@7.0.8
Published on 27 Nov 2024
@react-navigation/elements@2.1.7
Published on 27 Nov 2024
@react-navigation/devtools@7.0.9
Published on 27 Nov 2024
@react-navigation/core@7.1.1
Published on 27 Nov 2024
Developer
Developer Guide
Module System
CommonJS, ESM
Min. Node Version
Typescript Support
Yes
Node Version
18.20.5
NPM Version
lerna/3.9.3/node@v18.20.5+arm64 (darwin)
Statistics
23,624 Stars
3,084 Commits
5,047 Forks
320 Watching
21 Branches
237 Contributors
Updated on 27 Nov 2024
Languages
TypeScript (99.45%)
JavaScript (0.55%)
Total Downloads
Cumulative downloads
Total Downloads
157,288,296
Last day
-1.9%
251,018
Compared to previous day
Last week
2%
1,316,933
Compared to previous week
Last month
12.5%
5,303,784
Compared to previous month
Last year
34.8%
49,823,567
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
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 8 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
6 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-3q56-9cc2-46j4
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- 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
Reason
Found 5/30 approved changesets -- score normalized to 1
Reason
no effort to earn an OpenSSF best practices badge detected
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
license file not detected
Details
- Warn: project does not have a license file
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
project is not fuzzed
Details
- Warn: no fuzzer integrations found
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: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:88: 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: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/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: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: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: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: 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:147: 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
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/versions.yml:29: 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 8 third-party GitHubAction dependencies pinned
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 7 are checked with a SAST tool
Score
4
/10
Last Scanned on 2024-11-18
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 MoreOther packages similar to @react-navigation/native
@bugsnag/plugin-react-navigation-performance
BugSnag performance monitoring for @react-navigation/native
@react-navigation/native-stack
Native stack navigator using react-native-screens
react-native-template-recoil-chabelo
React native with batteries included (recoil, @react-navigation/native, typescript)
react-freeze
React Freeze