Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
animateWidth() {
Animated.sequence([
Animated.delay(3000),
Animated.timing(this.state.width, {
toValue: 400,
duration: 2000
})
]).start(() => {
// Logic whenever an iteration finishes...
this.animateWidth()
});
}
componentDidMount() {
this.animateWidth();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.