Skip to content

Restore refresh spinner fix - #30978

Closed
swrobel wants to merge 1 commit into
react:masterfrom
swrobel:patch-1
Closed

Restore refresh spinner fix#30978
swrobel wants to merge 1 commit into
react:masterfrom
swrobel:patch-1

Conversation

@swrobel

@swrobelswrobel commented Feb 10, 2021

Copy link
Copy Markdown
Contributor

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

analysis-bot commented Feb 10, 2021

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
ios-universaln/a--

Base commit: 81c895f

@analysis-bot

analysis-bot commented Feb 10, 2021

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
androidhermesarm64-v8a8,908,425+2
androidhermesarmeabi-v7a8,407,440-4
androidhermesx869,399,038-8
androidhermesx86_649,342,854-18
androidjscarm64-v8a10,642,333+5
androidjscarmeabi-v7a10,124,448-5
androidjscx8610,694,449-3
androidjscx86_6411,278,525+1

Base commit: b15f8a3

@swrobel

Copy link
Copy Markdown
ContributorAuthor

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

@yogevbd

yogevbd commented Feb 18, 2021

Copy link
Copy Markdown
Contributor

@swrobel Looks good to me

@swrobel

Copy link
Copy Markdown
ContributorAuthor

@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
Copy Markdown
ContributorAuthor

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

@PeteTheHeatPeteTheHeat left a comment

Copy link
Copy Markdown
Contributor

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?

Comment threadReact/Views/RefreshControl/RCTRefreshControl.m Outdated
@janicduplessis

Copy link
Copy Markdown
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
Copy Markdown
ContributorAuthor

@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
Copy Markdown
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

swrobel commented Mar 9, 2021

Copy link
Copy Markdown
ContributorAuthor

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
Copy Markdown
Contributor

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

@swrobelswrobel reopened this Mar 9, 2021
@swrobel

Copy link
Copy Markdown
ContributorAuthor

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
Copy Markdown
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
Copy Markdown
ContributorAuthor

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
Copy Markdown
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
Copy Markdown
ContributorAuthor

@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
Copy Markdown
Contributor

Yes, sorry for the confusion. My fix isn't needed anymore if we merge this so might as well remove it.

Fixesreact#30912
Reverts react#31024 which was not shown to fix the issue
@swrobel

Copy link
Copy Markdown
ContributorAuthor

@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
Copy Markdown
Contributor

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

@facebook-github-botfacebook-github-bot left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

@PeteTheHeat merged this pull request in 0afba0e.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.MergedThis 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

@swrobel@analysis-bot@yogevbd@janicduplessis@facebook-github-bot@PeteTheHeat