From f2684e307c0f147ddbef37306ce7d265bea4045a Mon Sep 17 00:00:00 2001 From: Martin Konicek Date: Mon, 28 Nov 2016 03:06:43 -0800 Subject: [PATCH] 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 --- docs/Upgrading.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/Upgrading.md b/docs/Upgrading.md index 23b5d5f01..a4db93a6f 100644 --- a/docs/Upgrading.md +++ b/docs/Upgrading.md @@ -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