Skip to content

Instantly share code, notes, and snippets.

@MicheleBertoli
Created November 28, 2015 08:13
Show Gist options
  • Save MicheleBertoli/e9d447e5dc1af0287fda to your computer and use it in GitHub Desktop.
Save MicheleBertoli/e9d447e5dc1af0287fda to your computer and use it in GitHub Desktop.
Scrolling to bottom a React Native ListView
const {contentLength, visibleLength} = this.refs.listView.scrollProperties;
if (contentLength > visibleLength) {
this.refs.listView.getScrollResponder().scrollTo(contentLength - visibleLength);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment