Merge pull request #4957 from sunnylqm/patch-5

Use a better way to update react-native package
This commit is contained in:
Satyajit Sahoo 2015-12-26 23:39:55 +05:30
commit 739a6d6be1
1 changed files with 3 additions and 4 deletions

View File

@ -15,15 +15,14 @@ version of React Native:
## 1. Upgrade the `react-native` dependency
Note the latest version of the `react-native` npm package from here:
Note the latest version of the `react-native` npm package from here (or use `npm info react-native` to check):
* https://www.npmjs.com/package/react-native
Open your `package.json` file and update the version of `react-native` under `dependencies` to the
latest version. Now, in a terminal run:
Now install that version of `react-native` in your project with `npm install --save`. For example, to upgrade to the version `0.18`, in a terminal run:
```sh
$ npm install
$ npm install --save react-native@0.18
```
## 2. Upgrade your project templates