-
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
Restore refresh spinner fix #30978
Restore refresh spinner fix #30978
Conversation
Base commit: 81c895f |
Base commit: b15f8a3 |
@yogevbd maybe you could weigh in since you removed this code? |
@swrobel Looks good to me |
@grabbou I really hate to be annoying here, but this seems like a pretty critical regression to fix before the 0.64 final release. Would you mind taking a look? |
@PeteTheHeat maybe you're the right person to have merge this, since you merged #28236 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm good merging this, but I'd like to understand why the bug resurfaced. It seems like comment was incorrect, updating to use the iOS10 refreshControl UIScrollView prop did not fix the issue?
Ok I checked the original issue and it seems to fix the same thing as #31024, not sure why I thought at the time the api change for refreshControl in scrollview would fix the issue :S. Can you check that the fix in #31024 resolve the problem and this patch is not needed anymore? I think it is a better fix and is less arcane than setting a random background color. |
@janicduplessis yes, that does seem to fix the issue and seems like a cleaner solution to me! Oddly, it doesn't seem to be in 0.64-rc.4, despite having been merged over a week before that was cut. |
It needs to be cherry-picked in the release branch, as it has been cut a while back before this commit. I'll get it done. |
Actually, @janicduplessis unfortunately I noticed that I'm seeing unexpected spinners again with your fix, whereas I wasn't with the old one. It's definitely less frequent than without your patch, but it still happens 😞 |
Ok, in that case can you reopen this PR, remove my fix from #31024 and update the comment? |
I think I got everything you requested |
Can you remove the code from #31024? You might need to rebase this to see it as it was merged recently. |
That should do it... |
I don't see it in the diff, it should be removing these lines: https://github.com/facebook/react-native/blob/master/React/Views/RefreshControl/RCTRefreshControl.m#L52-L62 |
@janicduplessis you want my PR to revert your PR's changes? I guess that wasn't clear to me if that's what you were asking for before... |
Yes, sorry for the confusion. My fix isn't needed anymore if we merge this so might as well remove it. |
Fixes facebook#30912 Reverts facebook#31024 which was not shown to fix the issue
@janicduplessis done! Not sure if react-native-community/releases#214 needs updating, but it seems @grabbou thinks yours should be cherry-picked and not mine (actually, I suppose both might need to be cherry-picked since my depends on yours being there so I can revert it?) |
Yea probably want to cherry pick both. LGTM cc @PeteTheHeat |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PeteTheHeat has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@PeteTheHeat merged this pull request in 0afba0e. |
Fixes #30912
Reverts #31024 which did not fix the issue
Summary
This fix was removed in #28236, however it caused bug #7976 to resurface, as reported in #30912
Test Plan
This code had been present for quite some time before being removed in #28236
Changelog
[Internal] [fixed] - regression with refresh control