From 9b7ca82c08e87048dbe00e80242a0aab47fb5a30 Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Fri, 11 Nov 2016 20:41:24 +0000 Subject: [PATCH] Updated docs for next --- releases/next/docs/integration-with-existing-apps.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/next/docs/integration-with-existing-apps.html b/releases/next/docs/integration-with-existing-apps.html index 2b1a104476c..621592355c6 100644 --- a/releases/next/docs/integration-with-existing-apps.html +++ b/releases/next/docs/integration-with-existing-apps.html @@ -360,7 +360,7 @@ public boolean onKeyUpreturn true; } return super.onKeyUp(keyCode, event); -}

That's it, your activity is ready to run some JavaScript code.

Run your app #

To run your app, you need to first start the development server. To do this, simply run the following command in your root folder:

$ npm start

Now build and run your Android app as normal (./gradlew installDebug from command-line; in Android Studio just create debug build as usual).

If you are using Android Studio for your builds and not the Gradle Wrapper directly, make sure you install watchman before running npm start. It will prevent the packager from crashing due to conflicts between Android Studio and the React Native packager.

Once you reach your React-powered activity inside the app, it should load the JavaScript code from the development server and display:

Screenshot