1.0.5 • Published 5 years ago

react-scroll-edge-detector v1.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

React Scroll Edge Detector

Demo

Codesandbox DEMO

Props

PropDefaultTypeDescription
onBottomReached-functionthe function triggered when the bottom of the component has reached the bottom of the page
blockCbundefinedbooleanthe condition when the onBottomReached is blocked
debounce500numberdebounce parameter in ms
throttle200numberthrottle parameter in ms
offset10numberoffset in px
stylesundefinedobjectextra styling
initialCheckundefinedbooleanonBottomReached is called multiple times to fill in the whole height of the page (the onBottomReached must return a promise)

Example

import BottomEdgeDetector from 'react-scroll-edge-detector';

<BottomEdgeDetector
    onBottomReached={this.handleLoadMore}
    blockCb={this.loading}
    debounce={500}
    throttle={200}
    offset={10}
>
    <SomeOtherComponent/>
</BottomEdgeDetector>
1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.3-next.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago