Skip to content

Commit

Permalink
fix(ios): guard against no nativeView in createBackgroundUIColor (#10229
Browse files Browse the repository at this point in the history
)
  • Loading branch information
rigor789 committed Mar 17, 2023
1 parent 0173769 commit 9ed3c9b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/ui/styling/background.ios.ts
Expand Up @@ -33,6 +33,10 @@ export namespace ios {
const background = view.style.backgroundInternal;
const nativeView = <NativeScriptUIView>view.nativeViewProtected;

if (!nativeView) {
return;
}

if (background.clearFlags & BackgroundClearFlags.CLEAR_BOX_SHADOW) {
// clear box shadow if it has been removed!
view.setProperty('clipToBounds', true);
Expand Down

0 comments on commit 9ed3c9b

Please sign in to comment.