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);