You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[iOS] _tearDownUI not called with Modal Page #7744
Describe the bug
When you do showModal with a View and not a Frame the _tearDownUI is not called.
This is pretty bad because all JS references are released, so native object dealloced but disposeNativeView is not called.
For example nativescript-material-button will crash because it has an Observer for key/value which has not been removed before the view was deallocated.
To Reproduce
run a showModal with any View. Close the modal view. _tearDownUI is not called
Expected behavior _tearDownUI is called like it does when using a Frame
Activity
farfromrefug commentedon Aug 28, 2019
BTW it works with a
FramebecauseviewWillDisappearcalls_tearDownUIin theFrameclass.farfromrefug commentedon Oct 21, 2019
@NickIliev Any news on this? This a big memory leak in a sense. People use modals quite often.
CatchABus commentedon Apr 2, 2026
Closed by #9801