Using SharedValue.set() fails with 'Tried to synchronously call a non-worklet anonymous function on the UI thread.' when mixing with with*
helpers
#6613
Labels
Platform: iOS
This issue is specific to iOS
Repro provided
A reproduction with a snippet of code, snack or repo is provided
Description
I'm switching my code from using the old style
opacity.value = withDelay...
toopacity.set(withDelay...
but this fails.Instead it only works if i use the callback form
opacity.set(() => withDelay...
. Unclear if this is by design but it was definitely confusingSteps to reproduce
.set
with awithDelay
(style) helperSnack or a link to a repository
sorry
Reanimated version
3.16.0
React Native version
0.75.4
Platforms
iOS
JavaScript runtime
None
Workflow
None
Architecture
Paper (Old Architecture)
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: