BUNDLE and MAP process for index.js is taking a long time
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- C++
- Estrellas
- 127k
- Forks
- 25.3k
- Merge medio
- 1 d 23 h
- PR fusionados (30 d)
- 4
Descripción
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
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Empieza reproduciendo el retraso con yarn android y yarn start y, después, inspecciona el trace adjunto de React Native DevTools en busca de trabajo que bloquee la pantalla en blanco mientras index.js se empaqueta y se mapea. Compara el comportamiento en las versiones de React Native indicadas y documenta una causa reproducible o un siguiente paso práctico; actualmente, el issue no menciona archivos de proyecto ni tests.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- android, react-native
- Área
- mobile-dev, performance
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Activo
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100