RefreshControl with ListView
onRefresh function Example
here we are updating the array and after that we will update the dataSource. we can use fetch to request something from server and use async/await.
refreshing: is the state of the spinner (true, false).
onRefresh: this function will invoke when refresh the ListView/ScrollView.
Refresh Control with ListView Full Example
is used inside a ScrollView or ListView to add pull to refresh functionality. at this example we will use it with ListView
This modified text is an extract of the original Stack Overflow Documentation created by following contributors
and released under CC BY-SA 3.0