From 0c9b458c1c5a359654f38f89443842cdbc24af69 Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Fri, 17 Mar 2023 08:53:49 -0700 Subject: [PATCH] fix(ios): clipsToBounds of undefined --- packages/core/ui/core/view/index.ios.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/core/ui/core/view/index.ios.ts b/packages/core/ui/core/view/index.ios.ts index 31301f307..dd6c71fcf 100644 --- a/packages/core/ui/core/view/index.ios.ts +++ b/packages/core/ui/core/view/index.ios.ts @@ -888,6 +888,9 @@ export class View extends ViewCommon implements ViewDefinition { } _setNativeClipToBounds() { + if (!this.nativeViewProtected) { + return; + } const backgroundInternal = this.style.backgroundInternal; this.nativeViewProtected.clipsToBounds = (this.nativeViewProtected instanceof UIScrollView || backgroundInternal.hasBorderWidth() || backgroundInternal.hasBorderRadius()) && !backgroundInternal.hasBoxShadow(); }