react-native-vision-camera: 🐛 V3 runAsync doesn't work

What’s happening?

On docs is described:

Screenshot 2023-09-11 alle 17 32 27

But I think it needs update, cause request frame as first parameter and func (callback) as second parameter.

Screenshot 2023-09-11 alle 17 33 10

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.

Screenshot 2023-09-11 alle 17 38 02

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

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Reactions: 3
  • Comments: 37 (28 by maintainers)

Most upvoted comments

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 app doesn't work, tried different combination of libs and now i’m using same version that’s on example but it always end up with

image

This 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 enable processNestedWorklets in the Reanimated’s babel plugin. See https://github.com/software-mansion/react-native-reanimated/issues/5576 for more info