From 75c7ec8c19c06c94b5c00ba7658a9340e882730e Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sat, 26 Dec 2015 18:16:09 +0000 Subject: [PATCH] update website --- docs/upgrading.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/upgrading.html b/docs/upgrading.html index baa67d31af6..fbe08ce7d53 100644 --- a/docs/upgrading.html +++ b/docs/upgrading.html @@ -2,8 +2,7 @@ and other goodies. Because React Native projects are essentially made up of an Android project, an iOS project and a JavaScript project, all combined under an npm package, upgrading can be rather tricky. But we try to make it easy for you. Here's what you need to do to upgrade from an older -version of React Native:

1. Upgrade the react-native dependency #

Note the latest version of the react-native npm package from here:

Open your package.json file and update the version of react-native under dependencies to the -latest version. Now, in a terminal run:

$ npm install

2. Upgrade your project templates #

The new npm package will likely contain updates to the files that are normally generated when you +version of React Native:

1. Upgrade the react-native dependency #

Note the latest version of the react-native npm package from here (or use npm info react-native to check):

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:

$ npm install --save react-native@0.18

2. Upgrade your project templates #

The new npm package will likely contain updates to the files that are normally generated when you run react-native init, like the iOS and the Android sub-projects. To get these latest changes, run this in a terminal:

$ react-native upgrade

This will check your files against the latest template and perform the following: