mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
revert: "fix: ensure we clear ios view in _tearDownUI (#9671)"
This reverts commit 6a60b83d49.
We identified issues with this change that cause errors in `onUnloaded()` callbacks.
This commit is contained in:
@@ -958,9 +958,12 @@ export abstract class ViewBase extends Observable implements ViewBaseDefinition
|
||||
|
||||
this._suspendNativeUpdates(SuspendType.UISetup);
|
||||
|
||||
this.setNativeView(null);
|
||||
this._androidView = null;
|
||||
this._iosView = null;
|
||||
if (global.isAndroid) {
|
||||
this.setNativeView(null);
|
||||
this._androidView = null;
|
||||
}
|
||||
|
||||
// this._iosView = null;
|
||||
|
||||
this._context = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user