When I run react-native run-android it only installs the old version of the app in simulator and changes are not shown.
Any suggestion is appreciated.
To configure your app to be built using the Release scheme, go to Product → Scheme → Edit Scheme. Select the Run tab in the sidebar, then set the Build Configuration dropdown to Release .
The number one drawback to React Native is performance. It is better than other hybrid tools and web apps, but there's no getting around the large overhead framework that slows down performance when measured against native apps.
Slow app launch is another issue of React Native apps. If your app opens too slowly, you probably have too many dependencies in your app and you're using slow components. Try to use fast, high-performance components and decrease the number of dependencies in your app.
Tried with the solutions above, not sure if they helped for the final version, but what worked at the end was running ./gradlew clean assembleRelease
in the /android
folder.
Seems like we have to re-bundle assets every time we compile it to android app. This worked for me:
First run this:
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
Then this:
react-native run-android
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With