DEV Community

Yash Pradhan
Yash Pradhan

Posted on

App size got increased after react native and gradle upgrade

I upgraded my app's React Native version from 0.63.2 to 0.68, Gradle plugin from 4.0.1 to 7.0.4 , I thought by using higher version of react native and Gradle this will reduce my app's APK size but instead APK's size got increased by 6-7 MB .
What should I do now , my main goal is to have APK of smaller size, is there anything to do in 0.68 RN version so that APK size can get smaller or I should downgrade to 0.63.2 ?

Image description

Top comments (1)

Collapse
 
joelbonetr profile image
JoelBonetR 🥇

You updated without looking at the changelog on each version.

It is recommended to upgrade regularly instead jumping several versions at once.
Now you'll need to dice through the changelogs of each taking notes about the possible impacts in your product.

Maybe they add some dependencies that may be needed or not. Maybe they recommend to stop using some deprecated thingy and you didn't notice so now you've both deprecated version polyfilled plus the new one and so on.

I can't help you in your specific use-case but hope that points you into the right direction.

Also I hope you got tests and that you run them to ensure the "all green" after such big upgrade.

Best regards.