-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Starting from 0.64.0 RefreshControl
causes an unwanted visual jump in the list content when the refreshing
prop goes from true
to false
#31461
Comments
same issue |
I opened (and have now closed) a duplicate issue. I had added some notes there that may be worthwhile to pin to this issue. My notes are in that issue #31563. |
@dandre-hound were you able to fix it? I'm also experiencing the same issue. |
Nope -- today I was going to look at any RefreshControl-related files and their diffs between 0.63.4 and 0.64.1 to see what changed. Maybe something will stand out. Edit: nothing immediately stands out in the 0.63.4...0.64.1 diff. I searched the diff for any direct references to refresh control but there is none. Nor are there changes to any of the list view implementations, minus a few seemingly unrelated changes to the Android scrollview implementation. We're not seeing this issue on Android anyway so I ignored these changes. Unsure where to go from here. It may be helpful to follow the logic for when the |
Can confirm we're facing this issue after upgrading RN to 0.64. |
Has anyone had any luck with this issue on RN 0.65.x? |
@dandre-hound I have not upgraded and tested it yet - have you tried? |
@krismeld I built a new RN v0.65-rc.2 app with the same sample code attached above and observed the same behavior, despite the RC change log mentioning a lot of changes to the refresh control component. |
@dandre-hound An update: I am pretty sure I have found the PR where this behaviour was introduced, it happens here: I have rolled back the code changes made in that PR by hand in my test repo, and the issue is gone. So it looks like some of the changes introduced in that code has caused this issue to appear. |
Thanks @krismeld. I asked the developer who opened that PR whether it's safe to exclude this commit. I'm surprised more developers haven't brought this up. Lists are an important mobile component and this is such an awkward and obvious UI issue. I think we are just going to patch-package this and remove the changes from that PR like you suggested, assuming that PR doesn't fix any other critical pull to refresh issues. |
Thanks everyone for the discussion & investigation. It would be nice to find a fix that resolves both the large navigation use case and general usages here. cc @yogevbd |
I'm looking into it. |
@yogevbd friendly ping to see if there are any updates here? I see that this 1b0fb9bead was formally added to the v0.65 RC changelog. |
Would love to see this fixed 🙏🏾 |
@lunaleaps can i have a go at this? |
Yea for sure! No need to ask for permission -- I realize some issues I had created (as part of a project effort re: accessibility) I had wanted to coordinate to avoid folks to step on each other's toes -- but other issues in this repo, please grab as interested! Thanks so much for your help! |
Hello guys, We have a reproduction on empty RN template for this issue and video recordings in this issue: #34394 Steps to reproduce Snack, code example, screenshot, or link to a repository https://user-images.githubusercontent.com/14195600/184646719-8972aef1-a622-492e-8ce0-5a8f3deac763.mov |
Could someone from RN maintainers team take a look? Thanks in advance |
Hi Everyone, This issue still persists on 0.69.5. I am surprised the issue is still there even after more than a year. Does anyone have a patch for it, until it gets resolved in latest RC |
I've just upgrade to 0.70.5 and I am experiencing this issue. |
0.71.8 still have this issue |
Guys, just add |
just a quick update, aside from the workaround @LukaBabunadze offered, I was able to (STILL) repro the issue using @oleksandr-dziuban's comment -> #31461 (comment) |
For me it's still jumpy :'( |
Edit: Actually, it is not occuring 🤔 Ongoing in |
Description
Starting from
0.64.0
in iOS on a physical device: When using<RefreshControl>
inside<ScrollView>
or<FlatList>
, the content in the list has an unwanted visual jump down when therefreshing
prop goes fromtrue
tofalse
- this is not the case in0.63.4
.refresh-0.64.0.mov
React Native version:
Steps To Reproduce
Install a clean version of
0.64.0
and run the code from theRefreshControl
docs https://reactnative.dev/docs/refreshcontrol on a physical device. In the provided videos I have only changed the fake timeout from2000ms
->500ms
to show the jumping quicker and printed therefreshing
state.Expected Results
This is how it looks in
0.63.4
, where no jumping is happening:refresh-0.63.4.mov
Snack, code example, screenshot, or link to a repository:
The text was updated successfully, but these errors were encountered: