react-native-refreshablelist-ios
v1.2.0
Published
a pull down to refresh listview or pull up to load more for react native
Downloads
1
Readme
react-native-refreshablelist-ios
ListView with pulldown-to-refresh and pullup-to-loadmore for iOS React-Native component
Installation
npm install react-native-refreshablelist-ios --save
Usage
refer to the Example
Props
loadData
the function for refresh data.refreshHeaderHeight
the height for refreshing indicator of header.refreshHeaderComponent
the custom component for refreshing indicator of header.refreshHeaderStyle
the custom style for refreshing indicator of header.loadmore
the function for load more data.refreshFooterHeight
the height for refreshing indicator of footer.refreshFooterComponent
the custom component for refreshing indicator of footer.refreshFooterStyle
the custom style for refreshing indicator of footer.
loadData
loadData(resolve:Function, reject:Function) {
if (loadDataSuccess)
resolve(data);
}else {
reject(err);
}
}
loadmore
loadmore(resolve:Function, reject:Function) {
if (loadMoreSuccess)
resolve(additionalData);
}else {
reject(err);
}
}
License
MIT