Skip to content

Instantly share code, notes, and snippets.

@khanghoang
Created April 1, 2015 16:04
Show Gist options
  • Save khanghoang/64296b6f987089fb2007 to your computer and use it in GitHub Desktop.
Save khanghoang/64296b6f987089fb2007 to your computer and use it in GitHub Desktop.
React Native - animation when new cell is visible (in the UIExplorer example)
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