-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
Those two props should be the same.
But even though I have always set hideNavBar={true}, I still encounter issue #258 which can avoid by set showNavigationBar={false} as a workaround if you don't need the nav bar.
I guess:
hideNavBaris a prop inreact-native-router-fluxshowNavigationBaris a prop inex-navigator
should we prioritize/merge them?
for example:
- priority of
hideNavBaris higher thanshowNavigationBarand overrides it. - setting in
Routeris higher thanRouteand overrides it. - a function in
ExRouter.jshandle those prop and returntrue/false
and we can always set prop showNavigationBar specifically in <ExNavigator> in ExRouter.js
below is a similar check like _renderNavigationBar() in ExRouter.js:
// Something like this
shoudHideNavBar(props) {
const route = this.props.router.nextRoute || this.props.router.currentRoute;
const hideNavBar = route.props.hideNavBar || this.props.router.props.hideNavBar || route.props.hideNavBar;
const showNavigationBar = ........
if (hideNavBar !== 'undefined') {
.......
}
return true/false;
}
what do you think?
Metadata
Metadata
Assignees
Labels
No labels