React Infinite Scroll Component
$ npm install react-scrolla
var ReactScrolla = require('react-scrolla');
<ReactScrolla
percentage={85}
onPercentage={this.handleScrollToPercentage}
>
{items}
</ReactScrolla>
//=>
Type: number
Default: 90
Which percentage when scroll over will trigger onPercentage
.
Type: function
How to fetch more items.
Type: boolean
Default: false
onPercentage
will not be triggered when isLoading
is true.
MIT © C.T. Lin