
If you have something more complicated, you might need to copy more configs, code files or do extra installations. These are the basic ones needed to do a basic code migration.

I will explain to you exactly how to do it at the lowest cost and also how to resolve any errors encountered on the way, so you won’t spend endless hours investigating it. The second, the oldest and the best way, for now, is creating a new project in the latest react native version.Īfter that, you should move all the files from the old repo to the one you have just created.

Upgrading a React Native app by creating a new project. The best way to fix it is to google those issues and look for solutions in Github. If there are some errors, most of them are due to the libraries you are using. If there are no errors shown, man you such a lucky person. Make changes according to the differences, manually.Go to the diff page (link to diff between RN 0.59.5 and 0.61.5).Steps for upgrading a React Native from version 0.59.5 to 0.61.5: This is a tool that compares different versions of react-native and shows you the differences from the source code level, so it is easy to make changes accordingly to the build. Somebody made a fantastic tool named rn-diff-purge. The easiest way to upgrade is to do it in the existing project. The steps from the official documentation didn’t work in my case. Mind that this is not an official guideline prepared by Facebook.

Upgrading a React Native app in existing projects. Two approaches of upgrading to React Native 0.61 1. Hint: This tutorial been made for Mac OS X.

Luckily, I got there, and now I can make this process much easier for you. I’ve spent quite a few days with ups and downs, trying many methods, but success seems far away. If you have a project in the version older than React Native 0.61, you should probably start thinking about upgrading it to the latest one.
