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