react-native/ReactAndroid/DevExperience.md
Nick 2a03182b1c CHORE - Remove Trailing Spaces
Summary:Remove Trailing Spaces.

Why:
Sometimes there are conflicts with trailing spaces
Saves space
Those whose tools automatically delete them will have their pr watered down with trailing space removal
Closes https://github.com/facebook/react-native/pull/6787

Differential Revision: D3144704

fb-gh-sync-id: d8a62f115a3f8a8a49d5b07f56c540a02af38cf8
fbshipit-source-id: d8a62f115a3f8a8a49d5b07f56c540a02af38cf8
2016-04-06 09:21:53 -07:00

1.1 KiB

Here's how to test the whole dev experience end-to-end. This will be eventually merged into the Getting Started guide.

Assuming you have the Android SDK installed, run android to open the Android SDK Manager.

Make sure you have the following installed:

  • Android SDK version 23
  • SDK build tools version 23
  • Android Support Repository 17 (for Android Support Library)

Follow steps on https://github.com/facebook/react-native/blob/master/react-native-cli/CONTRIBUTING.md, but be sure to bump the version of react-native in package.json to some version > 0.9 (latest published npm version) or set up proxying properly for react-native

  • From the react-native-android repo:
    • ./gradlew :ReactAndroid:installArchives
    • Assuming you already have android-jsc installed to local maven repo, no steps included here
  • react-native init ProjectName
  • Open up your Android emulator (Genymotion is recommended)
  • cd ProjectName
  • react-native run-android

In case the app crashed:

  • Run adb logcat and try to find a Java exception