Hi, in my app and example app (iOS), everytime I change device orientation (in fullscreen) to landscape and back to portrait again, iOS status bar gone after I toogle the fullscreen (not in fullscreen). Is it bug? or I missed something
Same issue here
I'll take a look
@davidohayon669 hi, any progress with this?
@archansel I could not reproduce what you explained. In the example app I always see the status bar trying every kind of sequence of full screen and rotation.
Can you be more specific?
@davidohayon669

Ah, yes. Probably some problem in React Native, not related to the package.
It happens when switching to fullscreen and THEN rotating. After rotation the status bar is gone.
My solution was to to listen to onLayout event and set the status bar as visible using StatusBar.setHidden(false);
It looks a bit like this:
...
static onChangeLayout() {
StatusBar.setHidden(false);
}
...
render() {
return (
<View onLayout={ this.onChangeLayout }>
<YouTube ... />
</View>
);
}
I'm seeing the same issue. Workaround by @simonvaucher seems to work ok..
+1
<YouTube
...
onChangeFullscreen={e => {
StatusBar.setHidden(false);
}}
/>
Most helpful comment