mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-04 22:56:32 +08:00
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:
committed by
Facebook Github Bot
parent
74c754de76
commit
f2684e307c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user