UNPKG

@cqfw/react-native-pull-to-refresh

Version:

a pull to refresh component for react-native, same api on both android and ios.

16 lines (13 loc) 342 B
'use strict'; import React from 'react'; import {FlatList} from 'react-native'; import Pullable from '../local/Pullable'; export default class PullFlatList extends Pullable { getScrollable = () => { return ( <FlatList ref={(c) => this.scroll = c} {...this.props}/> ); } }