How to build react native android app for production?

后端 未结 4 1765
醉梦人生
醉梦人生 2020-12-12 22:06

I\'ve seen new release of react native for android and tried some examples. It works only with USB debug mode and \"adb reverse tcp:8081 tcp:8081\". How can I build android

4条回答
  •  猫巷女王i
    2020-12-12 22:45

    To build a release version of your Android app:

    $ cd your-app-folder
    $ cd android && ./gradlew assembleRelease
    

    You'll need to set up signing keys for the Play Store, full documentation here: http://facebook.github.io/react-native/docs/signed-apk-android.html

提交回复
热议问题