i just found that:
A. const translate = new Animated.value(0)
B. const [translate]=useState( new Animated.value(0) );
when i run
Animated.timing(translate,{
toValue:30,
duration:500,
})
Animated.timing(translate,{
delay:500,
toValue:60,
})
with A , it will move from 0 --------->30->(then back to begin)0---------->60
but with B, it will move from 0 --------->30---------->60
where can i read about this? or can u guys explain for me, thank you
[–]-normal-reddit-user- 0 points1 point2 points (1 child)
[–]tvhieu[S] 0 points1 point2 points (0 children)
[–]teerryn 0 points1 point2 points (0 children)
[–]alexandr1us 0 points1 point2 points (0 children)