Alex Dai Playground

[React Native] Android Quick start

| Comments

Requirements

  • python 2.7.x
  • node 4.x
  • android sdk

Quick start

安裝 react native command line

$ npm install -g react-native-cli

初始化名為 AwesomeProject 的新專案

$ react-native init AwesomeProject

切換到該專案目錄

$ cd AwesomeProject

編譯 for android

$ react-native run-android

-> No online devices found.

The issue was with the Android Emulator. Changed the AVD settings to enable "Use Host GPU" and the issue was resolved.

$ adb reverse tcp:8081 tcp:8081
$ npm start

Comments

comments powered by Disqus