react-bottom-scroll-listener
Advanced tools
Comparing version 2.1.0 to 2.1.1
{ | ||
"name": "react-bottom-scroll-listener", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "A simple React component that lets you listen for when you have scrolled to the bottom.", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/karl-run/react-bottom-scroll-listener", |
@@ -27,3 +27,3 @@ # react-bottom-scroll-listener [](https://www.npmjs.com/package/react-bottom-scroll-listener) [](https://github.com/karl-run/react-bottom-scroll-listener) | ||
Pass the BottomScrollListener a function inside the JSX_tag, receive the `ref` in this function from the BottomScrollListener | ||
Pass the BottomScrollListener a function inside the JSX_tag, receive the `scrollRef` in this function from the BottomScrollListener | ||
and pass it to the component you want to listen for a scroll event on. | ||
@@ -33,4 +33,4 @@ | ||
<BottomScrollListener onBottom={callback}> | ||
{ref => ( | ||
<div ref={ref}> | ||
{scrollRef => ( | ||
<div ref={scrollRef}> | ||
Callback will be invoked when this container is scrolled to bottom. | ||
@@ -37,0 +37,0 @@ </div> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
102664
9
929