Hi guys!
react-native-interactable has a problem with react-native version 0.63
I'm getting this error if I try to use animatedValueY or animatedValueX


I found that if I send both animatedValueY and animatedValueX values this error doesn't happen, so this is a quick fix, but if I send only one of these values, the error happens.
Thank you!
I experienced the same as @dmitryusikriseapps. I was using only animatedValueX. When adding any value for animatedValueY I got rid of the exception, but my animation did not work properly until I added its own Animated.Value like this const deltaY = useRef(new Animated.Value(0)).current;
To summerize:
const deltaX = useRef(new Animated.Value(0)).current;
const deltaY = useRef(new Animated.Value(0)).current;
<Interactable.View
...
animatedValueX={deltaX}
animatedValueY={deltaY}
...
Thank you. Also fixed for me to add the missing animatedValueX to the existing animatedValueY.
Thank you so much. In my case, I just use animatedValueY, added animatedValueX and it resolve the issue.
Most helpful comment
I experienced the same as @dmitryusikriseapps. I was using only
animatedValueX. When adding any value foranimatedValueYI got rid of the exception, but my animation did not work properly until I added its ownAnimated.Valuelike thisconst deltaY = useRef(new Animated.Value(0)).current;To summerize: