@applicaster/zapp-react-native-ui-components 14.0.32 → 14.0.33

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.
@@ -1,11 +1,11 @@
1
1
  import React from "react";
2
- import { StyleSheet } from "react-native";
3
- import { SafeAreaView } from "@applicaster/zapp-react-native-ui-components/Components/SafeAreaView";
4
-
2
+ import { StyleSheet, SafeAreaView as RNSafeAreaView } from "react-native";
3
+ import { SafeAreaView } from "react-native-safe-area-context";
5
4
  import { useIsRTL } from "@applicaster/zapp-react-native-utils/localizationUtils";
6
5
  import CloseButton from "./Buttons/CloseButton";
7
6
  import BackButton from "./Buttons/BackButton";
8
7
  import BarTitle from "./BarTitle";
8
+ import { platformSelect } from "@applicaster/zapp-react-native-utils/reactUtils";
9
9
 
10
10
  type Props = {
11
11
  screenStyles: {
@@ -24,6 +24,11 @@ const defaultState: NavBarState = {
24
24
  title: "",
25
25
  };
26
26
 
27
+ const SafeAreaViewPlatform = platformSelect({
28
+ ios: RNSafeAreaView,
29
+ android: SafeAreaView,
30
+ });
31
+
27
32
  const BarView = ({ screenStyles, barState = defaultState }: Props) => {
28
33
  const isRTL = useIsRTL();
29
34
 
@@ -45,7 +50,7 @@ const BarView = ({ screenStyles, barState = defaultState }: Props) => {
45
50
  );
46
51
 
47
52
  return (
48
- <SafeAreaView
53
+ <SafeAreaViewPlatform
49
54
  edges={["top", "left", "right"]}
50
55
  style={[style.view, isRTL ? style.rtlStyle : {}]}
51
56
  testID="BarView-safeAreaView"
@@ -53,7 +58,7 @@ const BarView = ({ screenStyles, barState = defaultState }: Props) => {
53
58
  {backButton}
54
59
  <BarTitle title={barState.title} screenStyles={screenStyles} />
55
60
  {closeButton}
56
- </SafeAreaView>
61
+ </SafeAreaViewPlatform>
57
62
  );
58
63
  };
59
64
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-ui-components",
3
- "version": "14.0.32",
3
+ "version": "14.0.33",
4
4
  "description": "Applicaster Zapp React Native ui components for the Quick Brick App",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -28,10 +28,10 @@
28
28
  },
29
29
  "homepage": "https://github.com/applicaster/quickbrick#readme",
30
30
  "dependencies": {
31
- "@applicaster/applicaster-types": "14.0.32",
32
- "@applicaster/zapp-react-native-bridge": "14.0.32",
33
- "@applicaster/zapp-react-native-redux": "14.0.32",
34
- "@applicaster/zapp-react-native-utils": "14.0.32",
31
+ "@applicaster/applicaster-types": "14.0.33",
32
+ "@applicaster/zapp-react-native-bridge": "14.0.33",
33
+ "@applicaster/zapp-react-native-redux": "14.0.33",
34
+ "@applicaster/zapp-react-native-utils": "14.0.33",
35
35
  "fast-json-stable-stringify": "^2.1.0",
36
36
  "promise": "^8.3.0",
37
37
  "url": "^0.11.0",