Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

how to put delay between animations in Loop

$
0
0

Im using loop to run animation infinitely but i want to run animation with a delay each time. the delay inside the animation just runs in the first time and not for further animation running.

Code:

Animated.loop(            Animated.timing(this.state.spinValue, {                toValue: 1,                duration: 3000,                useNativeDriver: true,                delay: 2500            })        ).start()

what i want is to run animation, then wait 2500ms, then run again.

whats happening is animation first start takes 2500ms delay but further loop doesn't have that 2500ms delay


Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>