How to reduce the size of an expo/react-native app on Android

Sras picture Sras · Apr 24, 2018 · Viewed 28k times · Source

I am developing a small dictionary app by using react native with expo.

As I am compiling to Apk file. The size goes up to 30mb and after having installed on a device, it goes to 80mb.

Is this normal?

Are there any ways to reduce the size of the app?

Thank you guys.

Answer

jakobinn picture jakobinn · Sep 7, 2019

For android APK bundle using expo, you can use the following command:

expo build:android -t app-bundle

The size will be much smaller once you upload it to the play store. This is relevant for React Native SDK 32 and earlier.