GetStream / react-native-bidirectional-infinite-scroll

📜 React Native - Bidirectional Infinite Smooth Scroll
https://getstream.github.io/react-native-bidirectional-infinite-scroll/
MIT License
236 stars 27 forks source link

Scroll is not smooth if initial items quantity is small #15

Open reeq-dev opened 3 years ago

reeq-dev commented 3 years ago

https://user-images.githubusercontent.com/26365596/117164262-1fe60000-adcd-11eb-8c99-2eb75ef15eb4.mp4

Hi once again, so the second issue is: whenever you have a small initial list like 5-10 items with small height, e.g window height is 896, and the content is about to 800/700 and you try to call onStartReached function scroll position will jump on items append, and later on everything is fine. Also as soon as i increase initial quantity of items to 100 then issue is gone and everything works very smooth. So for my case i tried to increase initial items quantity and set initialScrollIndex with getItemsLayout props, but with such approach it becomes even much worse than it was before

IOS simulator - iPhone 11 - 14.4

"react-native": "0.64.0", "react-native-bidirectional-infinite-scroll": "^0.3.3", "@stream-io/flat-list-mvcp": "^0.10.1", "react": "17.0.1",