Currently I'm handling "back" button without using navigation view and every view has its own custom titlebar defined in its own config. However, now I need to add more items on the view stack and wanted to use navigation view to handle it for me.

The issue is that every child view has different buttons on the right side of the titlebar (plus title and the default "back" button on the left).

How to modify navigation bar of the navigation view from its child view? I tried doing it in initialize function of the child view using this.up(), but it looks like child views are initialized before navigation view, so this.up() returns undefined. Is there a way to "reset" navigation view to its default state, so that my views won't have to know what kind of buttons were added by other views and what to remove?