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

Make Constants.statusBarHeight dynamic on phone orientation change #3257

Merged

Conversation

yovelovadia123
Copy link
Contributor

@yovelovadia123 yovelovadia123 commented Sep 12, 2024

Description

inside Constants.ts made statusBarHeight dynamic to mobile orientation changes
Instead of using StatusBarManager.HEIGHT, now setStatusBarHeight will use StatusBarManager.getHeight() method which provides the right height when called (HEIGHT is declared once when the app initialized)

When starting IOS application in landscape mode and then changing to portrait statusBarHeight value wont change and remain 0.

Changelog

Fix statusBarHeight value to by dynamic when changing orientation

@ethanshar ethanshar merged commit 6053a2d into master Sep 16, 2024
1 check passed
@ethanshar ethanshar deleted the make-status-bar-height-dynamic-on-phone-orientation-change branch September 16, 2024 06:37
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

Successfully merging this pull request may close these issues.

2 participants