Installation
Install the requrements
1 | brew update |
Create project
1 | react-native init <PROJECT_NAME> |
Install android sdk
1 | /Users/zeuxis/Documents/AndroidSDK/tools/android |
Select install targets
1 | > Tools |
Run
Set android home path
1 | export ANDROID_HOME=/path/to/AndroidSDK |
Run android app in device
1 | react-native run-android |
Connect via USB and reverse tcp port
1 |
|
Start packager (if the packager does not started)
1 |
|
If you want connect via Wifi
1 | https://facebook.github.io/react-native/docs/running-on-device-android.html#configure-device-to-connect-to-the-dev-server-via-wi-fi |