Skip to content
3 changes: 3 additions & 0 deletions React/Views/RCTRefreshControl.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ - (void)layoutSubviews
{
[super layoutSubviews];

// Quick fix for iOS backgroundColor bug #7976 - To be removed on update
Copy link
Contributor

@janicduplessis janicduplessis Aug 31, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change this comment to look like
// Fix for bug #...
// TODO: Remove when updating to use iOS 10 refreshControl UIScrollView prop.

if (self.backgroundColor == nil) self.backgroundColor = [UIColor clearColor];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: put if content on new line with brackets.


// If the control is refreshing when mounted we need to call
// beginRefreshing in layoutSubview or it doesn't work.
if (_currentRefreshingState && _isInitialRender && _initialRefreshingState) {
Expand Down