Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-malik committed Jul 18, 2019
1 parent d26f517 commit 67ae90e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Source/Private/ASDisplayNode+UIViewBridge.mm
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,7 @@ - (void)setBackgroundColor:(UIColor *)newBackgroundColor
_layer.backgroundColor = newBackgroundCGColor;
} else {
_view.backgroundColor = newBackgroundColor;
_layer.backgroundColor = _view.backgroundColor.CGColor;
}

if (!CGColorEqualToColor(oldBackgroundCGColor, newBackgroundCGColor)) {
Expand Down
1 change: 1 addition & 0 deletions Source/Private/_ASPendingState.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1096,6 +1096,7 @@ - (void)applyToView:(UIView *)view withSpecialPropertiesHandling:(BOOL)specialPr

if (flags.setBackgroundColor) {
view.backgroundColor = [UIColor colorWithCGColor:backgroundColor];
layer.backgroundColor = backgroundColor;
}

if (flags.setTintColor)
Expand Down

0 comments on commit 67ae90e

Please sign in to comment.