Git Product home page Git Product logo

Comments (7)

laurentS avatar laurentS commented on June 12, 2024

Some notes about upgrading react-native. The process is widely regarded as the worst part of the framework. There are a few tools to help upgrade automatically, but it seems that manual upgrades are still the most reliable path.
Based on this blog post and a few other bits, plus my own attempts, it seems that the easiest path is:

  • git checkout -b rn-upgrade-branch
  • run tests and checks to ensure they all pass before breaking stuff
  • get the diff to apply from https://pvinis.github.io/purge-web/ for instance: https://github.com/react-native-community/rn-diff-purge/compare/release/0.57.8..release/0.58.0
  • apply the diff by hand, for javascript, android and iOS
  • this will include a change of dependency versions in package.json. Make sure you run yarn install after this, or the following steps won't work
  • iOS specific stuff
    • cd ios
    • rm Podfile.lock
    • bundle exec pod install // this probably needs to happen on a mac, as cocoapods will sometimes fail on other OSes :(
  • test the app again
  • if it works, you're done 🎉
  • cd ..
  • git add .
  • git commit -m "Upgrade react-native to XXX"

from mapswipe.

laurentS avatar laurentS commented on June 12, 2024

Current RN version is 0.58.0. Looking at changelogs, upgrade up to 0.58.6 should be painless, the next step (to 0.59.0+) may require changes to the rnfirebase library

from mapswipe.

laurentS avatar laurentS commented on June 12, 2024

Upgrade to RN 0.59 is required before august 1, 2019 to support android 64 bits (see http://facebook.github.io/react-native/blog/2019/03/12/releasing-react-native-059)

It is unclear what will happen in august if the app is not compatible though...

from mapswipe.

laurentS avatar laurentS commented on June 12, 2024

From react-native version 0.59.x onwards, the upgrade should be done using react-native upgrade instead of the above process... To be tested!

from mapswipe.

laurentS avatar laurentS commented on June 12, 2024

Upgrading to 0.60 would probably required looking into #86

from mapswipe.

laurentS avatar laurentS commented on June 12, 2024

Upgrade to react-native 0.60 requires moving to androidX infrastructure for android, which looks like a potential big job, with breaking changes.

from mapswipe.

laurentS avatar laurentS commented on June 12, 2024

Released in 2.0.3 🎉

from mapswipe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.