Skip to content

Commit b8e60a3

Browse files
sherginfacebook-github-bot
authored andcommitted
reactSetInheritedBackgroundColor was removed from RCTView
Summary: Now setting explicit backgroundColor style is required for Views with background shadow, otherwise the shadow will be generated based on content of the view (which is expected behaviour). Reviewed By: mmmulani Differential Revision: D6582587 fbshipit-source-id: 0514cb3c57bad17d2af40810b0e0f7ddc96a2c31
1 parent c01a171 commit b8e60a3

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

React/Views/RCTView.m

-8
Original file line numberDiff line numberDiff line change
@@ -691,14 +691,6 @@ static BOOL RCTLayerHasShadow(CALayer *layer)
691691
return layer.shadowOpacity * CGColorGetAlpha(layer.shadowColor) > 0;
692692
}
693693

694-
- (void)reactSetInheritedBackgroundColor:(UIColor *)inheritedBackgroundColor
695-
{
696-
// Inherit background color if a shadow has been set, as an optimization
697-
if (RCTLayerHasShadow(self.layer)) {
698-
self.backgroundColor = inheritedBackgroundColor;
699-
}
700-
}
701-
702694
static void RCTUpdateShadowPathForView(RCTView *view)
703695
{
704696
if (RCTLayerHasShadow(view.layer)) {

0 commit comments

Comments
 (0)