fix(ios): clipsToBounds of undefined

This commit is contained in:
Nathan Walker
2023-03-17 08:53:49 -07:00
parent 46716c5e96
commit 0c9b458c1c

View File

@@ -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();
}