【发布时间】:2020-06-16 19:23:51
【问题描述】:
目前我的应用程序大小为 17 MB。但只有2个主屏幕。每个屏幕包含 3 个子屏幕。所以总共有6个屏幕。
My package.json :
"dependencies": {
"@react-native-community/async-storage": "^1.11.0",
"@react-native-firebase/app": "^7.2.0",
"@react-native-firebase/auth": "^8.0.4",
"@react-native-firebase/firestore": "^7.1.5",
"@react-navigation/native": "^5.5.0",
"@react-navigation/stack": "^5.4.1",
"firebase": "^7.15.0",
"react": "16.11.0",
"react-native": "0.62.2",
"react-native-animatable": "^1.3.3",
"react-native-asyncstorage": "^1.0.0",
"react-native-dropdown-picker": "^3.0.0",
"react-native-floating-action": "^1.20.0",
"react-native-keyboard-done-button": "^1.0.0",
"react-native-linear-gradient": "^2.5.6",
"react-native-loading-spinner-overlay": "^1.1.0",
"react-native-numeric-input": "^1.8.3",
"react-native-safe-area-context": "^3.0.2",
"react-native-screens": "^2.8.0",
"react-native-scrollable-tab-view": "^1.0.0",
"react-native-tag-input": "0.0.21",
"react-native-vector-icons": "^6.6.0",
"react-navigation": "^4.3.9",
"react-navigation-stack": "^2.7.0"
}
我的 react 原生版本:"version": "0.62.2"
我将这两个设置为 true :
def enableSeparateBuildPerCPUArchitecture = true
def enableProguardInReleaseBuilds = true
当我使用 android studio 检查应用程序分析器时。我懂了 : Here
我不确定libjsc.so, libflipper.sp 是什么以及为什么它会消耗这么多内存。我是新手,这是我的第一个应用程序。任何帮助都会很棒。
我也想知道因为react-native-scrollable-tab-view (top tab view), react-native-vector-icons, react-native-tag-input (just some tag input lib) 我的应用程序大小增加了?
谢谢
【问题讨论】:
标签: javascript android reactjs react-native visual-studio-code