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

[Fix] RefreshControl Position Bug #9249

Closed
wants to merge 11 commits into from
7 changes: 5 additions & 2 deletions React/Views/RCTRefreshControl.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ - (void)layoutSubviews
{
[super layoutSubviews];

// Quick fix for iOS backgroundColor bug #7976 - To be removed on update
if (self.backgroundColor == nil) self.backgroundColor = [UIColor clearColor];
// Fix for bug #7976
// TODO: Remove when updating to use iOS 10 refreshControl UIScrollView prop.
if (self.backgroundColor == nil) {
self.backgroundColor = [UIColor clearColor];
}

// If the control is refreshing when mounted we need to call
// beginRefreshing in layoutSubview or it doesn't work.
Expand Down