nativescript-vue / nativescript-vue-navigator

A simple router for NativeScript-Vue, built on top of $navigateTo to simplify routing from within components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Navigator loses Frame reference when displaying multiple Frames on IOS

Lehren opened this issue · comments

The navigator will break navigation on IOS when a new Frame instance is created somewhere. For instance when showing a modal that is structured like so:

<Frame>
    <Page>
        <Label> Hello </Label>
    </Page>
</Frame

And then closing the modal, all navigation stops, at least on IOS. My guess is due to the fact the navigator cannot find the 'default' Frame anymore, or it is using the frame of the closed and discarded modal. Resulting in errors.

The fix seems to be to set the id and ref of the modal Frame to something other than 'default'. Might be useful to put into the docs or something. Or for any future visitors :)

Tracked at #27