Is Babel Plugin Setup Necessary for Latest React Native Versions?
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Documentación
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript, react-native
- Área
- documentation, mobile-dev
Línea de trabajo
Start with the documented Babel setup and the example babel.config.js shown in the issue, then compare the React Native 0.73.6 and 0.75.4 configurations. Confirm whether the documentation should explain version-specific behavior or retain the plugin requirement; the issue is done when that guidance is clear and supported by the reported runtime behavior.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I’m using react-native-worklets-core with react-native-vision-camera-barcodes-scanner for barcode scanning. My app uses a frame processor with useFrameProcessor, which relies on Worklets to run JavaScript code on a separate thread.
According to the documentation, I should add the react-native-worklets-core/plugin to my babel.config.js:
module.exports = {
plugins: [
["react-native-worklets-core/plugin"],
],
};
For me, this setup is essential on React Native 0.73.6. Without it, the app throws a FATAL EXCEPTION at runtime (Android). However, on React Native 0.75.4, the Worklet works perfectly without any issues without the Babel plugin.
Could someone clarify why this is the case? Does React Native 0.75 or its associated Babel preset (@react-native/babel-preset) include built-in support for Worklets, eliminating the need for the react-native-worklets-core/plugin? Or is there another reason this works in newer versions?
Thank you for your time and expertise! I’d greatly appreciate any insights you can provide.
- Lenguaje dominante
- C++
- Estrellas
- 791
- Forks
- 65
- Métricas de merge de PR
- Sin PR fusionados en 30 d
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.
Más de margelo/react-native-worklets-core
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
margelo/react-native-worklets-core#271 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
margelo/react-native-worklets-core#269 · 2 reacciones ·
-
Unable to download JS bundle Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
margelo/react-native-worklets-core#268 · 2 comentarios ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
margelo/react-native-worklets-core#267 · 1 comentario · 1 reacción ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
margelo/react-native-worklets-core#266 · 1 comentario · 2 reacciones ·
Todos los issues de margelo/react-native-worklets-core
Issues similares
-
[CI] Nightly Clang build broken: structured binding captured in a lambda in FileDataSource.cpp Abiertobug build
Dificultad 1/5 Menos de una hora Aptitud para principiantes 91/100
facebookincubator/velox#19194 ·
-
JIT-compiled number -> Decimal conversion silently overflows instead of raising DECIMAL_OVERFLOW Abiertofuzz
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
ClickHouse/ClickHouse#122114 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
-
module/agent platform/macos type/bug/regression
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
enhancement PyCDE
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100