@shoutem/ui 7.3.0-rc.0 → 8.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,7 +8,7 @@ export const isNotchedAndroid =
|
|
|
8
8
|
Platform.OS === 'android' && DeviceInfo.hasNotch();
|
|
9
9
|
|
|
10
10
|
export const NAVIGATION_BAR_HEIGHT = Platform.select({
|
|
11
|
-
ios: NAVIGATION_HEADER_HEIGHT + initialWindowMetrics
|
|
11
|
+
ios: NAVIGATION_HEADER_HEIGHT + initialWindowMetrics?.insets?.top,
|
|
12
12
|
android: isNotchedAndroid
|
|
13
13
|
? NAVIGATION_HEADER_HEIGHT + StatusBar.currentHeight
|
|
14
14
|
: NAVIGATION_HEADER_HEIGHT,
|
|
@@ -16,10 +16,10 @@ export const NAVIGATION_BAR_HEIGHT = Platform.select({
|
|
|
16
16
|
});
|
|
17
17
|
|
|
18
18
|
export const HOME_INDICATOR_PADDING =
|
|
19
|
-
Platform.OS === 'ios' ?
|
|
19
|
+
Platform.OS === 'ios' ? initialWindowMetrics?.insets?.bottom : 0;
|
|
20
20
|
|
|
21
21
|
export const NOTCH_AREA_HEIGHT = Platform.select({
|
|
22
|
-
ios: initialWindowMetrics
|
|
22
|
+
ios: initialWindowMetrics?.insets?.top,
|
|
23
23
|
android: isNotchedAndroid ? StatusBar.currentHeight : 0,
|
|
24
24
|
default: 0,
|
|
25
25
|
});
|