react-native-vision-camera: 🐛 V3 runAsync doesn't work
What’s happening?
On docs is described:
But I think it needs update, cause request frame
as first parameter and func (callback)
as second parameter.
The callback function is never called. I saw that code reach the func on runOnAsyncContext
function, but I think enter always on finally
cause I can’t see my log ok 2
.
Reproduceable Code
No response
Relevant log output
No response
Camera Device
No response
Device
iPhone 14 Pro
VisionCamera Version
3.0.0
Can you reproduce this issue in the VisionCamera Example app?
- I can reproduce the issue in the VisionCamera Example app.
Additional information
- I am using Expo
- I have enabled Frame Processors (react-native-worklets-core)
- I have read the Troubleshooting Guide
- I agree to follow this project’s Code of Conduct
- I searched for similar issues in this repository and found none.
About this issue
- Original URL
- State: closed
- Created 10 months ago
- Reactions: 3
- Comments: 37 (28 by maintainers)
Fixed in react-native-worklets-core 0.3.0 🎉🥳
@mrousavy yep you are totally right, i was very drunk that day sorry
found a pattern that doesn’t make sense for me,
example app works
my appdoesn't work
, tried different combination of libs and now i’m using same version that’s on example but it always end up withThis is not related to VisionCamera, but rather about Reanimated.
If you do not use Reanimated,
runAsync
works fine. If you do use Reanimated, you need to enableprocessNestedWorklets
in the Reanimated’s babel plugin. See https://github.com/software-mansion/react-native-reanimated/issues/5576 for more info