fix: ensure we clear ios view in _tearDownUI (#9671)

This had side effects for example: https://github.com/NativeScript/NativeScript/issues/7469.
This commit is contained in:
farfromrefuge
2022-03-05 04:49:52 +01:00
committed by GitHub
parent 3ec8c42971
commit 6a60b83d49

View File

@ -958,12 +958,9 @@ export abstract class ViewBase extends Observable implements ViewBaseDefinition
this._suspendNativeUpdates(SuspendType.UISetup);
if (global.isAndroid) {
this.setNativeView(null);
this._androidView = null;
}
// this._iosView = null;
this.setNativeView(null);
this._androidView = null;
this._iosView = null;
this._context = null;
}