Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. <ListView
  2. dataSource={this.state.dataSource}
  3. renderSeparator={this.ListViewItemSeparator}
  4. renderRow={rowData => ( <Text> {rowData} </Text> )}
  5. ref="ListView_Reference"
  6. />
  7.  
  8. GoTo_top_function = () => {
  9. this.refs.ListView_Reference.scrollTo({ animated: true }, 0);
  10. };
  11.  
  12. GoTo_bottom_function = () => {
  13. this.refs.ListView_Reference.scrollToEnd({ animated: true });
  14. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement