Created
January 31, 2016 21:25
-
-
Save Jpoliachik/00b76d1338c700c05274 to your computer and use it in GitHub Desktop.
Layout Animation Example Spring
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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