Monday, November 19, 2018

In React Native, How to Reduce the app size?

How to Reduce the app size in React Native?


./android/app/build.gradle

Step 1.1 Remove x86 from abi filters.



Make following changes in build.gradle :

Open up /android/app/build.gradle

Generate different APK's for different architecture

Enable ProGuard :


Step 2     Set def enableProguardInReleaseBuilds = true 


default false








Step 3       Set def enableSeparateBuildPerCPUArchitecture = true

default false













No comments:

Post a Comment