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:
Igor Randjelovic
2022-03-06 19:35:57 +01:00
parent 79692ec0ce
commit e096cf2b76

View File

@ -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;
}