t4t5 / react-native-router

Awesome navigation for your React Native app.
MIT License
1.17k stars 155 forks source link

hideNavigationBar: can you pass this to the toRoute? #48

Open willsonJewlr opened 9 years ago

willsonJewlr commented 9 years ago

Ideally, I would like to start with hidden navbar -> shown -> then hidden again Is this even possible?

Passing it inside the toRoute does not seem to work.

this.props.toRoute({ component: require('../../Main'), hideNavigationBar: true, })

I'm pretty sure there is a way, there should be.

Or, is it possible to stop using react-native-router in the middle of the route and render a new component (page)?

pickhardt commented 9 years ago

I'm also looking for a way to hide the nav bar.

BigPun86 commented 9 years ago

Me too :(

darkrishabh commented 9 years ago

check my fork

darkrishabh commented 9 years ago

take a look at this fork .. you can hide the navigation bar with a simple prop. https://github.com/darkrishabh/react-native-router/ check the commits to know better. BTW, I would recommend you to fork it and then use it. I use it for my custom usage and it may change in future