0.0.4 • Published 7 years ago

react-infinite-scroll-nfs v0.0.4

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

#React Infinite Scroll React component for infinite scroll container.

##Getting started ####Install npm install react-infinite-scroll

####Usage

  import InfiniteScroll  from 'react-infinite-scroll';
 <div> // <-- Parent panel that have specific height (can be px, %).
    <InfiniteScroll
      onLoad={this.onLoad}
      isFetching={true}
    >
      .... // <-- This is the "stuffs" you want to load by infinite scroll
    </InfiniteScroll>
 </div>

##Configuration Props

  • Function onLoad : Function that will be called when the scroll is at the position related to offsetHeight

  • Boolean isFetching : Set true/false to show/hide LoaderComponent.

  • React ComponentloaderComponent : Component loader that will be shown related to isFetching props.

  • String styleScrollBarClass : CSS class name for scroll bar style.

  • Number offsetHeight | (default) 50 : Offset height from bottom to specific when the onLoad function will be activated.

##License MIT.

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago