React native blank screen after generating APK

后端 未结 2 1042
天涯浪人
天涯浪人 2021-02-11 02:37

I\'m using react-native, and everything was working well while I was developing, but, when I built the APK (using this tutorial: https://facebook.github.io/react-native/docs/sig

2条回答
  •  借酒劲吻你
    2021-02-11 03:37

    Ok I solved the issue by running the following command before building:

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

提交回复
热议问题