-
Notifications
You must be signed in to change notification settings - Fork 424
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
Maintain scroll position when adding rows to the top of the list #44
Comments
Sadly, we do not have anchoring support for items added to top of the list as of now. Can you specify the use case? We are considering adding it soon though. Have you tried FlatList? Does it preserve scroll position? We do perform much faster but never tried scroll anchoring with FlatList. |
Flatlist's performance is horrible. The reason I switched to RecyclerListView is because of its impressive smooth performance. And sadly Flatlist doesn't support preserving the scroll positioning when adding items to the top of the list as well. Do you have an idea of a possible work around? I could invest sometime in trying to fix it and make a PR for it |
Yeah we'll be more than happy to accept PRs, however, this might not be as simple as a small bugfix. @surya-kanoria from out team is already thinking of solutions around this. Maybe you guys can collaborate. |
@surya-kanoria I've read most of the source code and I have an idea of how things work. Would love to help implement this. How do you suggest we contact each other? |
@abdallamohamed Let us connect on hangouts. Can you please share your gmail id and a suitable time to talk? |
@surya-kanoria feel free to mail me at ame@churchdesk.com anytime |
Any updates on this, @surya-kanoria ? |
Just checking if there's any news updates on this. @naqvitalha |
Any updates on this issue? |
1 year ago... |
2 years ago... |
Has anybody given this a shot yet |
Is it already implemented? I can give a real use case - a chat stream. A user can search for chat messages, then find something in the middle and jump into it, so the middle of chat stream will be rendered. Then a user can scroll back n forth, so a scroll position preserving must be implemented when insert messages in both directions when scroll Could someone give an update here? |
dang.. this is still not implemented? |
+1 is there any plan for it? |
I was exploring this library as an alternative to |
I've got this to work with some success:
where |
@paulxuca I have a similar issue where the scroll position resets itself when I change the local state and trigger a rerender.. Would this work in my situation you think? |
When I call
dataProvider.cloneWithRows()
and add more rows to the top of the list. The scroll position is lost. I tried investigating by reading the source code. I'd appreciate it if you could help with this!And thanks for the great library! Its performance is amazing.
The text was updated successfully, but these errors were encountered: