SwitchNavigator Header bar
closed
Sean Morton
It would be awesome to have SwitchNavigator support the same navigationOptions for the header bar as StackNavigator i.e. title, headerLeft, etc.
In my project I have been using StackNavigator like SwitchNavigator (always calling the reset navigation action), which is basically the SwitchNavigator behavior, but I am unable to migrate because I'm using the header features available in StackNavigator and don't want to manually implement a header bar if I use SwitchNavigator.
Brent Vatne
closed
Brent Vatne
yeah just put a stack navigator inside of switch to use the header. switch is meant to be barebones and not include such ui
Michael Ossareh
I have a similar setup which points my switch navigator at a stack navigator. A simple c&p from my project: https://gist.github.com/ossareh/5322b716e93d0a60fe2ea8dbde8d507c
Would that suffice?