1. To Clean the build
cd android
gradlew clean
cd ..
react-native run-android
2. For Production deployment
cd android/app
rm -r build
react-native run-android --variant=release
3. Generate the index.android.js file
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
4.
Open android studio and run and sign build.
5.
Remove the duplicate .Js files from the res (if needed)
No comments:
Post a Comment