1

After using react-native upgrade, as suggested in https://facebook.github.io/react-native/docs/0.60/upgrading I got:

info No version passed. Fetching latest... info Fetching diff between v0.59.10 and v0.61.2... error Failed to fetch diff for [email protected]. Maybe it's not released yet? info For available releases to diff see: https://github.com/react-native-community/rn-diff-purge#version-changes

Changing to a specific version (react-native upgrade 0.61.0-rc.0) do not help.

Enviroment:

react-native -v
react-native-cli: 2.0.1
react-native: 0.59.10

npm -v 6.12.0

node -v v10.16.0

system: windows 10

1

1 Answer 1

3

Upgrading react-native can be very painful. The complexity of the upgrade depends on:

  • What version of RN you are trying to upgrade
  • How many native dependencies your project has
  • How many custom things your project has

0.59.x to 0.60.x could be painful because many new things were introduced like: auto-linking, hermes and a lot of components were moved from core react-native repo to community repositories in the lean-core effort (https://github.com/facebook/react-native/issues/23313).

react-native upgrade

react-native upgrade is a somewhat primitive command (it tries to apply git diff to your project native files) and in most cases, it just won't work - at least it never worked for me.

Upgrading

In my case, I like to start with reading release notes. After doing that, I usually check what was changed in Android/iOS project files. There is a really helpful community tool - https://react-native-community.github.io/upgrade-helper/. I try to manually apply those changes to my project, but usually, I need to adjust a lot of project-specific things like upgrading native dependencies and adjusting build tools. Soon, you will be able to ask for help or find common issues with upgrading in new community repository - https://github.com/react-native-community/upgrade-support.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.