fix(ios): memory leak after using 'showModal' passing any Page as parameter (#9939)

This commit is contained in:
Douglas Machado
2022-06-17 14:11:46 -03:00
committed by Nathan Walker
parent fc77c92e11
commit 4db4e4af27

View File

@ -365,6 +365,12 @@ export class Page extends PageBase {
return this.viewController.view; return this.viewController.view;
} }
disposeNativeView() {
this.viewController = null;
this._ios = null;
super.disposeNativeView();
}
// @ts-ignore // @ts-ignore
get ios(): UIViewController { get ios(): UIViewController {
return this._ios; return this._ios;