1 | var _NativeModules$Native, _NativeModules$Native2, _NativeModules$Native3, _NativeModules$Native4;
|
2 |
|
3 | import { NativeModules, Platform } from 'react-native';
|
4 |
|
5 |
|
6 |
|
7 | const estimatedStatusBarHeight = (_NativeModules$Native = (_NativeModules$Native2 = 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;
|
8 | export const APPROX_STATUSBAR_HEIGHT = Platform.select({
|
9 | android: estimatedStatusBarHeight,
|
10 | ios: Platform.Version < 11 ? estimatedStatusBarHeight : 0
|
11 | });
|
12 |
|
\ | No newline at end of file |