React-Native: Getting an error when scrollToIndex using FlatList ref

Try this one adding onScrollToIndexFailed function

  onScrollToIndexFailed={info => {
    const wait = new Promise(resolve => setTimeout(resolve, 700));
    wait.then(() => {
      fListRef.current?.scrollToIndex({ index: info.index, animated: true/false });

You can checkout git repo as well ::

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top