Closed ThasianX closed 2 years ago
Looks not right to me that you pass the color as a prop. Color should be a style, and used alongside with useAnimatedStyle
. could that be the problem?
Looks not right to me that you pass the color as a prop. Color should be a style, and used alongside with
useAnimatedStyle
. could that be the problem?
Oh that works perfectly. I thought animated style was only for Animated.View
usage. Learned something new today!
Description
Passing in color as an animated prop renders color as undefined to start. Once the derived value for color changes, then it renders the color properly
Snack or minimal code example
Workaround
Package versions