When I try to open a modal while I'm already in another modal. I get an error saying:
ViewHierarchy: parent is already presenting view controller close the current modal page before showing another one!
Here is a playground sample, How can I have one modal within another?
To Reproduce
- Click on Button (A modal should pop up)
- Click on Button (Nothing will happen and you will get an error)
Expected behavior
You should see a new popup open.
My Env
$ tns info
✔ Getting NativeScript components versions information...
✔ Component nativescript has 6.5.0 version and is up to date.
✔ Component tns-core-modules has 6.5.0 version and is up to date.
✔ Component tns-android has 6.5.0 version and is up to date.
✔ Component tns-ios has 6.5.0 version and is up to date.