Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple navigators doesn't work #80

Open
butaminas opened this issue Mar 11, 2021 · 0 comments
Open

Multiple navigators doesn't work #80

butaminas opened this issue Mar 11, 2021 · 0 comments

Comments

@butaminas
Copy link

My stack:

✔ Component nativescript has 7.2.0
✔ Component @nativescript/core has 7.3.0
✔ Component @nativescript/ios has 7.2.0
✔ Component @nativescript/android has 7.0.1
 

First of all, I think the docs on how to use Multiple navigators are misleading.

Vue doesn't support multiple root elements and since we are using Nativescript-vue rather than Vue, there should be more info on how to properly use this.

my app.js looks like this:

import Root from './components/experimental/Root'

new Vue({
    render: h => h(Root),
    store
}).$start();

In the Root.vue I've tried wrapping navigators in Page Frame and many more tags but nothing seems to make both Navigators work.
I use 2 navigators like this:

<Navigator defaultRoute="/test1"/>
<Navigator id="second" defaultRoute="/test2"/>

But it would only show content from 1 Navigator.

Also, this.$navigator.paths always shows an empty object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant