react-native Refresh Control


Example

  _refreshControl(){
    return (
      <RefreshControl
        refreshing={this.state.refreshing}
        onRefresh={()=>this._refreshListView()} />
    )
  }

refreshing: is the state of the spinner (true, false).

onRefresh: this function will invoke when refresh the ListView/ScrollView.