diff --git a/packages/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm b/packages/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm index 5571b5350bff..e83d50a29ede 100644 --- a/packages/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +++ b/packages/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm @@ -21,6 +21,7 @@ #import #import #import +#import #import #import #import @@ -1009,6 +1010,13 @@ - (void)invalidateLayer } else { // Can't accurately calculate box shadow, so fall back to pixel-based shadow. layer.shadowPath = nil; + + RCTLogAdvice( + @"View #%ld of type %@ has a shadow set but cannot calculate " + "shadow efficiently. Consider setting a solid background color to " + "fix this, or apply the shadow to a more specific component.", + (long)self.tag, + [self class]); } } else { layer.shadowPath = nil;