Disable Header for specific Scene in react-native-router-flux

Charles Roth picture Charles Roth · Aug 25, 2016 · Viewed 7.5k times · Source

If you can't figure out my question by the title then I will give a small example:

So I have "landing page" where users either login or register, pending success, the user would then be re-routed to the "main" page of the app. On this main page though I would rather not have the default header that is used in react-native-router-flux and replace it with a more sleek react-native-scrollable-view for presentational purposes.

Is there a prop that I can set to false for this to be achieved or am I asking to much of react-native-router-flux?

Thanks!

Answer

Charles Roth picture Charles Roth · Aug 25, 2016

Never mind...

<Scene key="main" component={Main} hideNavBar={true} />

does the trick