Description
StatusBar.currentHeight provides an incorrect value for the height of the status bar on a Google Pixel 5a with Android 12. From basic testing, this does not seem to be an issue on other devices or on an older OS (Android 11)
Screenshot when using StatusBar.currentHeight as the top margin

Expected:

Version
0.66.0
Output of npx react-native info
example on Expo, this is occurring in multiple versions of react native, notably tested on 0.66.0 and 0.64.2
Steps to reproduce
- use
StatusBar.currentHeight
- compare calculated height on Google Pixel 5a (Android 12) to other Android devices - the height for Pixel 5a Android 12 does not match the full height as it appears on the device while other devices do still work
Snack, code example, screenshot, or link to a repository
https://snack.expo.dev/qXx7COUDg
Description
StatusBar.currentHeightprovides an incorrect value for the height of the status bar on a Google Pixel 5a with Android 12. From basic testing, this does not seem to be an issue on other devices or on an older OS (Android 11)Screenshot when using

StatusBar.currentHeightas the top marginExpected:

Version
0.66.0
Output of
npx react-native infoexample on Expo, this is occurring in multiple versions of react native, notably tested on
0.66.0and0.64.2Steps to reproduce
StatusBar.currentHeightSnack, code example, screenshot, or link to a repository
https://snack.expo.dev/qXx7COUDg