Skip to content

1. Structure

Erik Poort edited this page May 3, 2018 · 1 revision

Structure

The idea behind this library is that there should be no structural limits.

Nesting

Any type of navigation, should be able to used inside any type of navigation. If for some weird reason you want to put a tabbar inside a drawer, and in the second tab of that tabbar, you want another drawer, that's possible. Granted, you would never do something like that, but the library is structured in a way this is possible.

Extending

The library comes with a number of navigation types out of the box. It currently has tab, drawer, stack, split and single view navigation. The single view in its turn can open a modal view, which can be any of these types as well. If for some reason this isn't enough, you can plug in your own navigation, without the need of forking the library. Another example would be if you'd like to use a custom tabbar or extend the one inside this library.

Saving state

The navigation is created to remember state. This means that reloading (Cmd-R or RR) will show the page you were on. In bigger projects hot reloading is not the most reliable tool and sometimes you forget about turning on hot reloading. This way you don't have to worry about it, just reload and stay where you were. If you do want to reset the flow, you can choose Reset Navigation from the developer menu or use Cmd-N / NN.

Clone this wiki locally