| Start |
|---|
| Refresh Control with ListView Full Example RefreshControl is used inside a ScrollView or ListView to add pull to refresh functionality. at this example we will use it with ListView |
Refresh Control refreshing: is the state of the spinner (true, false). onRefresh: this function will invoke when refresh the ListView/ScrollView. |
onRefresh function Example here we are updating the array and after that we will update the dataSource. we can use fetch (opens new window) to request something from server and use async/await. RemarksReferences: RefreshControl: https://facebook.github.io/react-native/docs/refreshcontrol.html (opens new window) ListView: https://facebook.github.io/react-native/docs/listview.html (opens new window) |
Read Article
https://develop.horje.com/learn/1434/reference