fix(ios): property mask on 'undefined' during view disposal (#10404)

This commit is contained in:
Dimitris-Rafail Katsampas
2023-10-14 04:58:35 +03:00
committed by GitHub
parent 8129916f98
commit 212d086676

View File

@@ -74,11 +74,14 @@ export class View extends ViewCommon implements ViewDefinition {
this._hasTransform = false; this._hasTransform = false;
this._hasPendingTransform = false; this._hasPendingTransform = false;
// Make sure shadows get removed // If native view extends UIView, perform a background cleanup to get rid of shadow layers
this.style.backgroundInternal.clearFlags |= BackgroundClearFlags.CLEAR_BOX_SHADOW; if (this.nativeViewProtected instanceof UIView) {
// Make sure shadows get removed
this.style.backgroundInternal.clearFlags |= BackgroundClearFlags.CLEAR_BOX_SHADOW;
// Perform background cleanup // Perform background cleanup
iosBackground.clearBackgroundVisualEffects(this); iosBackground.clearBackgroundVisualEffects(this);
}
} }
public requestLayout(): void { public requestLayout(): void {