diff --git a/releases/next/docs/getting-started.html b/releases/next/docs/getting-started.html index ea1fc786f86..0d5cb41f0b5 100644 --- a/releases/next/docs/getting-started.html +++ b/releases/next/docs/getting-started.html @@ -40,24 +40,26 @@ block { display: none; }

Unsupported #

Unfortunately, Apple only lets you develop for iOS on a Mac machine. Please check out the Android instructions instead.
-
+

Installation #

Required Prerequisites #

Homebrew #

Homebrew, in order to install the required NodeJS, in addition to some -recommended installs.

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

We recommend periodically running brew update && brew upgrade to keep your programs up-to-date.

Node #

Use Homebrew to install Node.js.

NodeJS 4.0 or greater is required for React Native. The default Homebrew package for Node is +recommended installs.

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Node #

Use Homebrew to install Node.js.

NodeJS 4.0 or greater is required for React Native. The default Homebrew package for Node is currently 6.0, so that is not an issue.

brew install node

React Native Command Line Tools #

The React Native command line tools allow you to easily create and initialize projects, etc.

npm install -g react-native-cli

If you see the error, EACCES: permission denied, please run the command: sudo npm install -g react-native-cli.

Xcode #

Xcode 7.0 or higher. Open the App Store or go to https://developer.apple.com/xcode/downloads/. This will also install git as well.

-

Android Studio #

Android Studio 2.0 or higher. This will provide you -the Android SDK and emulator required to run and test your React Native apps.

Android Studio requires the Java Development Kit [JDK] 1.8 or higher. You can type +

Android Studio #

Android Studio 2.0 or higher.

Android Studio requires the Java Development Kit [JDK] 1.8 or higher. You can type javac -version to see what version you have, if any. If you do not meet the JDK requirement, you can -download it.

You will need to customize your installation:

custom installation

additional installs

configure sdk

platforms

build tools

ANDROID_HOME Environment Variable #

Ensure the ANDROID_HOME environment variable points to your existing Android SDK. To do that, add +download it.

Android Studio will provide you the Android SDK and emulator required to run and test your React +Native apps.

Unless otherwise mentioned, keep all the setup defaults intact. For example, the +Android Support Repository is installed automatically with Android Studio, and we need that +for React Native.

You will need to customize your installation:

custom installation

additional installs

configure sdk

platforms

build tools

ANDROID_HOME Environment Variable #

Ensure the ANDROID_HOME environment variable points to your existing Android SDK. To do that, add this to your ~/.bashrc, ~/.bash_profile (or whatever your shell uses) and re-open your terminal:

# If you installed the SDK without Android Studio, then it may be something like: # /usr/local/opt/android-sdk export ANDROID_HOME=~/Library/Android/sdk
@@ -72,8 +74,8 @@ PATH="~/Libr export PATH

Gradle Daemon #

Enable Gradle Daemon which greatly improves incremental build times for changes in java code.

Other Optional Installs #

Git #

Git version control. If you have installed Xcode, Git is already installed, otherwise run the following:

brew install git
-

Nuclide #

[Nuclide] is an IDE from Facebook providing a first-class development environment for writing, -running and +

Nuclide #

Nuclide is an IDE from Facebook providing a first-class development environment +for writing, running and debugging React Native applications.

Get started with Nuclide here.

@@ -104,13 +106,15 @@ sudo ln -s /

Fire up the Termimal and use Chocolatey to install NodeJS.

choco install nodejs.install

React Native Command Line Tools #

The React Native command line tools allow you to easily create and initialize projects, etc.

npm install -g react-native-cli

If you see the error, EACCES: permission denied, please run the command: -sudo npm install -g react-native-cli.

Android Studio #

Android Studio 2.0 or higher. This will provide you -the Android SDK and emulator required to run and test your React Native apps.

Android Studio requires the Java Development Kit [JDK] 1.8 or higher. You can type +sudo npm install -g react-native-cli.

Android Studio #

Android Studio 2.0 or higher.

Android Studio requires the Java Development Kit [JDK] 1.8 or higher. You can type javac -version to see what version you have, if any. If you do not meet the JDK requirement, you can download it, or use a pacakage manager to install it (e.g. choco install jdk8, -apt-get install default-jdk).

+apt-get install default-jdk).

Android Studio will provide you the Android SDK and emulator required to run and test your React +Native apps.

Unless otherwise mentioned, keep all the setup defaults intact. For example, the +Android Support Repository is installed automatically with Android Studio, and we need that +for React Native.

You will need to customize your installation:

custom installation

additional installs

@@ -240,9 +244,9 @@ folder in Nuclide and - + -

That's It #

Congratulations! You've successfully run and modified your first React Native app.

+

That's It #

Congratulations! You've successfully run and modified your first React Native app.

@@ -256,8 +260,7 @@ react-native startthis file (under your node_modules/react-native/).

-

Modifying Project #

Now that you successfully started the project, let's modify it:

  • Open index.android.js in your text editor of choice (e.g. Nuclide) and edit some lines.
  • Press the R key twice OR open the menu (F2 by default, or ⌘-M in the emulator) and select Reload JS to see your change!
  • Run adb logcat *:S ReactNative:V ReactNativeJS:V in a terminal to see your app's logs

That's It #

Congratulations! You've successfully run and modified your first React Native app.

- +

Modifying Project #

Now that you successfully started the project, let's modify it:

  • Open index.android.js in your text editor of choice (e.g. Nuclide) and edit some lines.
  • Press the R key twice OR open the menu (F2 by default, or ctrl-M in the emulator) and select Reload JS to see your change!
  • Run adb logcat *:S ReactNative:V ReactNativeJS:V in a terminal to see your app's logs

That's It #

Congratulations! You've successfully run and modified your first React Native app.

diff --git a/releases/next/img/react-native-congratulations.png b/releases/next/img/react-native-congratulations.png new file mode 100644 index 00000000000..92f520ec123 Binary files /dev/null and b/releases/next/img/react-native-congratulations.png differ diff --git a/releases/next/img/react-native-sorry-not-supported.png b/releases/next/img/react-native-sorry-not-supported.png new file mode 100644 index 00000000000..8848f4cdc6c Binary files /dev/null and b/releases/next/img/react-native-sorry-not-supported.png differ