Scroll position is not maintained when using sticky header
doolb14 opened this issue · 3 comments
doolb14 commented
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
vishalnarkhede commented
@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
vishalnarkhede commented
Let me take a look this week!!