Skip to content

react-navigation/react-navigation

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 - @react-navigation/example@6.0.0
 - @react-navigation/bottom-tabs@6.4.3
 - @react-navigation/core@6.4.3
 - @react-navigation/devtools@6.0.13
 - @react-navigation/drawer@6.5.3
 - @react-navigation/elements@1.3.9
 - flipper-plugin-react-navigation@1.3.18
 - @react-navigation/material-bottom-tabs@6.2.7
 - @react-navigation/material-top-tabs@6.4.0
 - @react-navigation/native-stack@6.9.4
 - @react-navigation/native@6.0.16
 - react-native-tab-view@3.3.2
 - @react-navigation/routers@6.1.5
 - @react-navigation/stack@6.3.7
4e29403

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Nov 29, 2022
Nov 29, 2022
Nov 29, 2022

React Navigation 6

Build Status Code Coverage MIT License

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.

Package Versions

Name Latest Version
@react-navigation/bottom-tabs badge
@react-navigation/core badge
@react-navigation/devtools badge
@react-navigation/drawer badge
@react-navigation/elements badge
@react-navigation/material-bottom-tabs badge
@react-navigation/material-top-tabs badge
@react-navigation/native-stack badge
@react-navigation/native badge
@react-navigation/routers badge
@react-navigation/stack badge
react-native-tab-view badge
flipper-plugin-react-navigation badge

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 gitpkg

Then follow these steps to publish and install a forked package:

  1. Fork this repo to your account and clone the forked repo to your local machine
  2. Open a Terminal and cd to the location of the cloned repo
  3. Run yarn to install any dependencies
  4. If you want to make any changes, make them and commit
  5. Run yarn lerna run prepack to perform the build steps
  6. Now cd to the package directory that you want to use (e.g. cd packages/stack for @react-navigation/stack)
  7. Run gitpkg publish to 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.