Skip to content

Instantly share code, notes, and snippets.

@Jpoliachik
Created January 31, 2016 21:25
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 Jpoliachik/00b76d1338c700c05274 to your computer and use it in GitHub Desktop.
Save Jpoliachik/00b76d1338c700c05274 to your computer and use it in GitHub Desktop.
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