When trying to update a REA shared value from another workout thread, such as from react-native-worklets-core, you're getting errors, that you aren't allowed to read or update values:
Reading from `_value` directly is only possible on the UI runtime.
Steps to reproduce
Setup a new react native app
Install react-native-reanimated and react-native-worklets-core
Setup their babel plugins
In App.tsx create a new REA useSharedValue
Try to update that value from a workless-core "worklet" function, such as created by Worklets.createRunInContextFn or useWorklet
Description
When trying to update a REA shared value from another workout thread, such as from react-native-worklets-core, you're getting errors, that you aren't allowed to read or update values:
Steps to reproduce
react-native-reanimated
andreact-native-worklets-core
App.tsx
create a new REAuseSharedValue
"worklet"
function, such as created byWorklets.createRunInContextFn
oruseWorklet
Snack or a link to a repository
https://github.com/hannojg/REAandWorkletsInteropRepro
Reanimated version
3.6.2
React Native version
0.73.4
Platforms
iOS
JavaScript runtime
Hermes
Workflow
React Native
Architecture
Paper (Old Architecture)
Build type
Debug app & dev bundle
Device
iOS simulator
Device model
No response
Acknowledgements
Yes