Skip to content

Commit e802206

Browse files
author
Hristo Hristov
authored
nativeView not cleared in iOS (NativeScript#3912)
1 parent 7a1f1b2 commit e802206

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tns-core-modules/ui/core/view-base/view-base.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -715,9 +715,12 @@ export abstract class ViewBase extends Observable implements ViewBaseDefinition
715715

716716
this.disposeNativeView();
717717

718-
this.nativeView = null;
719-
this._androidView = null;
720-
this._iosView = null;
718+
if (isAndroid) {
719+
this.nativeView = null;
720+
this._androidView = null;
721+
}
722+
723+
// this._iosView = null;
721724

722725
this._context = null;
723726
traceNotifyEvent(this, "_onContextChanged");

0 commit comments

Comments
 (0)