When I run react-native run-android
the correct version of my app runs on both the emulator and a physical device. However, the moment I try to run ./gradlew assembleRelease
or react-native run-android --variant=release
I get an older version of the app. I've tried running ./gradlew clean
before running assembleRelease. I've also tried manually deleting the apk and json files. But I keep getting an old version of the app which doesn't have all the new features.
EDIT: Using the directions from this post. I was able to get the new version to load, however, I lost all of the new images that came with the newer version. Any ideas how to make sure the images are loaded
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest andro id/app/src/main/res