- CLI: 6.0.4-2019-08-14-054645-13751
- Cross-platform modules: a few
- iOS Runtime: 6.1.0-2019-08-28-095325-02
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
Describe the bug
When you do
showModalwith aViewand not aFramethe_tearDownUIis not called.This is pretty bad because all JS references are released, so native object dealloced but
disposeNativeViewis not called.For example
nativescript-material-buttonwill 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._tearDownUIis not calledExpected behavior
_tearDownUIis called like it does when using aFrame