1 | import { Platform } from "react-native";
|
2 |
|
3 | // @ts-ignore
|
4 | const expo = global.__expo;
|
5 |
|
6 | const DEFAULT_STATUSBAR_HEIGHT_EXPO = expo?.Constants
|
7 | ? expo.Constants.statusBarHeight
|
8 | : 0;
|
9 |
|
10 | export const APPROX_STATUSBAR_HEIGHT = Platform.select({
|
11 | android: DEFAULT_STATUSBAR_HEIGHT_EXPO,
|
12 | ios: Platform.Version < 11 ? DEFAULT_STATUSBAR_HEIGHT_EXPO : 0,
|
13 | });
|