scrollmasonryreact-virtualized

react-virtualized Masonry: how to scroll to index programmatically?


I've tried <Masonry ... scrollToIndex={myIndex} /> and <Masonry ... scrollTop={myIndex}, with no success.

Is there a public method, or some other prop I should use?


Solution

  • Looks like Masonry doesn't support this. In my case, List turned out to be what I needed, based on this.