1.2.0 • Published 8 years ago

react-native-refreshablelist-ios v1.2.0

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

react-native-refreshablelist-ios

ListView with pulldown-to-refresh and pullup-to-loadmore for iOS React-Native component

npm.io

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