I'm newbie in RN. I have a problem with building release APK. I'm doing following steps:
- rm -rf node_modules & npm install
- Generating bundle:
react-native bundle
--platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets dest android/app/src/main/res/
- cd android & ./gradlew assembleRelease
app/build.gradle:
project.ext.react = [
entryFile: "index.js",
bundleInDebug: true,
bundleInRelease: true,
]
apply from: "../../node_modules/react-native/react.gradle"
....
It seems bundleInRelease option is not working properly. However ./gradlew assembleDebug works perfect! Please help!