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
Is there a way to use useSharedValue to mimic the functionality of useState/setState? I am drawing on the camera image and need it to re-render each frame.
The text was updated successfully, but these errors were encountered:
My goal is to utilize useSharedValue to mimic the functionality of use/setState within Vision Camera v3 frame processors.
With reanimated I would have this code which uses runOnJS to set the state variable which causes my component to re-render on each Camera frame.
I have tried using shared values like this, but it does not act in the same way as setState by re-rendering component when poses is updated.
I have also tried the setState within the createRunInJSFn which causes to camera to keep reinitializing each time.
Is there a way to use useSharedValue to mimic the functionality of useState/setState? I am drawing on the camera image and need it to re-render each frame.
The text was updated successfully, but these errors were encountered: