forked from shoutem/ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconst.js
More file actions
30 lines (28 loc) · 771 Bytes
/
Copy pathconst.js
File metadata and controls
30 lines (28 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { Platform, StatusBar } from 'react-native';
import {
IPHONE_12_LONG_SIDE,
IPHONE_12_MAX_LONG_SIDE,
IPHONE_X_HOME_INDICATOR_PADDING,
IPHONE_X_LONG_SIDE,
IPHONE_X_NOTCH_PADDING,
IPHONE_XR_LONG_SIDE,
IPHONE_XR_NOTCH_PADDING,
NAVIGATION_BAR_HEIGHT,
NAVIGATION_HEADER_HEIGHT,
} from './helpers';
const STATUS_BAR_OFFSET =
Platform.OS === 'android' ? -StatusBar.currentHeight : 0;
// TODO: Deprecate and remove exports from here
// Currently leaving for backwards compatibility
export {
IPHONE_12_LONG_SIDE,
IPHONE_12_MAX_LONG_SIDE,
IPHONE_X_HOME_INDICATOR_PADDING,
IPHONE_X_LONG_SIDE,
IPHONE_X_NOTCH_PADDING,
IPHONE_XR_LONG_SIDE,
IPHONE_XR_NOTCH_PADDING,
NAVIGATION_BAR_HEIGHT,
NAVIGATION_HEADER_HEIGHT,
STATUS_BAR_OFFSET,
};