Is Babel Plugin Setup Necessary for Latest React Native Versions?
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 文档
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- javascript, react-native
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- C++
- 星标
- 791
- 派生
- 66
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
margelo/react-native-worklets-core 的其他 Issue
-
Worklets without captured variables are rejected as "Regular javascript function" when transpiled by react-native-worklets' Babel plugin可能已有人在做 @wn-na 于 3 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 55/100
-
难度 4/5 3-5 天 新手友好度 45/100
-
难度 5/5 一周以上 新手友好度 35/100
margelo/react-native-worklets-core#271 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
margelo/react-native-worklets-core#269 · 2 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 35/100
margelo/react-native-worklets-core#268 · 2 条评论 ·
查看 margelo/react-native-worklets-core 的全部 Issue
相似的 Issue
-
Jupyter kernel leaks two file descriptors per cell; after ~100 cells every cell fails with "pipe() failed"可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
Test discovery aborts on GPU builds without cuStateVec: check_cuStateVec expects a failed result but set_config() now raises RuntimeError可能已有人在做 @dmeliksetian 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 84/100
Qiskit/qiskit-aer#2495 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
sumatrapdfreader/sumatrapdf#6403 ·
-
难度 1/5 1 小时以内 新手友好度 88/100
Jumballaya/Journeyman-Engine#199 ·
维护者通常 1 天内回复
-
backend enhancement
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复