Open
Description
相关平台
React Native
使用框架: React
复现步骤
将Taro4.0.4版本,开了小程序应用,可以正常使用。
之后将这个项目编译打包成了Android与iOS的RN平台项目。在XiaoMi Play手机,Android 8.0上,冷启时长有10s。在iOS上,iPhone15 pro max机型,冷启也是有10s。
因为项目是直接用Taro的分离方式,通过相关指令编译打包的,并未做其他设置。
请问如何优化启动速度呢?
期望结果
RN平台打包的Android与iOS平台上的项目,冷启时间在1s内
实际结果
RN平台打包的Android与iOS平台上的项目,冷启时间慢
环境信息
👽 Taro v4.0.4
Taro CLI 4.0.4 environment info:
System:
OS: macOS 14.2
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.11.1 - /usr/local/bin/node
Yarn: 3.6.4 - /opt/homebrew/bin/yarn
npm: 10.8.2 - /opt/homebrew/bin/npm
npmPackages:
@tarojs/cli: 4.0.4 => 4.0.4
@tarojs/components: 4.0.4 => 4.0.4
@tarojs/helper: 4.0.4 => 4.0.4
@tarojs/plugin-framework-react: 4.0.4 => 4.0.4
@tarojs/plugin-platform-alipay: 4.0.4 => 4.0.4
@tarojs/plugin-platform-h5: 4.0.4 => 4.0.4
@tarojs/plugin-platform-harmony-hybrid: 4.0.4 => 4.0.4
@tarojs/plugin-platform-jd: 4.0.4 => 4.0.4
@tarojs/plugin-platform-qq: 4.0.4 => 4.0.4
@tarojs/plugin-platform-swan: 4.0.4 => 4.0.4
@tarojs/plugin-platform-tt: 4.0.4 => 4.0.4
@tarojs/plugin-platform-weapp: 4.0.4 => 4.0.4
@tarojs/react: 4.0.4 => 4.0.4
@tarojs/runtime: 4.0.4 => 4.0.4
@tarojs/shared: 4.0.4 => 4.0.4
@tarojs/taro: 4.0.4 => 4.0.4
@tarojs/taro-loader: 4.0.4 => 4.0.4
@tarojs/webpack5-runner: 4.0.4 => 4.0.4
babel-preset-taro: 4.0.4 => 4.0.4
eslint-config-taro: 4.0.4 => 4.0.4
react: ^18.0.0 => 18.3.1
Activity