react-native-refresh-control-view
v1.0.3
Published
Pull-To-Refresh Implementation of UIRefreshControl wrapped inside UIScrollView.
Downloads
2
Readme
react-native-refresh-control-view
Implementation of a UIRefreshControl wrapped inside UIScrollView in React Native based on Hiroyuki Yoshifuji's react-native-refresh-control.
Installation
npm install react-native-refresh-control-view
Usage
var { RefreshableListViewIOS } = require('react-native-refresh-control-view');
…
onRefresh() {
return new Promise((resolve,reject) => {
…
});
},
render() {
return(
<RefreshableListViewIOS
dataSource={this.state.dataSource}
onRefresh={this.onRefresh}
renderRow={this.renderRow}
/>
);
}