4

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!

Charles Roth
  • 473
  • 4
  • 12

1 Answers1

28

Never mind...

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

does the trick

Charles Roth
  • 473
  • 4
  • 12
  • 2
    In my test, this does not work as of `"react-native-router-flux": "3.43.0"` unless I'm doing it wrong. That flag disabled the headers for all the sibling scenes as well. – Mike S. May 20 '18 at 13:51
  • I have tabs scene like this: ... . It seems this hideNavBar attribute won't working with tabs. Any thoughts? – brucelin Dec 09 '19 at 01:37