react-native-gifted-listview icon indicating copy to clipboard operation
react-native-gifted-listview copied to clipboard

help ~ refreshableWaitingView is not work?

Open ycb0318 opened this issue 7 years ago • 1 comments

_renderRefreshableWaitingView(refreshCallback) {
    if (Platform.OS == 'ios') {
        return (
            <View style={customStyles.refreshableView}>
                <Text style={customStyles.actionsLabel}>
                    ↓
                </Text>
            </View>
        );
    } else {
        return (
            <TouchableHighlight
                underlayColor='#c8c7cc'
                onPress={refreshCallback}
                style={customStyles.refreshableView}
            >
                <Text style={customStyles.actionsLabel}>
                    ↻
                </Text>
            </TouchableHighlight>
        );
    }
}



_renderRefreshableWillRefreshView() {
    return (
        <View style={customStyles.refreshableView}>
            <Text style={customStyles.actionsLabel}>
                ↻
            </Text>
        </View>
    );
}

render() {
    return (
        <View style={styles.container}>
            <GiftedListView
                rowView={this._renderRowView.bind(this)}
                onFetch={this._onFetch}
                firstLoader={true} // display a loader for the first fetching
                pagination={true} // enable infinite scrolling using touch to load more
                refreshable={true} // enable pull-to-refresh for iOS and touch-to-refresh for Android
                withSections={false} // enable sections
                customStyles={{
                    paginationView: {
                        backgroundColor: '#eee',
                    },
                }}

                refreshableTintColor="blue"
                enableEmptySections = {true}
                refreshableWillRefreshView={this._renderRefreshableWillRefreshView}
                refreshableWaitingView={this._renderRefreshableWaitingView}
            />
        </View>
    );
}

ycb0318 avatar Jul 03 '17 07:07 ycb0318

the lastest version did not contain the methods:refreshableWillRefreshView and refreshableWaitingView

Style-Tender avatar Aug 29 '17 07:08 Style-Tender