0.1.6 • Published 3 years ago

react-easy-infinite-scroll v0.1.6

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

react-easy-infinite-scroll npm npm License: MIT

All Contributors

A component to make all your infinite scrolling!

Install

  npm install --save react-easy-infinite-scroll

  or

  yarn add react-easy-infinite-scroll

  // in code ES6
  import ReactEasyInfiniteScroll from 'react-easy-infinite-scroll';

  // or commonjs
  var ReactEasyInfiniteScroll = require('react-easy-infinite-scroll');

Using

// payload: { skip: 0 }
const getData = (payload) => {
  // api call
};

<ReactEasyInfiniteScroll
  listLength={data.list.length}
  totalRecords={data.totalRecords}
  apiCallBack={getData}
/>;

props

nametypedescription
listLengthnumberpass length of current data list.
totalRecordsnumberpass total records to show
apiCallBackfunctionapi call back function, you will get skip value as object
loader (optinal)nodeyou can change the loader by this property, by default we have set the loader
loaderColor (optinal)stringdefault loader color can be change by this property

Contributors ✨

LICENSE

MIT

0.1.6

3 years ago

0.1.4

3 years ago

0.1.5

3 years ago

0.1.2

3 years ago

0.1.3

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago