Is there a way to hide the StatusBar
only in certain components/when NavigationDrawer
is opened? Right now, it is hidden everywhere.
I have a component
export default class Comp1 extends Component {
...
render() {
return (
<StatusBar hidden = {true} />
...
)
}
}
Which I implement into another Component
export default class Comp2 extends Component {
...
render() {
return (
<Comp1 ... />
...
)
}
}
Which is mounted into react navigation
.
Doing it that way, the StatusBar
is hidden on all screens. Is there a way to hide the StatusBar
when something is clicked? Or do I have to implement it differently in the Component.