1af390be19
Summary: This updates React Native to use latest CLI. We also create Metro configuration, because CLI looks for React Native in "node_modules" by default. Since we are running React Native from source, it will fail to find required files. To avoid hacky logic to detect if we are running from source backed into the CLI, I decided to leverage the Metro configuration instead. Pull Request resolved: https://github.com/facebook/react-native/pull/23052 Reviewed By: rickhanlonii Differential Revision: D13719938 Pulled By: cpojer fbshipit-source-id: 1f40a40b3cdbb07ccd42daf75feb457556d3e40f |
||
---|---|---|
.. | ||
README.md | ||
checks.js | ||
cli.js | ||
cliEntry.js | ||
index.js | ||
package.json | ||
yarn.js |
README.md
React Native Git Upgrade
This tool makes upgrading your apps to a new version of React Native easier than the stock react-native upgrade
command.
It uses Git under the hood to automatically resolve merge conflicts in project templates (native iOS and Android files, .flowconfig
etc.). These conflicts happen when a new React Native version introduces changes to those files and you have local changes in those files too, which is quite common.
Usage
See the Upgrading docs on the React Native website.
Basic usage:
$ npm install -g react-native-git-upgrade
$ cd MyReactNativeApp
$ react-native-git-upgrade