We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d596c13 commit 11586b6Copy full SHA for 11586b6
src/helpers/Constants.js
@@ -19,14 +19,16 @@ export function getAndroidVersion() {
19
20
/* Navigation */
21
const {StatusBarManager} = NativeModules;
22
-export let statusBarHeight = setStatusBarHeight();
+export const statusBarHeight = setStatusBarHeight();
23
24
function setStatusBarHeight() {
25
- statusBarHeight = isIOS ? 20 : StatusBarManager.HEIGHT;
+ let height = 0;
26
+ height = isIOS ? 20 : StatusBarManager.HEIGHT;
27
if (isIOS) {
28
// override guesstimate height with the actual height from StatusBarManager
- StatusBarManager.getHeight(data => (statusBarHeight = data.height));
29
+ StatusBarManager.getHeight(data => (height = data.height));
30
}
31
+ return height;
32
33
34
/* Layout */
0 commit comments