Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Layout Animation Example Spring
// Called when a top button is pressed, with index corresponding to button title.
onPress(index) {
LayoutAnimation.configureNext(LayoutAnimation.Presets.spring);
this.setState({index: index});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment