diff --git a/packages/core/ui/core/view/index.ios.ts b/packages/core/ui/core/view/index.ios.ts index 3a3c2a224e..2c694d783e 100644 --- a/packages/core/ui/core/view/index.ios.ts +++ b/packages/core/ui/core/view/index.ios.ts @@ -524,6 +524,7 @@ export class View extends ViewCommon implements ViewDefinition { // Take a look at https://github.com/NativeScript/NativeScript/issues/2173 for more info and a sample project. this._raiseShownModallyEvent(); } + controller = null; } protected _hideNativeModalView(parent: View, whenClosedCallback: () => void) { diff --git a/packages/core/ui/frame/index.ios.ts b/packages/core/ui/frame/index.ios.ts index 1686f9e777..f18636e6dd 100644 --- a/packages/core/ui/frame/index.ios.ts +++ b/packages/core/ui/frame/index.ios.ts @@ -42,6 +42,8 @@ export class Frame extends FrameBase { this._removeFromFrameStack(); this.viewController = null; this._ios.controller = null; + this._animatedDelegate = null; + this._ios = null; super.disposeNativeView(); }