Then, run it inside your project directory:
Note: Do not run ‘npm install’ to install a new version of
react-native. The tool needs to be able to compare the old and new project template to work correctly. Simply run it inside your app folder as shown above, while still on the old version.
You can also run
react-native-git-upgrade with no arguments to upgrade to the latest version of React Native.
The logic behind
react-native-git-upgrade described above is going to power the standard
react-native upgrade starting with React Native version 0.40.0.
This means that if you are upgrading from version 0.40.0 or higher, you will be able to simply run
react-native upgrade in your project without having to install anything globally. The
react-native-git-upgrade is provided so anyone can enjoy this improved experience today while using older versions of React Native.