question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

StatusBar not respecting device orientation (iOS)

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Reactions:15
  • Comments:18 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
ghivertcommented, Jan 31, 2019

Same issue here. Is there any update?

4reactions
stefsulzercommented, Mar 30, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found