You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi Marc, I'm currently working on developing a vision-camera-pose-detection project with MLKit. I initially wrote the native code for iOS, and it connected perfectly. However, I encountered a problem when attempting to draw the overlay for the skeleton based on the keypoints.
In general, I used useSharedValue from Reanimated V3 to pass a value.
when I use useSharedValue I receive an error message like this: Reading from '_value' directly is only possible on the UI runtime.
I have already wrapped my JS function into a worklet, but I still get an error.
If I pass the value into setState it works, but it doesn't behave as expected. there is a delay, as shown in this video. this is my friend who tested it
What's happening?
hi Marc, I'm currently working on developing a
vision-camera-pose-detectionproject with MLKit. I initially wrote the native code for iOS, and it connected perfectly. However, I encountered a problem when attempting to draw the overlay for the skeleton based on the keypoints.In general, I used
useSharedValuefrom Reanimated V3 to pass a value.when I use
useSharedValueI receive an error message like this:Reading from '_value' directly is only possible on the UI runtime.I have already wrapped my JS function into a worklet, but I still get an error.
If I pass the value into
setStateit works, but it doesn't behave as expected. there is a delay, as shown in this video. this is my friend who tested it6b4e8199-3251-4d37-ac53-9990b8cdc49a.mov
"react-native-vision-camera": "^3.0.0", "react-native-worklets-core": "^0.2.0", "react-native-reanimated": "^3.4.2"Reproduceable Code
PoseDetection.ts
Main Code:
Relevant log output
Error: Reading from `_value` directly is only possible on the UI runtime, js engine: hermesCamera Device
No response
Device
iPhone 11 ( 15.5 )
VisionCamera Version
3.0.0
Can you reproduce this issue in the VisionCamera Example app?
Additional information