[SDK 39] StatusBar not respecting device orientation (iOS)
See original GitHub issueAlthough I set the orientation to “portrait” in app.json, the statusbar still rotates in the Expo Client … same issue as this one on SDK 37: https://github.com/expo/expo/issues/933#issue-272031776
Adding:
ScreenOrientation.lockAsync(
ScreenOrientation.OrientationLock.PORTRAIT
)
in App.js didn’t change anything.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:20
- Comments:28 (2 by maintainers)
Top Results From Across the Web
'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 >Troubleshooting - Helpshift for iOS - Developer Guide
On iOS 8, Helpshift SDK's navigation bar covers status bar after a change of orientation. To fix this, implement following method in the ......
Read more >iOS Auto Layout tutorial programmatically - The.Swift.Dev.
If your application is going to support multiple device orientations, you should implement the following methods inside your view controller.
Read more >'statusbarframe' was deprecated in ios 13.0 - You.com
Status bar does not respect the orientation value, thus status bar height ... -4.0.0+4/ios/Classes/InAppWebView.swift:1248:39: warning: 'javaScriptEnabled' ...
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
Reproducible sample: minimal expo app with only expo-screen-orientation package added. Tested on: expo go client 2.19.6.1011482 (last at today) exposdk 41.0.0 iphone se (1st generation) ios 14.4.2
Problem is only on ios.
NOTE : I made a snack too with same code, and it’s working when I use it. BUT if I download snack project and test it, error comes back. What can be the reason? https://snack.expo.io/@xavax/orientation-bug-on-ios
https://user-images.githubusercontent.com/4051022/122367112-701fb880-cf5c-11eb-92b3-e8ed1ce5348a.mp4
It is still the same with SDK40