Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When orientation is changed height of status bar is still showing old value. #13

Open
yestay90 opened this issue Mar 19, 2020 · 4 comments

Comments

@yestay90
Copy link

No description provided.

@ovr
Copy link
Owner

ovr commented Mar 19, 2020

Yes, it's right because it's expected to use a HoC to detect orientation change

I prepared a 3.x branch, see https://github.com/ovr/react-native-status-bar-height/tree/3.x

You can give it a try by using 3.0.0-alpha.1

@yestay90
Copy link
Author

have tried the alpha version, but still have the same problem

@cristianoccazinsp
Copy link

This is an issue carried from React Native's very own StatusBar component. StatusBar from RN does not update it's height on orientation changes, so devices like the Pixel 5 or even the 3 will report only the value from when the app was opened.

I was looking for an alternative to RN's StatusBar, but I guess I won't have luck with this one neither :(

@Only-IceSoul
Copy link

IOS: Only the size of the Status Bar is needed in landscape. getStatusbarHeight(landscape: Boolean )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants