when I use
100
ValueXY
Animated.ValueXY(100, 100);
Error: AnimatedValueXY must be initalized with an object of numbers or AnimatedValues.
Animated.ValueXY(..) expects an object of numbers or AnimatedValues like the error says. To use different values then 0 you need to give them as an object.
Animated.ValueXY({x:100, y: 100})
When you use Animated.ValueXY(0 ,0)
it might be taking 0 as a falsey
and using the default values like you initiated it like Animated.ValueXY()
. This is just a guess though. Maybe someone with more info can give it a better explanation.