React-native-orientation: landscape mode status bar display incorrect

Created on 5 Dec 2016  路  4Comments  路  Source: yamill/react-native-orientation

image
just use lockToLandscape function status bar display height but the battery doesn't show like follow pic
image

waiting-feedback

Most helpful comment

The fix I found was to put

[application setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];
[application setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone];

in AppDelegate.m in didFinishLaunchingWithOptions

All 4 comments

@testxin is this still happening? What RN Version are you using?

I'm seeing this as well, but only on some devices. Specifically iPhone 6s, 10.2

The fix I found was to put

[application setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];
[application setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone];

in AppDelegate.m in didFinishLaunchingWithOptions

This shouldn't happen with new version v2.0.0. If it persists please open a new issue. Also a workaround was provided above.

Was this page helpful?
0 / 5 - 0 ratings