react-scrolla

0.3.1 • Public • Published

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

Dependencies (2)

Dev Dependencies (30)

Package Sidebar

Install

npm i react-scrolla

Weekly Downloads

1

Version

0.3.1

License

MIT

Unpacked Size

8.88 kB

Total Files

6

Last publish

Collaborators

  • chentsulin