0.1.22 • Published 1 year ago

react-infinite-horizontal-scroll v0.1.22

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Installation

Add to your projects

npm i react-infinite-horizontal-scroll
yarn add react-infinite-horizontal-scroll

Usage

For more examples, please refer to the examples

<ScrollerContainer itemWidth={200} itemHeight={200} howManyOnView={3}>
  {new Array(6).fill(0).map((_, index) => (
    <div key={index}>{index}</div>
  ))}
</ScrollerContainer>

Your array of components goes inside <ScrollerContainer>