Skip to content

Commit cff347a

Browse files
authored
Update statusBarHeight calculation (#985)
1 parent 5d5e482 commit cff347a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/helpers/Constants.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ isTablet = Platform.isPad || (getAspectRatio() < 1.6 && Math.max(screenWidth, sc
2020

2121
function setStatusBarHeight() {
2222
const {StatusBarManager} = NativeModules;
23-
statusBarHeight = 0; // so there will be a value for any case
24-
statusBarHeight = isIOS ? 20 : StatusBarManager.HEIGHT;
25-
if (isIOS) {
26-
// override guesstimate height with the actual height from StatusBarManager
27-
StatusBarManager.getHeight((data: any) => (statusBarHeight = data.height));
28-
}
23+
statusBarHeight = StatusBarManager.HEIGHT || 0; // So there will be a value for any case
24+
// statusBarHeight = isIOS ? 20 : StatusBarManager.HEIGHT;
25+
// if (isIOS) {
26+
// // override guesstimate height with the actual height from StatusBarManager
27+
// StatusBarManager.getHeight((data: any) => (statusBarHeight = data.height));
28+
// }
2929
}
3030

3131
function getAspectRatio() {

0 commit comments

Comments
 (0)