Skip to content

The navigation object hasn't been initialized yet. #1019

Discussion options

You must be logged in to vote

Ah, the problem here is that your <doc> cannot contain both a navigator and a screen. Your entry point url should point to a document that contains only the <doc><navigator.../></doc> structure. You then need to create a second document which contains the <doc><screen .../></doc> structure for the "home" page. The url for that second document goes into the single <nav-route> you have provided.

index.xml

<doc>
   <navigator id="root" type="stack">
      <nav-route id="home" href="/home.xml"></nav-route>
    </navigator>
</doc>

home.xml

<doc>
   <screen ... />
</doc>

There are some additional samples in the Guide section of our website that you might find useful, under the "Hyperview Navi…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@hgray-instawork
Comment options

Answer selected by killianarts
@killianarts
Comment options

@killianarts
Comment options

@hgray-instawork
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants