@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.insets.top,
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' ? HOME_INDICATOR_PADDING.insets.bottom : 0;
19
+ Platform.OS === 'ios' ? initialWindowMetrics?.insets?.bottom : 0;
20
20
 
21
21
  export const NOTCH_AREA_HEIGHT = Platform.select({
22
- ios: initialWindowMetrics.insets.top,
22
+ ios: initialWindowMetrics?.insets?.top,
23
23
  android: isNotchedAndroid ? StatusBar.currentHeight : 0,
24
24
  default: 0,
25
25
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shoutem/ui",
3
- "version": "7.3.0-rc.0",
3
+ "version": "8.0.0-rc.0",
4
4
  "description": "Styleable set of components for React Native applications",
5
5
  "scripts": {
6
6
  "lint": "eslint .",