Can a worklet read Reanimated v1 values? #2608
Unanswered
yolpsoftware
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a fairly large Reanimated v1 codebase. New features are built with Reanimated v2, but at the moment we cannot yet migrate everything.
To facilitate the interoperability, it would be great if Reanimated v2 worklets could use the
Animated.Value
values from v1. Something like aSharedValue
wrapper around aAnimated.Value
would be great:Here, we declare a v1
Animated.Value
and then use that value in auseAnimatedStyle
. The wrapper is necessary because Reanimated needs to know that this worklet has to run whenever the value of v1 changes.Is there a way to do that?
Beta Was this translation helpful? Give feedback.
All reactions