react-native-refresh-control-view

Pull-To-Refresh Implementation of UIRefreshControl wrapped inside UIScrollView.

Usage no npm install needed!

<script type="module">
  import reactNativeRefreshControlView from 'https://cdn.skypack.dev/react-native-refresh-control-view';
</script>

README

react-native-refresh-control-view

NPM

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}
            />
        );
    }