StatusBar not respecting device orientation (iOS)
See original GitHub issueI have my project set to portrait in app.json.
{
"expo": {
...
"sdkVersion": 22.0.0",
"orientation": "portrait",
When I rotate my iOS device, the screen does not go into landscape mode (good). However, the status bar DOES go into landscape mode (bad). The status bar moves with an animation to each side of the screen, depending on how I have my device rotated.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:15
- Comments:18 (2 by maintainers)
Top Results From Across the Web
[SDK 39] StatusBar not respecting device orientation (iOS)
Same problem for me: on ios, orientation is locked to portrait via app.json and ScreenOrientation.lockAsync(ScreenOrientation.OrientationLock.PORTRAIT_UP). UI ...
Read more >'statusBarOrientation' was deprecated in iOS 13.0 when ...
'statusBarOrientation' was deprecated in iOS 13.0: Use the interfaceOrientation property of the window scene instead. How can I go about getting ...
Read more >Device Orientation Bug | Apple Developer Forums
I just created a new Xcode project, and only selected portrait orientation, but when I rotate my iPhone, it shows the landscape view...
Read more >How to fix wrong status bar orientation in iOS - onmyway133
The issue was that the status bar always orients to device orientation despite I already locked my main ViewController to portrait.
Read more >iOS Player Settings - Unity - Manual
Property: Function: Orientation. Default Orientation This setting is shared between iOS and Android devices, The game's screen orientation. The options are:
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Same issue here. Is there any update?
Having the similar issue using the Expo iOS app - native status bar will rotate despite ScreenOrientation lock, though I assume it is intended to interact with native code. Differences in my case: I am locking to PORTRAIT, and the only times I have ever seen the status bar stay put is when I have locked my phone orientation manually.
I don’t know how to make a snack yet, but when I get to it I’ll see what happens.