What am I missing with "useAnimatedProps"? #2027
Unanswered
enzomanuelmangano
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
-
Hello guys.
I'm trying to animate the trackColor property of the Switch component from the react-native package.
The purpose is to animate the trackColor by using interpolateColor function from reanimated. Since trackColor isn't a style property I need to use "useAnimatedProps" hook.
Actually I am already animating the backgroundColor of the Animated.View with interpolateColor and I'm almost sure that it is working properly.
Code
Here I provided all the code needed to replicate my issue.
Current Behavior
Expected Behavior
Package Versions
Beta Was this translation helpful? Give feedback.
All reactions