GetStream/react-native-bidirectional-infinite-scroll

Scroll position is not maintained when using sticky header

doolb14 opened this issue · 3 comments

I have a list that is sectioned by date. When new items are appended at the second position because the topmost list element is a date which is the sticky header, the scroll position is not maintained. But when I remove the sticky header property it maintains list position as expected

@doolb14 I think if I just allow modification of minIndexForVisible via prop, that should solve the issue.
https://github.com/GetStream/react-native-bidirectional-infinite-scroll/blob/main/src/BidirectionalFlatList.tsx#L243

Let me take a look this week!!

@doolb14 Could you share your example with the minimal reproduction repo :)?