ListView with pulldown-to-refresh and pullup-to-loadmore for iOS React-Native component
npm install react-native-refreshablelist-ios --save
refer to the Example
loadDatathe function for refresh data.refreshHeaderHeightthe height for refreshing indicator of header.refreshHeaderComponentthe custom component for refreshing indicator of header.refreshHeaderStylethe custom style for refreshing indicator of header.loadmorethe function for load more data.refreshFooterHeightthe height for refreshing indicator of footer.refreshFooterComponentthe custom component for refreshing indicator of footer.refreshFooterStylethe custom style for refreshing indicator of footer.
loadData(resolve:Function, reject:Function) {
if (loadDataSuccess)
resolve(data);
}else {
reject(err);
}
}loadmore(resolve:Function, reject:Function) {
if (loadMoreSuccess)
resolve(additionalData);
}else {
reject(err);
}
}MIT
