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
This commit is contained in:
Valentin Shergin 2017-12-18 11:41:30 -08:00 committed by Facebook Github Bot
parent c01a171ed8
commit b8e60a3ca3
1 changed files with 0 additions and 8 deletions

View File

@ -691,14 +691,6 @@ static BOOL RCTLayerHasShadow(CALayer *layer)
return layer.shadowOpacity * CGColorGetAlpha(layer.shadowColor) > 0;
}
- (void)reactSetInheritedBackgroundColor:(UIColor *)inheritedBackgroundColor
{
// Inherit background color if a shadow has been set, as an optimization
if (RCTLayerHasShadow(self.layer)) {
self.backgroundColor = inheritedBackgroundColor;
}
}
static void RCTUpdateShadowPathForView(RCTView *view)
{
if (RCTLayerHasShadow(view.layer)) {