From e00e2f0e8c5430ae6b2fdd6ff2bab3abcc0475b7 Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Mon, 28 Nov 2016 12:46:39 +0000 Subject: [PATCH] Updated docs for next --- releases/next/docs/getting-started.html | 2 +- releases/next/docs/upgrading.html | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/releases/next/docs/getting-started.html b/releases/next/docs/getting-started.html index a1bd919a290..16de3da5f63 100644 --- a/releases/next/docs/getting-started.html +++ b/releases/next/docs/getting-started.html @@ -63,7 +63,7 @@ changes in the filesystem. It is highly recommended you install it for better pe

Node #

We recommend installing Node.js and Python2 via Chocolatey, a popular package manager for Windows. Open a Command Prompt as Administrator, then run:

choco install nodejs.install choco install python2

You can find additional installation options on Node.js's Downloads page.

-

The React Native CLI #

Node.js comes with npm, which lets you install the React Native command line interface.

+

The React Native CLI #

Node.js comes with npm, which lets you install the React Native command line interface.

Run the following command in a Terminal:

npm install -g react-native-cli

The React Native CLI #

Node.js comes with npm, which lets you install the React Native command line interface.

diff --git a/releases/next/docs/upgrading.html b/releases/next/docs/upgrading.html index f9f9856fe01..cfad8f195db 100644 --- a/releases/next/docs/upgrading.html +++ b/releases/next/docs/upgrading.html @@ -2,8 +2,10 @@ 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 (or use npm info react-native to check):

Now install that version of react-native in your project with npm install --save.

$ npm install --save react-native@X.Y -# where X.Y is the semantic version you are upgrading to

2. Upgrade your project templates #

The new npm package may 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:

$ 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:

$ npm install --save react@R +# where R is the new version of react from the peerDependency warning you saw

2. Upgrade your project templates #

The new npm package may contain updates to the files that are normally generated when you run react-native init, like the iOS and the Android sub-projects.

You may consult rn-diff to see if there were changes in the project template files. In case there weren't any, simply rebuild the project and continue developing. In case of minor changes, you may update your project manually and rebuild.

If there were major changes, run this in a terminal to get these:

$ react-native upgrade

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

  • If there is a new file in the template, it is simply created.
  • If a file in the template is identical to your file, it is skipped.
  • If a file is different in your project than the template, you will be prompted; you have options to view a diff between your file and the template file, keep your file or overwrite it with the