简体   繁体   中英

Too large react-native release apk

Created a release apk for blank react native app, after analyzing the apk, found that lib folder takes 25mb by default, is there any way this size can be reduced for universal apk ? 在此输入图像描述

what i did : Created project using react-native-cli and not EXPO , was expecting lesser size based on google search, but got this

If you check the play store react-native apps size (like airbnb , instagram ) you will find out that all of react-native apps size are over 30 MB and it's normal for React-native apps to be much heavier than native apps. You can use react-native-cli instead of expo, your app size at first will be about 17 MB, It's much better i think. isn't it?

You can try this too to make it smaller. see this post on medium

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM