react-native-orientation-locker icon indicating copy to clipboard operation
react-native-orientation-locker copied to clipboard

StatusBar is not hidden when in landscape mode

Open MingHieu opened this issue 3 years ago • 4 comments

StatusBar is not hidden when in landscape mode on android but it's still work on ios.

MingHieu avatar Apr 04 '22 18:04 MingHieu

You can use this for android if (orientation === "LANDSCAPE") { StatusBar.setHidden(true, "none"); } else { StatusBar.setHidden(false, "none"); }

Pakile avatar Apr 05 '22 13:04 Pakile

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 :(

MingHieu avatar Apr 06 '22 12:04 MingHieu

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?

ghost avatar Aug 05 '22 03:08 ghost

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?

ahsanreal4 avatar Jan 09 '24 19:01 ahsanreal4