0

我在 react-native 中开发了一个应用程序并将 .aab 文件发布到 Play Store。下载大小几乎为 11 MB。安装后需要 57 MB。附加了应用程序使用的存储详细信息的屏幕截图。以下是应用程序的依赖项。

{
        "@react-native-community/masked-view": "^0.1.10",
        "@react-native-community/netinfo": "^6.0.0",
        "@react-navigation/native": "^5.9.4",
        "@react-navigation/stack": "^5.14.4",
        "jssha": "^3.2.0",
        "prop-types": "^15.7.2",
        "react": "16.13.1",
        "react-native": "^0.64.0",
        "react-native-camera": "^3.43.4",
        "react-native-config": "^1.4.2",
        "react-native-gesture-handler": "^1.10.3",
        "react-native-polyfill": "^1.2.1",
        "react-native-reanimated": "^2.1.0",
        "react-native-safe-area-context": "^3.2.0",
        "react-native-screens": "^3.1.1",
        "react-native-sqlite-storage": "^5.0.0",
        "react-native-url-polyfill": "^1.2.0",
        "react-redux": "^7.2.3",
        "react-refresh": "^0.9.0",
        "redux": "^4.0.5",
        "redux-thunk": "^2.3.0",
        "rn-fetch-blob": "^0.12.0"
    }

我需要知道为什么用户数据占用 20 MB?

应用程序中最初没有存储任何内容,只是最初将一些空表存储在数据库中。只是正在创建一些数据库表。

谢谢

4

1 回答 1

0

应用程序大于下载大小实际上是正常的。您可以将应用程序包视为压缩文件。一旦它们被下载,它们也会被安装,当这种情况发生时,应用程序的大小会增加。有多种方法可以减小应用程序的大小,但无论如何,安装后它总是会变得比商店中说明的要大。

于 2021-06-24T10:04:24.683 回答