Add "npm i --save react" to Android docs

Summary:
This PR changes the docs for Android installation.

If you're a first time user and follow http://facebook.github.io/react-native/docs/integration-with-existing-apps.html, the react-enabled activity throws a red error screen with missing react module. `index.android.js` has `import React from 'react';`.
Closes https://github.com/facebook/react-native/pull/9614

Differential Revision: D3783092

Pulled By: javache

fbshipit-source-id: 5aef7cc1d47aa4702c854336f3670cdc47e10f86
This commit is contained in:
Vikram Aravamudhan 2016-08-27 12:25:16 -07:00 committed by Facebook Github Bot 7
parent 20c80e4929
commit 6729df3f28
1 changed files with 1 additions and 1 deletions

View File

@ -526,7 +526,7 @@ You can examine the code that added the React Native screen on [GitHub](https://
In your app's root folder, run:
$ npm init
$ npm install --save react-native
$ npm install --save react react-native
$ curl -o .flowconfig https://raw.githubusercontent.com/facebook/react-native/master/.flowconfig
This creates a node module for your app and adds the `react-native` npm dependency. Now open the newly created `package.json` file and add this under `scripts`: