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

Restore refresh spinner fix #30978

Closed
wants to merge 1 commit into from
Closed

Restore refresh spinner fix #30978

wants to merge 1 commit into from

Conversation

swrobel
Copy link
Contributor

@swrobel swrobel commented Feb 10, 2021

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

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 10, 2021
@analysis-bot
Copy link

analysis-bot commented Feb 10, 2021

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: 81c895f

@analysis-bot
Copy link

analysis-bot commented Feb 10, 2021

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,908,425 +2
android hermes armeabi-v7a 8,407,440 -4
android hermes x86 9,399,038 -8
android hermes x86_64 9,342,854 -18
android jsc arm64-v8a 10,642,333 +5
android jsc armeabi-v7a 10,124,448 -5
android jsc x86 10,694,449 -3
android jsc x86_64 11,278,525 +1

Base commit: b15f8a3

@swrobel
Copy link
Contributor Author

swrobel commented Feb 17, 2021

@yogevbd maybe you could weigh in since you removed this code?

@yogevbd
Copy link
Contributor

yogevbd commented Feb 18, 2021

@swrobel Looks good to me

@swrobel
Copy link
Contributor Author

swrobel commented Mar 4, 2021

@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?

@swrobel
Copy link
Contributor Author

swrobel commented Mar 4, 2021

@PeteTheHeat maybe you're the right person to have merge this, since you merged #28236

Copy link
Contributor

@PeteTheHeat PeteTheHeat left a 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?

React/Views/RefreshControl/RCTRefreshControl.m Outdated Show resolved Hide resolved
@janicduplessis
Copy link
Contributor

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.

@swrobel
Copy link
Contributor Author

swrobel commented Mar 8, 2021

@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.

@janicduplessis
Copy link
Contributor

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.

@swrobel
Copy link
Contributor Author

swrobel commented Mar 9, 2021

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 😞
Screen Shot 2021-03-08 at 7 17 12 PM

@janicduplessis
Copy link
Contributor

Ok, in that case can you reopen this PR, remove my fix from #31024 and update the comment?

@swrobel swrobel reopened this Mar 9, 2021
@swrobel
Copy link
Contributor Author

swrobel commented Mar 9, 2021

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

@janicduplessis
Copy link
Contributor

Can you remove the code from #31024? You might need to rebase this to see it as it was merged recently.

@swrobel
Copy link
Contributor Author

swrobel commented Mar 9, 2021

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...

@janicduplessis
Copy link
Contributor

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

@swrobel
Copy link
Contributor Author

swrobel commented Mar 9, 2021

@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...

@janicduplessis
Copy link
Contributor

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
@swrobel
Copy link
Contributor Author

swrobel commented Mar 10, 2021

@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?)

@janicduplessis
Copy link
Contributor

Yea probably want to cherry pick both. LGTM cc @PeteTheHeat

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a 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.

@facebook-github-bot
Copy link
Contributor

@PeteTheHeat merged this pull request in 0afba0e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iOS: Regression in refreshControl on RN 0.64
6 participants