<ListView
dataSource={this.state.dataSource}
renderRow={this._renderRow}
renderFooter={this._renderFooter}
onEndReached={this._onEndReach}
onEndReachedThreshold={-50}
refreshControl={
<RefreshControl
refreshing={isRefreshing}
onRefresh={this._onRefresh}
colors={['rgb(217, 51, 58)']}
/>
}
/>
//onEndReachedThreshold快到底部onEndReachedThreshold像素的时候,调用_onEndReach。