я следовал за этим: https://github.com/facebook/react-native/issues/2943Как сгенерировать файл .apk из index.android.bundle?
$ cd your_project_dir
$ npm start # start the packager if not started already
$ curl "http://localhost:8081/index.android.bundle?platform=android?dev=false" -o "android/app/src/main/assets/index.android.bundle"
И успешно произвел index.android.bundle
файл. Но странно, нет ничего, что объясняет, как превратить это в файл .apk
.
EDIT:
я сделал:
$ react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
Но android/app/src/main/res/
есть только файл манифеста и значок приложения. No .apk
файл.
Вы пытаетесь получить освобождение или отладки APK? –
@ G.Hamaide Релиз apk. – alex