Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React native building release isn't reflecting changes that debug does (android)

I made some styling changes to my react native app. Everything looks good in debug so I tried to run the release variant using 'react-native run-android --variant=release' and none of that changes in debug show up. I made sure I wasn't crazy and removed the background image. The release variant didn't change at all. I then tried generating the signed apk and installing it manually. Same thing.

I can't seem to find anything on google. Has anyone had this problem before or have suggestions on what to try? I've combed through all the config files and everything seems right. I know its hard without being able to look at the code but I can't share it since its for internal company use only.

like image 200
Andrew Avatar asked Sep 24 '16 20:09

Andrew


Video Answer


1 Answers

For anyone still struggling with this, updating index.android.bundle usually solves this issue:

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/
like image 122
Matan Guttman Avatar answered Oct 19 '22 02:10

Matan Guttman