Reputation: 129
I'm trying to build a react-native app for Android 4.1.2
I compile the app OK, and then get a red screen with the "could not get native call queue" message.
In propopsed solutions : use adb reverse tcp:8081 tcp:8081 gets "closed port error" twice. Since adb reverse works only in Android 5 how can I do making this working properly ?
Other question : is it possible to unplugged phone and leave the server debug wifi coverage to test the app in the street ? (I guess in Cordova we could)
Thanks for replies.
Upvotes: 2
Views: 1044
Reputation: 106
Create dir: mkdir android/app/src/main/assets
Create file index.android.js
which is a clone of index.js: cp index.js index.android.js
react-native link
curl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle"
react-native run-android
Upvotes: 1