Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scroll position is not maintained when using sticky header #18

Open
doolb14 opened this issue May 26, 2021 · 3 comments
Open

Scroll position is not maintained when using sticky header #18

doolb14 opened this issue May 26, 2021 · 3 comments

Comments

@doolb14
Copy link

doolb14 commented May 26, 2021

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
Copy link
Collaborator

@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
Copy link
Collaborator

Let me take a look this week!!

@TMaszko
Copy link

TMaszko commented Aug 13, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants