-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
[ListView] Rendering new rows while scrolling can cause the underlying ScrollView to scroll back up #3042
Comments
It also happens when I scroll very fast and it hasn't finished rendering the rows yet. |
That's a known problem. JS listview dynamically adds rows while fling animation is going on. Apparently there is a bug in android scrollview fling animation which doesn't take into account that the height of the scrollview may change while in the meantime. Because it's using hidden API on android there is no good way to workaround this problem. We're working on an alternative implementation that would use native list view instead and should address this problem |
Great, thanks for the update @kmagiera! |
@kmagiera can this issue also manifest in IOS ? |
@Sherlock92 - nope |
@kmagiera Since |
We're still experimenting with performance there. This should be done this week. Then we can switch |
👍 |
@brentvatne @kmagiera any updates on this |
@Turg0n RecyclerViewBackedScrollView landed a while ago and it's ready to be used. You can use |
|
Looks like |
@brentvatne Any update on the |
also interested on the fix - my app has several long |
+1 |
Seems like I get similar errors on Android (RN 0.28), stack trace:
not sure if it's a bug or if I'm doing something wrong? |
Closing due to 36ca1a0 |
Is the IndexOutOfBoundsException issue resolved as well ? I still experiencing it with RN 0.35 in Android. |
Still experiencing
|
Still experiencing IndexOutOfBoundsException with RN 0.40 on Android. |
Still experiencing this with
as recommended in the documentation, but apparently this is deprecated. |
Currently solution for my team is just to pass in the initialListSize to equal the listItems.length. Luckily our list is only around 50 items long with no graphics. |
What is the solution of this bug can any body please tell me about this |
See: https://www.youtube.com/watch?v=_8Wkf6SmuLQ for a demo
And: https://github.com/brentvatne/ListViewRenderScrollingError for an example.
It's sometimes hard to reproduce - scroll up a bit and then back down to the bottom, and if the timing is right then when you hit the bottom of the scroll view it will smooth scroll back up.
The text was updated successfully, but these errors were encountered: