How to reduce the app size in React Native?

I have observed that react native is taking lot of space even for a simple todo app. Is there any procedure to reduce the app size

Start a personal dev blog on your domain for free and grow your readership.

3.4K+ developers have started their personal blogs on Hashnode in the last one month.

Write in Markdown 路 Publish articles on custom domain 路 Gain readership on day zero 路 Automatic GitHub backup and more

Comments (1)

Atul Sharma's photo

Remove x86 from abi filters.

splits {
        abi {
            reset()
            enable true
            universalApk false
            include "armeabi-v7a", "x86"
        }
    }

Make following changes in build.gradle :

./android/app/build.gradle

Generate different APK's for different architecture

def enableSeparateBuildPerCPUArchitecture = true

Enable ProGuard :

def enableProguardInReleaseBuilds = true

Also set minifyEnabled true and shrinkResources true

buildTypes {
        release {
            minifyEnabled true
            shrinkResources true
            proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
        }
    }