aboutsummaryrefslogtreecommitdiff
path: root/src/utils/statusBarHeight.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/statusBarHeight.ts')
-rw-r--r--src/utils/statusBarHeight.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/statusBarHeight.ts b/src/utils/statusBarHeight.ts
index 4c68f9ee..dd4a67ac 100644
--- a/src/utils/statusBarHeight.ts
+++ b/src/utils/statusBarHeight.ts
@@ -1,4 +1,6 @@
+import {useHeaderHeight} from '@react-navigation/stack';
import {Platform, StatusBar} from 'react-native';
+import {AVATAR_DIM} from '../constants';
import {SCREEN_WIDTH, SCREEN_HEIGHT} from './screenDimensions';
const X_WIDTH = 375;
@@ -17,3 +19,7 @@ export const StatusBarHeight = Platform.select({
android: StatusBar.currentHeight,
default: 0,
});
+
+export const headerBarHeightWithImage = () => {
+ return Math.max(useHeaderHeight() + 14, AVATAR_DIM + StatusBarHeight + 14);
+};