Skip to content

react-navigation/react-navigation

main
Switch branches/tags
Code

Latest commit

## **Motivation**

Hardcoded Flipper version to 0.75.1 in Podfile caused a crash while building the Example app without the Expo. Currently used react-native 0.68 comes with Flipper v0.125.0.

<img width="612" alt="Screenshot 2022-07-01 at 12 21 13" src="https://user-images.githubusercontent.com/39658211/176880601-2d0c536e-f7ca-4803-92c0-96eb4fe9761e.png">

## Changes

- Updated Podfile lock to automatically take the correct flipper version.
- Updated `react-native-flipper` package to match the version used in Example
- Removed deprecated `react-native-appearance` which doesn't seem to be used anywhere in the repo.


## **Test plan**

```sh
yarn
yarn example ios
yarn example android
```

Ran react-navigation's plugin with the changes both on iOS and Android:

![Screenshot 2022-07-01 at 12 48 03](https://user-images.githubusercontent.com/39658211/176880470-2f8e5f8f-961c-4bd6-ae77-da5e27ab3487.png)


## **Automatic tests**

lint, typescript tests pass 
5e694dc

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time

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/core badge
@react-navigation/native badge
@react-navigation/routers badge
@react-navigation/stack badge
@react-navigation/drawer badge
@react-navigation/material-top-tabs badge
@react-navigation/material-bottom-tabs badge
@react-navigation/bottom-tabs badge
@react-navigation/devtools 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 prepare 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.