RefreshControl
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.
Usage example
-class RefreshableList extends Component {
+import { ScrollView, RefreshControl } from 'react-native';
+
+class RefreshableList extends Component {
constructor(props) {
super(props);
this.state = {
diff --git a/docs/next/refreshcontrol/index.html b/docs/next/refreshcontrol/index.html
index 35994902531..1f7915e94eb 100644
--- a/docs/next/refreshcontrol/index.html
+++ b/docs/next/refreshcontrol/index.html
@@ -35,7 +35,9 @@
});
RefreshControl
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.
Usage example
-class RefreshableList extends Component {
+import { ScrollView, RefreshControl } from 'react-native';
+
+class RefreshableList extends Component {
constructor(props) {
super(props);
this.state = {