Skip to content

A React Native ListView completely written in js, support refresh control and infinite scrolling

License

Notifications You must be signed in to change notification settings

toandk/react-native-infinite-listview

Repository files navigation

react-native-infinite-listview

A React Native ListView completely written in js, support refresh control and infinite scrolling

demo

Installation

$ npm install react-native-infinite-listview --save

Usage

import {InfiniteListView} from 'react-native-infinite-listview';

//...

render() {
  return (
    <InfiniteListView
      style={{ flex: 1 }}
      dataArray={this.state.listItems}
      renderRow={this.renderRow}
      onRefresh={this.onRefresh}
      isRefreshing={this.state.isRefreshing}
      canLoadMore={this.canLoadMoreContent}
      isLoadingMore={this.state.isLoadingMore}
      onLoadMore={this.onLoadMore}
    />
  );
}

See more in Sample project

License

MIT License. © ToanDK 2017

About

A React Native ListView completely written in js, support refresh control and infinite scrolling

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published