mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
revert: "fix: ensure we clear ios view in _tearDownUI (#9671)"
This reverts commit 6a60b83d49a9daa3825f9ee340d61b55ba4b85ff. 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._suspendNativeUpdates(SuspendType.UISetup);
|
||||||
|
|
||||||
this.setNativeView(null);
|
if (global.isAndroid) {
|
||||||
this._androidView = null;
|
this.setNativeView(null);
|
||||||
this._iosView = null;
|
this._androidView = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
// this._iosView = null;
|
||||||
|
|
||||||
this._context = null;
|
this._context = null;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user