I've design a todo app with react native and it's more than 200mb so i want to reduce to size.
i've tried react-native-compressor but it's not working.
CodePudding user response:
Open up
android/app/build.gradle
Set def
enableProguardInReleaseBuilds = true
this would enable Progaurd to compress the Java Bytecode. This reduces the app size by a tad bitSet
def enableSeparateBuildPerCPUArchitecture = true
. Android
devices support two major device artitecturesarmebi
andx86
. By default RN builds the native librariers for both these artitectures
into the same apk.
for more info : click here
Hope this was helpful .