Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ListView
- dataSource={this.state.dataSource}
- renderSeparator={this.ListViewItemSeparator}
- renderRow={rowData => ( <Text> {rowData} </Text> )}
- ref="ListView_Reference"
- />
- GoTo_top_function = () => {
- this.refs.ListView_Reference.scrollTo({ animated: true }, 0);
- };
- GoTo_bottom_function = () => {
- this.refs.ListView_Reference.scrollToEnd({ animated: true });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement