Created
April 1, 2015 16:04
-
-
Save khanghoang/64296b6f987089fb2007 to your computer and use it in GitHub Desktop.
React Native - animation when new cell is visible (in the UIExplorer example)
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
componentDidMount: function() { | |
console.info(this.props.rowData) | |
var rowIndex = parseInt(this.props.rowData.slice(-1)); | |
setTimeout(() => { | |
LayoutAnimation.configureNext(animations.layout.easeInEaseOut); | |
this.setState({y: 0}) | |
},1000 + 100*rowIndex); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment