BUNDLE and MAP process for index.js is taking a long time
还没有人认领这个 Issue。
- 主要语言
- C++
- 星标
- 127k
- 派生
- 25.3k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 4
描述
Description
I recently upgraded my application's React Native version from 0.80.2 to 0.86.0 (the latest stable release). However, since then, the bundle and map process for the application's index.js file has become extremely slow; the app always stays on a blank screen with no UI response for over 100 seconds while the thread is running. I’ve tried various workarounds—such as initializing libraries asynchronously and using requestNextFrame to prioritize the UI rendering before any heavy processing takes place—but nothing has worked so far. Does anyone have any ideas or suggestions as to what exactly might be causing this?
I’ve shared a performance trace generated by React Native DevTools below; the screen was blank throughout the entire trace:
Steps to reproduce
- Execute
yarn android - Execute
yarn startin another terminal - Open app
React Native Version
0.86.0
Output of npx @react-native-community/cli info
System:
OS: Linux 7.0 Ubuntu 24.04.5 LTS 24.04.5 LTS (Noble Numbat)
CPU: (12) x64 AMD Ryzen 5 5600G with Radeon Graphics
Memory: 2.78 GB / 14.99 GB
Shell:
version: "5.9"
path: /usr/bin/zsh
Binaries:
Node:
version: 26.2.0
path: /home/sandrords/.nvm/versions/node/v26.2.0/bin/node
Yarn:
version: 1.22.22
path: /home/sandrords/.nvm/versions/node/v26.2.0/bin/yarn
npm:
version: 11.13.0
path: /home/sandrords/.nvm/versions/node/v26.2.0/bin/npm
Watchman: Not Found
SDKs:
Android SDK:
API Levels:
- "33"
- "34"
- "35"
- "36"
Build Tools:
- 30.0.3
- 33.0.0
- 34.0.0
- 35.0.0
- 36.0.0
Android NDK: Not Found
IDEs:
Android Studio: Not Found
Languages:
Java:
version: 17.0.20
path: /usr/bin/javac
Ruby:
version: 3.2.2
path: /home/sandrords/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli":
installed: 20.2.0
wanted: ^20.1.0
react:
installed: 19.2.3
wanted: 19.2.3
react-native:
installed: 0.86.2
wanted: ^0.86.0
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: false
Screenshots and Videos
No response
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
先使用 yarn android 和 yarn start 重现延迟,然后检查附加的 React Native DevTools trace,查找在打包和映射 index.js 时阻塞空白屏幕的工作。比较所报告的 React Native 版本上的行为,并记录一个可重现的原因或可执行的后续步骤;该 issue 当前没有指定项目文件或测试。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- android, react-native
- 领域
- mobile-dev, performance
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 活跃
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100