From 9ed3c9b256e054b6ad482a16db9d6974e3b1435f Mon Sep 17 00:00:00 2001 From: Igor Randjelovic Date: Fri, 17 Mar 2023 16:27:30 +0100 Subject: [PATCH] fix(ios): guard against no nativeView in createBackgroundUIColor (#10229) --- packages/core/ui/styling/background.ios.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/core/ui/styling/background.ios.ts b/packages/core/ui/styling/background.ios.ts index c08121839..8aeba7e9c 100644 --- a/packages/core/ui/styling/background.ios.ts +++ b/packages/core/ui/styling/background.ios.ts @@ -33,6 +33,10 @@ export namespace ios { const background = view.style.backgroundInternal; const nativeView = view.nativeViewProtected; + if (!nativeView) { + return; + } + if (background.clearFlags & BackgroundClearFlags.CLEAR_BOX_SHADOW) { // clear box shadow if it has been removed! view.setProperty('clipToBounds', true);