React Infinite Scroll Component
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
scripts
src
test
.babelrc
.editorconfig
.eslintignore
.eslintrc
.gitattributes
.gitignore
.travis.yml
CHANGELOG.md
LICENSE
README.md
index.js
package.json
yarn.lock

README.md

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