From 019c564941aa160819c28ffbe392f4d94230d461 Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Thu, 24 Dec 2015 14:56:49 +0800 Subject: [PATCH] use a better way to update react-native package --- docs/Upgrading.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/Upgrading.md b/docs/Upgrading.md index aca07b075..51b46bfe7 100644 --- a/docs/Upgrading.md +++ b/docs/Upgrading.md @@ -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