From d9f93d30e09ceefea0ba61d4cad3b53d212ce14a Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Wed, 21 Sep 2022 04:16:43 -0700 Subject: [PATCH] Disable default clipping in Fabric's SafeAreaView implementation Summary: This behaviour diverges from the original SafeAreaView implementation and causes issues when you try to use SafeAreaView in non-root placements (not recommended) Changelog: [iOS][Internal] Reviewed By: sammy-SC Differential Revision: D39497303 fbshipit-source-id: 03bc288557f611bd4a8c16b3a6df8887e89ee9ec --- .../ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.mm | 1 - 1 file changed, 1 deletion(-) diff --git a/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.mm b/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.mm index d91e406ab37..75456e594dc 100644 --- a/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.mm +++ b/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.mm @@ -24,7 +24,6 @@ using namespace facebook::react; if (self = [super initWithFrame:frame]) { static auto const defaultProps = std::make_shared(); _props = defaultProps; - self.clipsToBounds = YES; } return self;