Note the latest version of the
react-native npm package from here (or use
npm info react-native to check):
Now install that version of
react-native in your project with
npm install --save. For example, to upgrade to the version
0.31, in a terminal run:
The new npm package will likely contain updates to the files that are normally generated when you
react-native init, like the iOS and the Android sub-projects. To get these latest changes,
run this in a terminal:
This will check your files against the latest template and perform the following:
hto get a list of possible commands.
Some upgrades require manual steps, e.g. 0.13 to 0.14, or 0.28 to 0.29. Be sure to check the release notes when upgrading so that you can identify any manual changes your particular project may require.
Вы можете отредактировать перевод на GitHub и создать pull request!