react-native-bidirectional-infinite-scroll icon indicating copy to clipboard operation
react-native-bidirectional-infinite-scroll copied to clipboard

Scroll position is not maintained when using sticky header

Open doolb14 opened this issue 4 years ago • 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 avatar May 26 '21 08:05 doolb14

@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 avatar Jun 02 '21 06:06 vishalnarkhede

Let me take a look this week!!

vishalnarkhede avatar Jun 02 '21 06:06 vishalnarkhede

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

TMaszko avatar Aug 13 '21 12:08 TMaszko