Skip to content

Commit

Permalink
Restore refresh spinner fix
Browse files Browse the repository at this point in the history
Fixes #30912
  • Loading branch information
swrobel committed Mar 9, 2021
1 parent 5ca832b commit ed2403a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions React/Views/RefreshControl/RCTRefreshControl.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ - (void)layoutSubviews
{
[super layoutSubviews];

// Fix for bug #7976
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.
if (_currentRefreshingState && _isInitialRender) {
Expand Down

0 comments on commit ed2403a

Please sign in to comment.