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:
parent
c01a171ed8
commit
b8e60a3ca3
|
@ -691,14 +691,6 @@ static BOOL RCTLayerHasShadow(CALayer *layer)
|
||||||
return layer.shadowOpacity * CGColorGetAlpha(layer.shadowColor) > 0;
|
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)
|
static void RCTUpdateShadowPathForView(RCTView *view)
|
||||||
{
|
{
|
||||||
if (RCTLayerHasShadow(view.layer)) {
|
if (RCTLayerHasShadow(view.layer)) {
|
||||||
|
|
Loading…
Reference in New Issue