onNextEnd
onNextEnd
will pass the new current item-object
and current page-index
:
(currentItem, pageIndex) => {/*...*/}
- The
item-object
has the shape of:
{item: {/* your item */},index: // the item's index number}