Deploy website

Deploy website version based on 3f1fbb9e00
This commit is contained in:
Website Deployment Script
2017-12-07 23:32:59 +00:00
parent 3f1fbb9e00
commit 0dc2f4e12b
5283 changed files with 70985 additions and 154873 deletions
+89 -244
View File
@@ -79,9 +79,7 @@
display: block;
}
</style>
<p>This page will help you install and build your first React Native app. If you
already have React Native installed, you can skip ahead to the
<a href="/react-native/docs/tutorial.html">Tutorial</a>.</p>
<p>This page will help you install and build your first React Native app. If you already have React Native installed, you can skip ahead to the <a href="/react-native/docs/tutorial.html">Tutorial</a>.</p>
<div class="toggler">
<ul role="tablist" >
<li id="quickstart" class="button-quickstart" aria-selected="false" role="tab" tabindex="0" aria-controls="quickstarttab" onclick="displayTab('guide', 'quickstart')">
@@ -93,83 +91,41 @@ already have React Native installed, you can skip ahead to the
</ul>
</div>
<p><block class="quickstart mac windows linux ios android" /></p>
<p><a href="https://github.com/react-community/create-react-native-app">Create React Native App</a>
is the easiest way to start building a new React Native application. It allows
you to start a project without installing or configuring any tools to build
native code - no Xcode or Android Studio installation required (see
<a href="/react-native/docs/getting-started.html#caveats">Caveats</a>).</p>
<p>Assuming that you have <a href="https://nodejs.org/en/download/">Node</a> installed, you
can use npm to install the <code>create-react-native-app</code> command line utility:</p>
<p><a href="https://github.com/react-community/create-react-native-app">Create React Native App</a> is the easiest way to start building a new React Native application. It allows you to start a project without installing or configuring any tools to build native code - no Xcode or Android Studio installation required (see <a href="/react-native/docs/getting-started.html#caveats">Caveats</a>).</p>
<p>Assuming that you have <a href="https://nodejs.org/en/download/">Node</a> installed, you can use npm to install the <code>create-react-native-app</code> command line utility:</p>
<pre><code class="hljs"><span class="hljs-string">npm </span><span class="hljs-string">install </span>-g <span class="hljs-built_in">create-react-native-app</span>
</code></pre>
<p>Then run the following commands to create a new React Native project called
&quot;AwesomeProject&quot;:</p>
<p>Then run the following commands to create a new React Native project called &quot;AwesomeProject&quot;:</p>
<pre><code class="hljs"><span class="hljs-built_in">create-react-native-app</span> <span class="hljs-string">AwesomeProject
</span>
<span class="hljs-string">cd </span><span class="hljs-string">AwesomeProject
</span><span class="hljs-string">npm </span><span class="hljs-string">start
</span></code></pre>
<p>This will start a development server for you, and print a QR code in your
terminal.</p>
<p>This will start a development server for you, and print a QR code in your terminal.</p>
<h2><a class="anchor" aria-hidden="true" name="running-your-react-native-application"></a><a href="#running-your-react-native-application" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Running your React Native application</h2>
<p>Install the <a href="https://expo.io">Expo</a> client app on your iOS or Android phone and
connect to the same wireless network as your computer. Using the Expo app, scan
the QR code from your terminal to open your project.</p>
<p>Install the <a href="https://expo.io">Expo</a> client app on your iOS or Android phone and connect to the same wireless network as your computer. Using the Expo app, scan the QR code from your terminal to open your project.</p>
<h3><a class="anchor" aria-hidden="true" name="modifying-your-app"></a><a href="#modifying-your-app" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Modifying your app</h3>
<p>Now that you have successfully run the app, let's modify it. Open <code>App.js</code> in
your text editor of choice and edit some lines. The application should reload
automatically once you save your changes.</p>
<p>Now that you have successfully run the app, let's modify it. Open <code>App.js</code> in your text editor of choice and edit some lines. The application should reload automatically once you save your changes.</p>
<h3><a class="anchor" aria-hidden="true" name="that-s-it"></a><a href="#that-s-it" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>That's it!</h3>
<p>Congratulations! You've successfully run and modified your first React Native
app.</p>
<p>Congratulations! You've successfully run and modified your first React Native app.</p>
<p><center><img src="/react-native/docs/assets/GettingStartedCongratulations.png" width="150"></img></center></p>
<h2><a class="anchor" aria-hidden="true" name="now-what"></a><a href="#now-what" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Now what?</h2>
<ul>
<li><p>Create React Native App also has a
<a href="https://github.com/react-community/create-react-native-app/blob/master/react-native-scripts/template/README.md">user guide</a>
you can reference if you have questions specific to the tool.</p></li>
<li><p>If you can't get this to work, see the
<a href="https://github.com/react-community/create-react-native-app/blob/master/react-native-scripts/template/README.md#troubleshooting">Troubleshooting</a>
section in the README for Create React Native App.</p></li>
<li><p>Create React Native App also has a <a href="https://github.com/react-community/create-react-native-app/blob/master/react-native-scripts/template/README.md">user guide</a> you can reference if you have questions specific to the tool.</p></li>
<li><p>If you can't get this to work, see the <a href="https://github.com/react-community/create-react-native-app/blob/master/react-native-scripts/template/README.md#troubleshooting">Troubleshooting</a> section in the README for Create React Native App.</p></li>
</ul>
<p>If you're curious to learn more about React Native, continue on to the
<a href="/react-native/docs/tutorial.html">Tutorial</a>.</p>
<p>If you're curious to learn more about React Native, continue on to the <a href="/react-native/docs/tutorial.html">Tutorial</a>.</p>
<h3><a class="anchor" aria-hidden="true" name="running-your-app-on-a-simulator-or-virtual-device"></a><a href="#running-your-app-on-a-simulator-or-virtual-device" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Running your app on a simulator or virtual device</h3>
<p>Create React Native App makes it really easy to run your React Native app on a
physical device without setting up a development environment. If you want to run
your app on the iOS Simulator or an Android Virtual Device, please refer to the
instructions for building projects with native code to learn how to install
Xcode and set up your Android development environment.</p>
<p>Once you've set these up, you can launch your app on an Android Virtual Device
by running <code>npm run android</code>, or on the iOS Simulator by running <code>npm run ios</code>
(macOS only).</p>
<p>Create React Native App makes it really easy to run your React Native app on a physical device without setting up a development environment. If you want to run your app on the iOS Simulator or an Android Virtual Device, please refer to the instructions for building projects with native code to learn how to install Xcode and set up your Android development environment.</p>
<p>Once you've set these up, you can launch your app on an Android Virtual Device by running <code>npm run android</code>, or on the iOS Simulator by running <code>npm run ios</code> (macOS only).</p>
<h3><a class="anchor" aria-hidden="true" name="caveats"></a><a href="#caveats" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Caveats</h3>
<p>Because you don't build any native code when using Create React Native App to
create a project, it's not possible to include custom native modules beyond the
React Native APIs and components that are available in the Expo client app.</p>
<p>If you know that you'll eventually need to include your own native code, Create
React Native App is still a good way to get started. In that case you'll just
need to
&quot;<a href="https://github.com/react-community/create-react-native-app/blob/master/react-native-scripts/template/README.md#ejecting-from-create-react-native-app">eject</a>&quot;
eventually to create your own native builds. If you do eject, the &quot;Building
Projects with Native Code&quot; instructions will be required to continue working on
your project.</p>
<p>Create React Native App configures your project to use the most recent React
Native version that is supported by the Expo client app. The Expo client app
usually gains support for a given React Native version about a week after the
React Native version is released as stable. You can check
<a href="https://github.com/react-community/create-react-native-app/blob/master/VERSIONS.md">this document</a>
to find out what versions are supported.</p>
<p>If you're integrating React Native into an existing project, you'll want to skip
Create React Native App and go directly to setting up the native build
environment. Select &quot;Building Projects with Native Code&quot; above for instructions
on configuring a native build environment for React Native.</p>
<p>Because you don't build any native code when using Create React Native App to create a project, it's not possible to include custom native modules beyond the React Native APIs and components that are available in the Expo client app.</p>
<p>If you know that you'll eventually need to include your own native code, Create React Native App is still a good way to get started. In that case you'll just need to &quot;<a href="https://github.com/react-community/create-react-native-app/blob/master/react-native-scripts/template/README.md#ejecting-from-create-react-native-app">eject</a>&quot; eventually to create your own native builds. If you do eject, the &quot;Building Projects with Native Code&quot; instructions will be required to continue working on your project.</p>
<p>Create React Native App configures your project to use the most recent React Native version that is supported by the Expo client app. The Expo client app usually gains support for a given React Native version about a week after the React Native version is released as stable. You can check <a href="https://github.com/react-community/create-react-native-app/blob/master/VERSIONS.md">this document</a> to find out what versions are supported.</p>
<p>If you're integrating React Native into an existing project, you'll want to skip Create React Native App and go directly to setting up the native build environment. Select &quot;Building Projects with Native Code&quot; above for instructions on configuring a native build environment for React Native.</p>
<p><block class="native mac windows linux ios android" /></p>
<p>Follow these instructions if you need to build native code in your project. For example, if you are integrating React Native into an existing application, or if you "ejected" from <a href="getting-started.md" onclick="displayTab('guide', 'quickstart')">Create React Native App</a>, you'll need this section.</p>
<p>The instructions are a bit different depending on your development operating
system, and whether you want to start developing for iOS or Android. If you want
to develop for both iOS and Android, that's fine - you just have to pick one to
start with, since the setup is a bit different.</p>
<p>The instructions are a bit different depending on your development operating system, and whether you want to start developing for iOS or Android. If you want to develop for both iOS and Android, that's fine - you just have to pick one to start with, since the setup is a bit different.</p>
<div class="toggler">
<span>Development OS:</span>
<a href="javascript:void(0);" class="button-mac" onclick="displayTab('os', 'mac')">macOS</a>
@@ -184,114 +140,75 @@ start with, since the setup is a bit different.</p>
<blockquote><p>A Mac is required to build projects with native code for iOS. You can follow the <a href="getting-started.md" onclick="displayTab('guide', 'quickstart')">Quick Start</a> to learn how to build your app using Create React Native App instead.</p></blockquote>
<p><block class="native mac ios" /></p>
<h2><a class="anchor" aria-hidden="true" name="installing-dependencies"></a><a href="#installing-dependencies" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Installing dependencies</h2>
<p>You will need Node, Watchman, the React Native command line interface, and
Xcode.</p>
<p>While you can use any editor of your choice to develop your app, you will need
to install Xcode in order to set up the necessary tooling to build your React
Native app for iOS.</p>
<p>You will need Node, Watchman, the React Native command line interface, and Xcode.</p>
<p>While you can use any editor of your choice to develop your app, you will need to install Xcode in order to set up the necessary tooling to build your React Native app for iOS.</p>
<p><block class="native mac android" /></p>
<h2><a class="anchor" aria-hidden="true" name="installing-dependencies"></a><a href="#installing-dependencies" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Installing dependencies</h2>
<p>You will need Node, Watchman, the React Native command line interface, a JDK,
and Android Studio.</p>
<p>You will need Node, Watchman, the React Native command line interface, a JDK, and Android Studio.</p>
<p><block class="native linux android" /></p>
<h2><a class="anchor" aria-hidden="true" name="installing-dependencies"></a><a href="#installing-dependencies" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Installing dependencies</h2>
<p>You will need Node, the React Native command line interface, a JDK, and Android
Studio.</p>
<p>You will need Node, the React Native command line interface, a JDK, and Android Studio.</p>
<p><block class="native windows android" /></p>
<h2><a class="anchor" aria-hidden="true" name="installing-dependencies"></a><a href="#installing-dependencies" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Installing dependencies</h2>
<p>You will need Node, the React Native command line interface, Python2, a JDK, and
Android Studio.</p>
<p>You will need Node, the React Native command line interface, Python2, a JDK, and Android Studio.</p>
<p><block class="native mac windows linux android" /></p>
<p>While you can use any editor of your choice to develop your app, you will need
to install Android Studio in order to set up the necessary tooling to build your
React Native app for Android.</p>
<p>While you can use any editor of your choice to develop your app, you will need to install Android Studio in order to set up the necessary tooling to build your React Native app for Android.</p>
<p><block class="native mac ios android" /></p>
<h3><a class="anchor" aria-hidden="true" name="node-watchman"></a><a href="#node-watchman" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Node, Watchman</h3>
<p>We recommend installing Node and Watchman using <a href="http://brew.sh/">Homebrew</a>. Run
the following commands in a Terminal after installing Homebrew:</p>
<p>We recommend installing Node and Watchman using <a href="http://brew.sh/">Homebrew</a>. Run the following commands in a Terminal after installing Homebrew:</p>
<pre><code class="hljs">brew install <span class="hljs-keyword">node</span>
<span class="hljs-title">brew</span> install watchman
</code></pre>
<p>If you have already installed Node on your system, make sure it is version 4 or
newer.</p>
<p><a href="https://facebook.github.io/watchman">Watchman</a> is a tool by Facebook for
watching changes in the filesystem. It is highly recommended you install it for
better performance.</p>
<p>If you have already installed Node on your system, make sure it is version 4 or newer.</p>
<p><a href="https://facebook.github.io/watchman">Watchman</a> is a tool by Facebook for watching changes in the filesystem. It is highly recommended you install it for better performance.</p>
<p><block class="native linux android" /></p>
<h3><a class="anchor" aria-hidden="true" name="node"></a><a href="#node" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Node</h3>
<p>Follow the
<a href="https://nodejs.org/en/download/package-manager/">installation instructions for your Linux distribution</a>
to install Node 6 or newer.</p>
<p>Follow the <a href="https://nodejs.org/en/download/package-manager/">installation instructions for your Linux distribution</a> to install Node 6 or newer.</p>
<p><block class='native windows android' /></p>
<h3><a class="anchor" aria-hidden="true" name="node-python2-jdk"></a><a href="#node-python2-jdk" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Node, Python2, JDK</h3>
<p>We recommend installing Node and Python2 via
<a href="https://chocolatey.org">Chocolatey</a>, a popular package manager for Windows.</p>
<p>React Native also requires a recent version of the
<a href="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html">Java SE Development Kit (JDK)</a>,
as well as Python 2. Both can be installed using Chocolatey.</p>
<p>Open an Administrator Command Prompt (right click Command Prompt and select &quot;Run
as Administrator&quot;), then run the following command:</p>
<p>We recommend installing Node and Python2 via <a href="https://chocolatey.org">Chocolatey</a>, a popular package manager for Windows.</p>
<p>React Native also requires a recent version of the <a href="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html">Java SE Development Kit (JDK)</a>, as well as Python 2. Both can be installed using Chocolatey.</p>
<p>Open an Administrator Command Prompt (right click Command Prompt and select &quot;Run as Administrator&quot;), then run the following command:</p>
<pre><code class="hljs css powershell">choco install -y nodejs.install python2 jdk8
</code></pre>
<p>If you have already installed Node on your system, make sure it is version 4 or
newer. If you already have a JDK on your system, make sure it is version 8 or
newer.</p>
<p>If you have already installed Node on your system, make sure it is version 4 or newer. If you already have a JDK on your system, make sure it is version 8 or newer.</p>
<blockquote>
<p>You can find additional installation options on
<a href="https://nodejs.org/en/download/">Node's Downloads page</a>.</p>
<p>You can find additional installation options on <a href="https://nodejs.org/en/download/">Node's Downloads page</a>.</p>
</blockquote>
<p><block class="native mac ios android" /></p>
<h3><a class="anchor" aria-hidden="true" name="the-react-native-cli"></a><a href="#the-react-native-cli" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>The React Native CLI</h3>
<p>Node comes with npm, which lets you install the React Native command line
interface.</p>
<p>Node comes with npm, which lets you install the React Native command line interface.</p>
<p>Run the following command in a Terminal:</p>
<pre><code class="hljs"><span class="hljs-built_in">npm</span> install -g react-<span class="hljs-keyword">native</span>-cli
</code></pre>
<blockquote>
<p>If you get an error like <code>Cannot find module 'npmlog'</code>, try installing npm
directly: <code>curl -0 -L https://npmjs.org/install.sh | sudo sh</code>.</p>
<p>If you get an error like <code>Cannot find module 'npmlog'</code>, try installing npm directly: <code>curl -0 -L https://npmjs.org/install.sh | sudo sh</code>.</p>
</blockquote>
<p><block class="native windows linux android" /></p>
<h3><a class="anchor" aria-hidden="true" name="the-react-native-cli"></a><a href="#the-react-native-cli" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>The React Native CLI</h3>
<p>Node comes with npm, which lets you install the React Native command line
interface.</p>
<p>Node comes with npm, which lets you install the React Native command line interface.</p>
<p>Run the following command in a Command Prompt or shell:</p>
<pre><code class="hljs css powershell">npm install -g react-native-cli
</code></pre>
<blockquote>
<p>If you get an error like <code>Cannot find module 'npmlog'</code>, try installing npm
directly: <code>curl -0 -L https://npmjs.org/install.sh | sudo sh</code>.</p>
<p>If you get an error like <code>Cannot find module 'npmlog'</code>, try installing npm directly: <code>curl -0 -L https://npmjs.org/install.sh | sudo sh</code>.</p>
</blockquote>
<p><block class="native mac ios" /></p>
<h3><a class="anchor" aria-hidden="true" name="xcode"></a><a href="#xcode" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Xcode</h3>
<p>The easiest way to install Xcode is via the
<a href="https://itunes.apple.com/us/app/xcode/id497799835?mt=12">Mac App Store</a>.
Installing Xcode will also install the iOS Simulator and all the necessary tools
to build your iOS app.</p>
<p>If you have already installed Xcode on your system, make sure it is version 8 or
higher.</p>
<p>The easiest way to install Xcode is via the <a href="https://itunes.apple.com/us/app/xcode/id497799835?mt=12">Mac App Store</a>. Installing Xcode will also install the iOS Simulator and all the necessary tools to build your iOS app.</p>
<p>If you have already installed Xcode on your system, make sure it is version 8 or higher.</p>
<h4><a class="anchor" aria-hidden="true" name="command-line-tools"></a><a href="#command-line-tools" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Command Line Tools</h4>
<p>You will also need to install the Xcode Command Line Tools. Open Xcode, then
choose &quot;Preferences...&quot; from the Xcode menu. Go to the Locations panel and
install the tools by selecting the most recent version in the Command Line Tools
dropdown.</p>
<p>You will also need to install the Xcode Command Line Tools. Open Xcode, then choose &quot;Preferences...&quot; from the Xcode menu. Go to the Locations panel and install the tools by selecting the most recent version in the Command Line Tools dropdown.</p>
<p><img src="/react-native/docs/assets/GettingStartedXcodeCommandLineTools.png" alt="Xcode Command Line Tools"></p>
<p><block class="native mac linux android" /></p>
<h3><a class="anchor" aria-hidden="true" name="java-development-kit"></a><a href="#java-development-kit" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Java Development Kit</h3>
<p>React Native requires a recent version of the Java SE Development Kit (JDK).
<a href="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html">Download and install JDK 8 or newer</a>
if needed.</p>
<p>React Native requires a recent version of the Java SE Development Kit (JDK). <a href="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html">Download and install JDK 8 or newer</a> if needed.</p>
<p><block class="native mac linux windows android" /></p>
<h3><a class="anchor" aria-hidden="true" name="android-development-environment"></a><a href="#android-development-environment" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Android development environment</h3>
<p>Setting up your development environment can be somewhat tedious if you're new to
Android development. If you're already familiar with Android development, there
are a few things you may need to configure. In either case, please make sure to
carefully follow the next few steps.</p>
<p>Setting up your development environment can be somewhat tedious if you're new to Android development. If you're already familiar with Android development, there are a few things you may need to configure. In either case, please make sure to carefully follow the next few steps.</p>
<p><block class="native mac windows linux android" /></p>
<h4><a class="anchor" aria-hidden="true" name="1-install-android-studio"></a><a href="#1-install-android-studio" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>1. Install Android Studio</h4>
<p><a href="https://developer.android.com/studio/index.html">Download and install Android Studio</a>.
Choose a &quot;Custom&quot; setup when prompted to select an installation type. Make sure
the boxes next to all of the following are checked:</p>
<p><a href="https://developer.android.com/studio/index.html">Download and install Android Studio</a>. Choose a &quot;Custom&quot; setup when prompted to select an installation type. Make sure the boxes next to all of the following are checked:</p>
<p><block class="native mac windows android" /></p>
<ul>
<li><code>Android SDK</code></li>
@@ -308,32 +225,21 @@ the boxes next to all of the following are checked:</p>
<p><block class="native mac windows linux android" /></p>
<p>Then, click &quot;Next&quot; to install all of these components.</p>
<blockquote>
<p>If the checkboxes are grayed out, you will have a chance to install these
components later on.</p>
<p>If the checkboxes are grayed out, you will have a chance to install these components later on.</p>
</blockquote>
<p>Once setup has finalized and you're presented with the Welcome screen, proceed
to the next step.</p>
<p>Once setup has finalized and you're presented with the Welcome screen, proceed to the next step.</p>
<h4><a class="anchor" aria-hidden="true" name="2-install-the-android-sdk"></a><a href="#2-install-the-android-sdk" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>2. Install the Android SDK</h4>
<p>Android Studio installs the latest Android SDK by default. Building a React
Native app with native code, however, requires the <code>Android 6.0 (Marshmallow)</code>
SDK in particular. Additional Android SDKs can be installed through the SDK
Manager in Android Studio.</p>
<p>The SDK Manager can be accessed from the &quot;Welcome to Android Studio&quot; screen.
Click on &quot;Configure&quot;, then select &quot;SDK Manager&quot;.</p>
<p>Android Studio installs the latest Android SDK by default. Building a React Native app with native code, however, requires the <code>Android 6.0 (Marshmallow)</code> SDK in particular. Additional Android SDKs can be installed through the SDK Manager in Android Studio.</p>
<p>The SDK Manager can be accessed from the &quot;Welcome to Android Studio&quot; screen. Click on &quot;Configure&quot;, then select &quot;SDK Manager&quot;.</p>
<p><block class="native mac android" /></p>
<p><img src="/react-native/docs/assets/GettingStartedAndroidStudioWelcomeMacOS.png" alt="Android Studio Welcome"></p>
<p><block class="native windows android" /></p>
<p><img src="/react-native/docs/assets/GettingStartedAndroidStudioWelcomeWindows.png" alt="Android Studio Welcome"></p>
<p><block class="native mac windows linux android" /></p>
<blockquote>
<p>The SDK Manager can also be found within the Android Studio &quot;Preferences&quot;
dialog, under <strong>Appearance &amp; Behavior</strong> → <strong>System Settings</strong> → <strong>Android
SDK</strong>.</p>
<p>The SDK Manager can also be found within the Android Studio &quot;Preferences&quot; dialog, under <strong>Appearance &amp; Behavior</strong> → <strong>System Settings</strong> → <strong>Android SDK</strong>.</p>
</blockquote>
<p>Select the &quot;SDK Platforms&quot; tab from within the SDK Manager, then check the box
next to &quot;Show Package Details&quot; in the bottom right corner. Look for and expand
the <code>Android 6.0 (Marshmallow)</code> entry, then make sure the following items are
all checked:</p>
<p>Select the &quot;SDK Platforms&quot; tab from within the SDK Manager, then check the box next to &quot;Show Package Details&quot; in the bottom right corner. Look for and expand the <code>Android 6.0 (Marshmallow)</code> entry, then make sure the following items are all checked:</p>
<ul>
<li><code>Google APIs</code></li>
<li><code>Android SDK Platform 23</code></li>
@@ -345,24 +251,20 @@ all checked:</p>
<p><block class="native windows android" /></p>
<p><img src="/react-native/docs/assets/GettingStartedAndroidSDKManagerWindows.png" alt="Android SDK Manager"></p>
<p><block class="native windows mac linux android" /></p>
<p>Next, select the &quot;SDK Tools&quot; tab and check the box next to &quot;Show Package
Details&quot; here as well. Look for and expand the &quot;Android SDK Build-Tools&quot; entry,
then make sure that <code>23.0.1</code> is selected.</p>
<p>Next, select the &quot;SDK Tools&quot; tab and check the box next to &quot;Show Package Details&quot; here as well. Look for and expand the &quot;Android SDK Build-Tools&quot; entry, then make sure that <code>23.0.1</code> is selected.</p>
<p><block class="native mac android" /></p>
<p><img src="/react-native/docs/assets/GettingStartedAndroidSDKManagerSDKToolsMacOS.png" alt="Android SDK Manager - 23.0.1 Build Tools"></p>
<p><block class="native windows android" /></p>
<p><img src="/react-native/docs/assets/GettingStartedAndroidSDKManagerSDKToolsWindows.png" alt="Android SDK Manager - 23.0.1 Build Tools"></p>
<p><block class="native windows mac linux android" /></p>
<p>Finally, click &quot;Apply&quot; to download and install the Android SDK and related build
tools.</p>
<p>Finally, click &quot;Apply&quot; to download and install the Android SDK and related build tools.</p>
<p><block class="native mac android" /></p>
<p><img src="/react-native/docs/assets/GettingStartedAndroidSDKManagerInstallsMacOS.png" alt="Android SDK Manager - Installs"></p>
<p><block class="native windows android" /></p>
<p><img src="/react-native/docs/assets/GettingStartedAndroidSDKManagerInstallsWindows.png" alt="Android SDK Manager - Installs"></p>
<p><block class="native mac windows linux android" /></p>
<h4><a class="anchor" aria-hidden="true" name="3-configure-the-android-home-environment-variable"></a><a href="#3-configure-the-android-home-environment-variable" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>3. Configure the ANDROID_HOME environment variable</h4>
<p>The React Native tools require some environment variables to be set up in order
to build apps with native code.</p>
<p>The React Native tools require some environment variables to be set up in order to build apps with native code.</p>
<p><block class="native mac linux android" /></p>
<p>Add the following lines to your <code>$HOME/.bash_profile</code> config file:</p>
<p><block class="native mac android" /></p>
@@ -377,113 +279,72 @@ to build apps with native code.</p>
</code></pre>
<p><block class="native mac linux android" /></p>
<blockquote>
<p><code>.bash_profile</code> is specific to <code>bash</code>. If you're using another shell, you will
need to edit the appropriate shell-specific config file.</p>
<p><code>.bash_profile</code> is specific to <code>bash</code>. If you're using another shell, you will need to edit the appropriate shell-specific config file.</p>
</blockquote>
<p>Type <code>source $HOME/.bash_profile</code> to load the config into your current shell.
Verify that ANDROID_HOME has been added to your path by running <code>echo $PATH</code>.</p>
<p>Type <code>source $HOME/.bash_profile</code> to load the config into your current shell. Verify that ANDROID_HOME has been added to your path by running <code>echo $PATH</code>.</p>
<blockquote>
<p>Please make sure you use the correct Android SDK path. You can find the actual
location of the SDK in the Android Studio &quot;Preferences&quot; dialog, under
<strong>Appearance &amp; Behavior</strong> → <strong>System Settings</strong> → <strong>Android SDK</strong>.</p>
<p>Please make sure you use the correct Android SDK path. You can find the actual location of the SDK in the Android Studio &quot;Preferences&quot; dialog, under <strong>Appearance &amp; Behavior</strong> → <strong>System Settings</strong> → <strong>Android SDK</strong>.</p>
</blockquote>
<p><block class="native windows android" /></p>
<p>Open the System pane under <strong>System and Security</strong> in the Control Panel, then
click on <strong>Change settings...</strong>. Open the <strong>Advanced</strong> tab and click on
<strong>Environment Variables...</strong>. Click on <strong>New...</strong> to create a new <code>ANDROID_HOME</code>
user variable that points to the path to your Android SDK:</p>
<p>Open the System pane under <strong>System and Security</strong> in the Control Panel, then click on <strong>Change settings...</strong>. Open the <strong>Advanced</strong> tab and click on <strong>Environment Variables...</strong>. Click on <strong>New...</strong> to create a new <code>ANDROID_HOME</code> user variable that points to the path to your Android SDK:</p>
<p><img src="/react-native/docs/assets/GettingStartedAndroidEnvironmentVariableANDROID_HOME.png" alt="ANDROID_HOME Environment Variable"></p>
<p>The SDK is installed, by default, at the following location:</p>
<pre><code class="hljs css powershell">c:\Users\YOUR_USERNAME\AppData\Local\Android\Sdk
</code></pre>
<p>You can find the actual location of the SDK in the Android Studio &quot;Preferences&quot;
dialog, under <strong>Appearance &amp; Behavior</strong> → <strong>System Settings</strong> → <strong>Android SDK</strong>.</p>
<p>Open a new Command Prompt window to ensure the new environment variable is
loaded before proceeding to the next step.</p>
<p>You can find the actual location of the SDK in the Android Studio &quot;Preferences&quot; dialog, under <strong>Appearance &amp; Behavior</strong> → <strong>System Settings</strong> → <strong>Android SDK</strong>.</p>
<p>Open a new Command Prompt window to ensure the new environment variable is loaded before proceeding to the next step.</p>
<p><block class="native linux android" /></p>
<h3><a class="anchor" aria-hidden="true" name="watchman-optional"></a><a href="#watchman-optional" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Watchman (optional)</h3>
<p>Follow the
<a href="https://facebook.github.io/watchman/install.html#buildinstall">Watchman installation guide</a>
to compile and install Watchman from source.</p>
<p>Follow the <a href="https://facebook.github.io/watchman/install.html#buildinstall">Watchman installation guide</a> to compile and install Watchman from source.</p>
<blockquote>
<p><a href="https://facebook.github.io/watchman/docs/install.html">Watchman</a> is a tool by
Facebook for watching changes in the filesystem. It is highly recommended you
install it for better performance, but it's alright to skip this if you find
the process to be tedious.</p>
<p><a href="https://facebook.github.io/watchman/docs/install.html">Watchman</a> is a tool by Facebook for watching changes in the filesystem. It is highly recommended you install it for better performance, but it's alright to skip this if you find the process to be tedious.</p>
</blockquote>
<p><block class="native mac ios" /></p>
<h2><a class="anchor" aria-hidden="true" name="creating-a-new-application"></a><a href="#creating-a-new-application" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Creating a new application</h2>
<p>Use the React Native command line interface to generate a new React Native
project called &quot;AwesomeProject&quot;:</p>
<p>Use the React Native command line interface to generate a new React Native project called &quot;AwesomeProject&quot;:</p>
<pre><code class="hljs">react-<span class="hljs-keyword">native</span> init AwesomeProject
</code></pre>
<p>This is not necessary if you are integrating React Native into an existing
application, if you &quot;ejected&quot; from Create React Native App, or if you're adding
iOS support to an existing React Native project (see
<a href="/react-native/docs/platform-specific-code.html">Platform Specific Code</a>).</p>
<p>This is not necessary if you are integrating React Native into an existing application, if you &quot;ejected&quot; from Create React Native App, or if you're adding iOS support to an existing React Native project (see <a href="/react-native/docs/platform-specific-code.html">Platform Specific Code</a>).</p>
<p><block class="native mac windows linux android" /></p>
<h2><a class="anchor" aria-hidden="true" name="creating-a-new-application"></a><a href="#creating-a-new-application" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Creating a new application</h2>
<p>Use the React Native command line interface to generate a new React Native
project called &quot;AwesomeProject&quot;:</p>
<p>Use the React Native command line interface to generate a new React Native project called &quot;AwesomeProject&quot;:</p>
<pre><code class="hljs">react-<span class="hljs-keyword">native</span> init AwesomeProject
</code></pre>
<p>This is not necessary if you are integrating React Native into an existing
application, if you &quot;ejected&quot; from Create React Native App, or if you're adding
Android support to an existing React Native project (see
<a href="/react-native/docs/platform-specific-code.html">Platform Specific Code</a>).</p>
<p>This is not necessary if you are integrating React Native into an existing application, if you &quot;ejected&quot; from Create React Native App, or if you're adding Android support to an existing React Native project (see <a href="/react-native/docs/platform-specific-code.html">Platform Specific Code</a>).</p>
<p><block class="native mac windows linux android" /></p>
<h2><a class="anchor" aria-hidden="true" name="preparing-the-android-device"></a><a href="#preparing-the-android-device" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Preparing the Android device</h2>
<p>You will need an Android device to run your React Native Android app. This can
be either a physical Android device, or more commonly, you can use an Android
Virtual Device which allows you to emulate an Android device on your computer.</p>
<p>Either way, you will need to prepare the device to run Android apps for
development.</p>
<p>You will need an Android device to run your React Native Android app. This can be either a physical Android device, or more commonly, you can use an Android Virtual Device which allows you to emulate an Android device on your computer.</p>
<p>Either way, you will need to prepare the device to run Android apps for development.</p>
<h3><a class="anchor" aria-hidden="true" name="using-a-physical-device"></a><a href="#using-a-physical-device" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Using a physical device</h3>
<p>If you have a physical Android device, you can use it for development in place
of an AVD by plugging it in to your computer using a USB cable and following the
instructions <a href="/react-native/docs/running-on-device.html">here</a>.</p>
<p>If you have a physical Android device, you can use it for development in place of an AVD by plugging it in to your computer using a USB cable and following the instructions <a href="/react-native/docs/running-on-device.html">here</a>.</p>
<h3><a class="anchor" aria-hidden="true" name="using-a-virtual-device"></a><a href="#using-a-virtual-device" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Using a virtual device</h3>
<p>You can see the list of available Android Virtual Devices (AVDs) by opening the
&quot;AVD Manager&quot; from within Android Studio. Look for an icon that looks like this:</p>
<p>You can see the list of available Android Virtual Devices (AVDs) by opening the &quot;AVD Manager&quot; from within Android Studio. Look for an icon that looks like this:</p>
<p><img src="/react-native/docs/assets/GettingStartedAndroidStudioAVD.png" alt="Android Studio AVD Manager"></p>
<p>If you have just installed Android Studio, you will likely need to
<a href="https://developer.android.com/studio/run/managing-avds.html">create a new AVD</a>.
Select &quot;Create Virtual Device...&quot;, then pick any Phone from the list and click
&quot;Next&quot;.</p>
<p>If you have just installed Android Studio, you will likely need to <a href="https://developer.android.com/studio/run/managing-avds.html">create a new AVD</a>. Select &quot;Create Virtual Device...&quot;, then pick any Phone from the list and click &quot;Next&quot;.</p>
<p><block class="native windows android" /></p>
<p><img src="/react-native/docs/assets/GettingStartedCreateAVDWindows.png" alt="Android Studio AVD Manager"></p>
<p><block class="native mac android" /></p>
<p><img src="/react-native/docs/assets/GettingStartedCreateAVDMacOS.png" alt="Android Studio AVD Manager"></p>
<p><block class="native mac windows linux android" /></p>
<p>Select the &quot;x86 Images&quot; tab, then look for the <strong>Marshmallow</strong> API Level 23,
x86_64 ABI image with a Android 6.0 (Google APIs) target.</p>
<p>Select the &quot;x86 Images&quot; tab, then look for the <strong>Marshmallow</strong> API Level 23, x86_64 ABI image with a Android 6.0 (Google APIs) target.</p>
<p><block class="native linux android" /></p>
<blockquote>
<p>We recommend configuring
<a href="https://developer.android.com/studio/run/emulator-acceleration.html#vm-linux">VM acceleration</a>
on your system to improve performance. Once you've followed those
instructions, go back to the AVD Manager.</p>
<p>We recommend configuring <a href="https://developer.android.com/studio/run/emulator-acceleration.html#vm-linux">VM acceleration</a> on your system to improve performance. Once you've followed those instructions, go back to the AVD Manager.</p>
</blockquote>
<p><block class="native windows android" /></p>
<p><img src="/react-native/docs/assets/GettingStartedCreateAVDx86Windows.png" alt="Install HAXM"></p>
<blockquote>
<p>If you don't have HAXM installed, click on &quot;Install HAXM&quot; or follow
<a href="https://software.intel.com/en-us/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-windows">these instructions</a>
to set it up, then go back to the AVD Manager.</p>
<p>If you don't have HAXM installed, click on &quot;Install HAXM&quot; or follow <a href="https://software.intel.com/en-us/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-windows">these instructions</a> to set it up, then go back to the AVD Manager.</p>
</blockquote>
<p><img src="/react-native/docs/assets/GettingStartedAVDManagerWindows.png" alt="AVD List"></p>
<p><block class="native mac android" /></p>
<p><img src="/react-native/docs/assets/GettingStartedCreateAVDx86MacOS.png" alt="Install HAXM"></p>
<blockquote>
<p>If you don't have HAXM installed, follow
<a href="https://software.intel.com/en-us/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-mac-os-x">these instructions</a>
to set it up, then go back to the AVD Manager.</p>
<p>If you don't have HAXM installed, follow <a href="https://software.intel.com/en-us/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-mac-os-x">these instructions</a> to set it up, then go back to the AVD Manager.</p>
</blockquote>
<p><img src="/react-native/docs/assets/GettingStartedAVDManagerMacOS.png" alt="AVD List"></p>
<p><block class="native mac windows linux android" /></p>
<p>Click &quot;Next&quot; then &quot;Finish&quot; to create your AVD. At this point you should be able
to click on the green triangle button next to your AVD to launch it, then
proceed to the next step.</p>
<p>Click &quot;Next&quot; then &quot;Finish&quot; to create your AVD. At this point you should be able to click on the green triangle button next to your AVD to launch it, then proceed to the next step.</p>
<p><block class="native mac ios" /></p>
<h2><a class="anchor" aria-hidden="true" name="running-your-react-native-application"></a><a href="#running-your-react-native-application" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Running your React Native application</h2>
<p>Run <code>react-native run-ios</code> inside your React Native project folder:</p>
@@ -492,34 +353,27 @@ react-native <span class="hljs-keyword">run</span><span class="bash">-ios
</span></code></pre>
<p>You should see your new app running in the iOS Simulator shortly.</p>
<p><img src="/react-native/docs/assets/GettingStartediOSSuccess.png" alt="AwesomeProject on iOS"></p>
<p><code>react-native run-ios</code> is just one way to run your app. You can also run it
directly from within Xcode or <a href="https://nuclide.io/">Nuclide</a>.</p>
<p><code>react-native run-ios</code> is just one way to run your app. You can also run it directly from within Xcode or <a href="https://nuclide.io/">Nuclide</a>.</p>
<blockquote>
<p>If you can't get this to work, see the
<a href="/react-native/docs/troubleshooting.html#content">Troubleshooting</a> page.</p>
<p>If you can't get this to work, see the <a href="/react-native/docs/troubleshooting.html#content">Troubleshooting</a> page.</p>
</blockquote>
<h3><a class="anchor" aria-hidden="true" name="running-on-a-device"></a><a href="#running-on-a-device" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Running on a device</h3>
<p>The above command will automatically run your app on the iOS Simulator by
default. If you want to run the app on an actual physical iOS device, please
follow the instructions <a href="/react-native/docs/running-on-device.html">here</a>.</p>
<p>The above command will automatically run your app on the iOS Simulator by default. If you want to run the app on an actual physical iOS device, please follow the instructions <a href="/react-native/docs/running-on-device.html">here</a>.</p>
<p><block class="native mac windows linux android" /></p>
<h2><a class="anchor" aria-hidden="true" name="running-your-react-native-application"></a><a href="#running-your-react-native-application" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Running your React Native application</h2>
<p>Run <code>react-native run-android</code> inside your React Native project folder:</p>
<pre><code class="hljs">cd AwesomeProject
react-native <span class="hljs-keyword">run</span><span class="bash">-android
</span></code></pre>
<p>If everything is set up correctly, you should see your new app running in your
Android emulator shortly.</p>
<p>If everything is set up correctly, you should see your new app running in your Android emulator shortly.</p>
<p><block class="native mac android" /></p>
<p><img src="/react-native/docs/assets/GettingStartedAndroidSuccessMacOS.png" alt="AwesomeProject on Android"></p>
<p><block class="native windows android" /></p>
<p><img src="/react-native/docs/assets/GettingStartedAndroidSuccessWindows.png" alt="AwesomeProject on Android"></p>
<p><block class="native mac windows linux android" /></p>
<p><code>react-native run-android</code> is just one way to run your app - you can also run it
directly from within Android Studio or <a href="https://nuclide.io/">Nuclide</a>.</p>
<p><code>react-native run-android</code> is just one way to run your app - you can also run it directly from within Android Studio or <a href="https://nuclide.io/">Nuclide</a>.</p>
<blockquote>
<p>If you can't get this to work, see the
<a href="/react-native/docs/troubleshooting.html#content">Troubleshooting</a> page.</p>
<p>If you can't get this to work, see the <a href="/react-native/docs/troubleshooting.html#content">Troubleshooting</a> page.</p>
</blockquote>
<p><block class="native mac ios android" /></p>
<h3><a class="anchor" aria-hidden="true" name="modifying-your-app"></a><a href="#modifying-your-app" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Modifying your app</h3>
@@ -532,8 +386,7 @@ directly from within Android Studio or <a href="https://nuclide.io/">Nuclide</a>
<p><block class="native mac android" /></p>
<ul>
<li>Open <code>App.js</code> in your text editor of choice and edit some lines.</li>
<li>Press the <code>R</code> key twice or select <code>Reload</code> from the Developer Menu (<code>⌘M</code>) to
see your changes!</li>
<li>Press the <code>R</code> key twice or select <code>Reload</code> from the Developer Menu (<code>⌘M</code>) to see your changes!</li>
</ul>
<p><block class="native windows linux android" /></p>
<h3><a class="anchor" aria-hidden="true" name="modifying-your-app"></a><a href="#modifying-your-app" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Modifying your app</h3>
@@ -544,34 +397,26 @@ see your changes!</li>
</ul>
<p><block class="native mac ios android" /></p>
<h3><a class="anchor" aria-hidden="true" name="that-s-it"></a><a href="#that-s-it" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>That's it!</h3>
<p>Congratulations! You've successfully run and modified your first React Native
app.</p>
<p>Congratulations! You've successfully run and modified your first React Native app.</p>
<p><center><img src="/react-native/docs/assets/GettingStartedCongratulations.png" width="150"></img></center></p>
<p><block class="native windows linux android" /></p>
<h3><a class="anchor" aria-hidden="true" name="that-s-it"></a><a href="#that-s-it" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>That's it!</h3>
<p>Congratulations! You've successfully run and modified your first React Native
app.</p>
<p>Congratulations! You've successfully run and modified your first React Native app.</p>
<p><center><img src="/react-native/docs/assets/GettingStartedCongratulations.png" width="150"></img></center></p>
<p><block class="native mac ios" /></p>
<h2><a class="anchor" aria-hidden="true" name="now-what"></a><a href="#now-what" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Now what?</h2>
<ul>
<li><p>Turn on <a href="/react-native/docs/debugging.html#reloading-javascript">Live Reload</a> in the Developer
Menu. Your app will now reload automatically whenever you save any changes!</p></li>
<li><p>If you want to add this new React Native code to an existing application,
check out the <a href="/react-native/docs/integration-with-existing-apps.html">Integration guide</a>.</p></li>
<li><p>Turn on <a href="/react-native/docs/debugging.html#reloading-javascript">Live Reload</a> in the Developer Menu. Your app will now reload automatically whenever you save any changes!</p></li>
<li><p>If you want to add this new React Native code to an existing application, check out the <a href="/react-native/docs/integration-with-existing-apps.html">Integration guide</a>.</p></li>
</ul>
<p>If you're curious to learn more about React Native, continue on to the
<a href="/react-native/docs/tutorial.html">Tutorial</a>.</p>
<p>If you're curious to learn more about React Native, continue on to the <a href="/react-native/docs/tutorial.html">Tutorial</a>.</p>
<p><block class="native windows linux mac android" /></p>
<h2><a class="anchor" aria-hidden="true" name="now-what"></a><a href="#now-what" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Now what?</h2>
<ul>
<li><p>Turn on <a href="/react-native/docs/debugging.html#reloading-javascript">Live Reload</a> in the Developer
Menu. Your app will now reload automatically whenever you save any changes!</p></li>
<li><p>If you want to add this new React Native code to an existing application,
check out the <a href="/react-native/docs/integration-with-existing-apps.html">Integration guide</a>.</p></li>
<li><p>Turn on <a href="/react-native/docs/debugging.html#reloading-javascript">Live Reload</a> in the Developer Menu. Your app will now reload automatically whenever you save any changes!</p></li>
<li><p>If you want to add this new React Native code to an existing application, check out the <a href="/react-native/docs/integration-with-existing-apps.html">Integration guide</a>.</p></li>
</ul>
<p>If you're curious to learn more about React Native, continue on to the
<a href="/react-native/docs/tutorial.html">Tutorial</a>.</p>
<p>If you're curious to learn more about React Native, continue on to the <a href="/react-native/docs/tutorial.html">Tutorial</a>.</p>
<script>
function displayTab(type, value) {
var container = document.getElementsByTagName('block')[0].parentNode;