简体   繁体   English

有没有办法在不使用纯 react-native 的情况下减少 expo apk 大小?

[英]Is there any way to reduce expo apk size without using pure react-native?

I am trying to install pure react-native but every now and then I am getting some error.我正在尝试安装纯 react-native 但时不时会遇到一些错误。 So it would be nice if there is a way to reduce expo apk size.因此,如果有办法减少 expo apk 大小,那就太好了。

You can migrate to react-native您可以迁移到 react-native

  • make a new react app "react-native init"制作一个新的反应应用程序“react-native init”
  • Copy the source files over from Expo project从 Expo 项目复制源文件
  • Install all dependencies of the Expo project except Expo specific libraries.安装 Expo 项目的所有依赖项,除了 Expo 特定库。
  • Make necessary adjustments to app.json file对 app.json 文件进行必要的调整
  • Download the signing key of your Android app from Expo using exp使用 exp 从 Expo 下载 Android 应用程序的签名密钥
  • fetch:android:keystore and set it up fetch:android:keystore 并设置它

More details here Reduced the Size of React Native App by 86%更多细节在这里React Native App 的大小减少了 86%

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

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