All Projects → chentsulin → react-scrolla

chentsulin / react-scrolla

Licence: MIT license
React Infinite Scroll Component

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

react-scrolla

NPM version Build Status Test coverage Dependency Status

React Infinite Scroll Component

Install

$ npm install react-scrolla

Usage

var ReactScrolla = require('react-scrolla');

<ReactScrolla
  percentage={85}
  onPercentage={this.handleScrollToPercentage}
>
  {items}
</ReactScrolla>
//=>

API

props

percentage

Type: number Default: 90

Which percentage when scroll over will trigger onPercentage.

onPercentage

Type: function

How to fetch more items.

isLoading

Type: boolean Default: false

onPercentage will not be triggered when isLoading is true.

License

MIT © C.T. Lin

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].