This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
Sphere/app/components/navigation/NavigationBar.js

15 lines
319 B
JavaScript
Raw Permalink Normal View History

2016-05-07 20:32:37 +01:00
import { Navigator } from 'react-native';
import _ from 'underscore';
export default class NavigationBar extends Navigator.NavigationBar {
render () {
const routes = this.props.navState.routeStack;
if (routes.length && _.last(routes).hideNavbar) {
return null;
}
return super.render();
}
}