Hefeust CORTES
Hefeust CORTES

Reputation: 129

react-native + Android 4 problems

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

Answers (1)

Karan Khilwani
Karan Khilwani

Reputation: 106

  1. Create dir: mkdir android/app/src/main/assets

  2. Create file index.android.js which is a clone of index.js: cp index.js index.android.js

  3. react-native link

  4. curl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle"

  5. react-native run-android

Upvotes: 1

Related Questions