You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.
On android devices, StatusBar.currentHeight returns the value of the status bar height for the orientation that the app was opened.
For devices like the Pixel 3 XL, it has two different status bar heights depending on orientation. The portrait uses a notch, so it's taller than the landscape counterpart.
When you launch the app on landscape, StatusBar.currentHeight returns 28. Launching it on portrait returns 40 something. Since these values are static, rotating the device results in the wrong status bar height for that orientation.
On android devices,
StatusBar.currentHeight
returns the value of the status bar height for the orientation that the app was opened.For devices like the Pixel 3 XL, it has two different status bar heights depending on orientation. The portrait uses a notch, so it's taller than the landscape counterpart.
When you launch the app on landscape,
StatusBar.currentHeight
returns 28. Launching it on portrait returns 40 something. Since these values are static, rotating the device results in the wrong status bar height for that orientation.referencing facebook/react-native#24603
The text was updated successfully, but these errors were encountered: