StatusBar is not hidden when in landscape mode
StatusBar is not hidden when in landscape mode on android but it's still work on ios.
You can use this for android
if (orientation === "LANDSCAPE") { StatusBar.setHidden(true, "none"); } else { StatusBar.setHidden(false, "none"); }
You can use this for android
if (orientation === "LANDSCAPE") { StatusBar.setHidden(true, "none"); } else { StatusBar.setHidden(false, "none"); }
When I change it to hidden, the phone will auto rotate to portrait :(
You can use this for android
if (orientation === "LANDSCAPE") { StatusBar.setHidden(true, "none"); } else { StatusBar.setHidden(false, "none"); }
And, for iOS, what would be the solution?
You can use this for android
if (orientation === "LANDSCAPE") { StatusBar.setHidden(true, "none"); } else { StatusBar.setHidden(false, "none"); }When I change it to hidden, the phone will auto rotate to portrait :(
Were you able to fix it?