MENU
Minimizing App Size
There are a few things you can do to minimize the storage footprint of your app:
Build an app bundle (.aab) instead of an APK. Once uploaded to Google Playstore, the app will have its size reduced (50%?) for the users.
Upgrade your Expo plan to EAS, which will reduce the size of your build by about 75%.
In app.json, make the following changes:
"expo": {... "android": { "enableDangerousExperimentalLeanBuilds": true }} |
...which should reduce the app size by 50% should the build succeed.
Use React-Native-CLI instead of Expo CLI.
Remove x86 architectures from build.gradle. Enable ProGuard. Also set minifyEnabled true and shrinkResources true:
...def enableProguardInReleaseBuilds = true...buildTypes { release { minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" }}... |