简体   繁体   English

如何减小 Expo/React-Native 中 APK 的大小?

[英]How to reduce size of APK in Expo/React-Native?

I am developing an app by using react native with expo. As I am compiling to Apk file.我正在通过使用 react native 和 expo 开发一个应用程序。当我编译到 Apk 文件时。 The size goes up to 48mb and after having installed on a device, it goes to 90mb.大小增加到 48mb,在安装到设备上后,大小增加到 90mb。 Is this normal?这是正常的吗? Are there any ways to reduce the size of the app in 2020?在 2020 年有什么方法可以减小应用程序的大小吗? Thank you guys.谢谢你们。

I'm going to have to agree with Vinzzz that most of the size will come down to your assets.我将不得不同意 Vinzzz 的观点,即大部分规模将取决于您的资产。 If you're including things like images or videos make sure the dimensions aren't too big, you don't need a 4k image for example;)如果您包含图像或视频之类的内容,请确保尺寸不会太大,例如您不需要 4k 图像;)

An app that I've released which is mainly text is also 48mb.我发布的一个主要是文本的应用程序也是 48mb。 This is a normal size for a react-native app unfortunately.不幸的是,这是 react-native 应用程序的正常大小。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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