javascript - Hide StatusBar in React Native when Drawer is opened -


is there way hide statusbar in components/when navigationdrawer opened? right now, hidden everywhere.

i have component

export default class comp1 extends component {     ...     render() {         return (                 <statusbar hidden = {true} />             ...         )     } } 

which implement component

export default class comp2 extends component {     ...     render() {         return (                 <comp1 ... />             ...         )     } } 

which mounted react navigation.

doing way, statusbar hidden on screens. there way hide statusbar when clicked? or have implement differently in component.

the way such thing pass prop components above it.

if in comp2 pass prop comp1 instance hiddenbool. can set value whatever want true/false in comp2. when prop reaches comp1 , tries render status bar pass prop rather passing true.

same onclick function, make onclick set prop false/true , update component .


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -