Upgrading - mention peerDependency on React

Summary:
Fixes issues with docs from https://github.com/facebook/react-native/issues/11104.

We should document people should update both `react` and `react-native` until we switch to the new upgrades.
Closes https://github.com/facebook/react-native/pull/11123

Differential Revision: D4236994

Pulled By: bestander

fbshipit-source-id: 3baf5187eda3701f867e6801632b018d7fe0c1ff
This commit is contained in:
Martin Konicek
2016-11-28 03:06:43 -08:00
committed by Facebook Github Bot
parent 74c754de76
commit f2684e307c

View File

@@ -20,11 +20,18 @@ Note the latest version of the `react-native` npm package from here (or use `npm
* https://www.npmjs.com/package/react-native
Now install that version of `react-native` in your project with `npm install --save`.
Now install that version of `react-native` in your project with `npm install --save`:
```sh
$ npm install --save react-native@X.Y
# where X.Y is the semantic version you are upgrading to
npm WARN peerDependencies The peer dependency react@~R included from react-native...
```
If you saw a warning about the peerDependency, also upgrade `react` by running:
```sh
$ npm install --save react@R
# where R is the new version of react from the peerDependency warning you saw
```
## 2. Upgrade your project templates