Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Performance 多个包和依赖关系是否会影响React本机android版本最终构建的大小_Performance_React Native_Build.gradle_React Native Android_Package.json - Fatal编程技术网

Performance 多个包和依赖关系是否会影响React本机android版本最终构建的大小

Performance 多个包和依赖关系是否会影响React本机android版本最终构建的大小,performance,react-native,build.gradle,react-native-android,package.json,Performance,React Native,Build.gradle,React Native Android,Package.json,我进入react native一个月,正在经历学习过程。添加太多的软件包是否会影响最终android版本的大小。我还想知道在多个应用程序中使用同一个项目是否是一种良好的做法。在单个项目中使用这么多依赖项安全吗 "dependencies": { "@react-native-community/masked-view": "^0.1.5", "@react-native-firebase/app": "^6.2.0", "@react-native-firebase/

我进入react native一个月,正在经历学习过程。添加太多的软件包是否会影响最终android版本的大小。我还想知道在多个应用程序中使用同一个项目是否是一种良好的做法。在单个项目中使用这么多依赖项安全吗

  "dependencies": {
    "@react-native-community/masked-view": "^0.1.5",
    "@react-native-firebase/app": "^6.2.0",
    "@react-native-firebase/auth": "^6.2.0",
    "native-base": "^2.13.8",
    "react": "16.9.0",
    "react-native": "0.61.5",
    "react-native-calendars": "^1.220.0",
    "react-native-contacts": "^5.0.6",
    "react-native-gesture-handler": "^1.5.3",
    "react-native-maps": "0.26.1",
    "react-native-safe-area-context": "^0.6.2",
    "react-native-star-rating": "^1.1.0",
    "react-native-vector-icons": "^6.6.0",
    "react-navigation": "^4.0.10",
    "react-navigation-stack": "^2.0.13"
  },
基本上是的

但是看看每个包裹要花多少钱

你应该用这个工具检查一下

模块成本

找出哪些依赖关系使您放慢了速度

npm安装-g模块成本

正在使用的目录中模块的运行成本

模块成本