1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.APPROX_STATUSBAR_HEIGHT = void 0;
|
7 |
|
8 | var _reactNative = require("react-native");
|
9 |
|
10 | var _NativeModules$Native, _NativeModules$Native2, _NativeModules$Native3, _NativeModules$Native4;
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | const estimatedStatusBarHeight = (_NativeModules$Native = (_NativeModules$Native2 = _reactNative.NativeModules.NativeUnimoduleProxy) === null || _NativeModules$Native2 === void 0 ? void 0 : (_NativeModules$Native3 = _NativeModules$Native2.modulesConstants) === null || _NativeModules$Native3 === void 0 ? void 0 : (_NativeModules$Native4 = _NativeModules$Native3.ExponentConstants) === null || _NativeModules$Native4 === void 0 ? void 0 : _NativeModules$Native4.statusBarHeight) !== null && _NativeModules$Native !== void 0 ? _NativeModules$Native : 0;
|
16 |
|
17 | const APPROX_STATUSBAR_HEIGHT = _reactNative.Platform.select({
|
18 | android: estimatedStatusBarHeight,
|
19 | ios: _reactNative.Platform.Version < 11 ? estimatedStatusBarHeight : 0
|
20 | });
|
21 |
|
22 | exports.APPROX_STATUSBAR_HEIGHT = APPROX_STATUSBAR_HEIGHT;
|
23 |
|
\ | No newline at end of file |