This component is used inside a ScrollView or ListView to add pull to refresh functionality. When the ScrollView is at scrollY: 0, swiping down triggers an onRefresh event.
RefreshControl control component of react native is used with refreshControl={} prop of ListView; This component will allow us to add Swipe Down Pull to update JSON data functionality again. RefreshControl has its progress loading indicator, which automatically shows when the application swipes down its finger on the mobile phone screen. After releasing the finger, it will start offering a progress loading indicator, and in the back, start the web call again to parse JSON data into ListView.
|