Skip to content

Instantly share code, notes, and snippets.

@btodts
Last active March 26, 2019 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save btodts/eed51081a9c6de4ba890f5a8d25b0a81 to your computer and use it in GitHub Desktop.
Save btodts/eed51081a9c6de4ba890f5a8d25b0a81 to your computer and use it in GitHub Desktop.
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