@applicaster/quick-brick-core 15.1.11 → 15.1.12

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.
@@ -21,6 +21,7 @@ import {
21
21
  import { useNotificationToastState } from "./useNotificationToastState";
22
22
  import { useNotificationHeight } from "./useNotificationHeight";
23
23
  import { resolveConfirmationToastStyle } from "./resolveConfirmationToastStyle";
24
+ import { isTV } from "@applicaster/zapp-react-native-utils/reactUtils";
24
25
 
25
26
  const DEFAULT_TOAST_BACKGROUND_COLOR = "#000";
26
27
  const DEFAULT_TOAST_MESSAGE_COLOR = "#fff";
@@ -45,7 +46,7 @@ const styles = StyleSheet.create({
45
46
 
46
47
  type NumberBoolean = 0 | 1;
47
48
 
48
- export const NotificationToastRenderer = ({ children }) => {
49
+ const NotificationToastRendererInternal = ({ children }) => {
49
50
  const { statusHeight, notificationHeight } = useNotificationHeight();
50
51
  const theme = useTheme<BaseThemePropertiesMobile>();
51
52
 
@@ -160,3 +161,15 @@ export const NotificationToastRenderer = ({ children }) => {
160
161
  </View>
161
162
  );
162
163
  };
164
+
165
+ export const NotificationToastRenderer = ({ children }) => {
166
+ if (isTV()) {
167
+ return <>{children}</>;
168
+ }
169
+
170
+ return (
171
+ <NotificationToastRendererInternal>
172
+ {children}
173
+ </NotificationToastRendererInternal>
174
+ );
175
+ };
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+
3
+ /**
4
+ * NotificationToastRenderer for TV platforms.
5
+ * Currently, it does not render anything except for the children passed to it.
6
+ */
7
+
8
+ export const NotificationToastRenderer = ({ children }) => {
9
+ return <>{children}</>;
10
+ };
@@ -6,6 +6,4 @@ export { CONFIRMATION_TOAST_SOURCE } from "./NotificationToastManager";
6
6
 
7
7
  export { NotificationToastRenderer } from "./NotificationToastRenderer";
8
8
 
9
- export { useNotificationHeight } from "./useNotificationHeight";
10
-
11
9
  export { resolveConfirmationToastStyle } from "./resolveConfirmationToastStyle";
@@ -2,6 +2,7 @@ import { useSafeAreaInsets } from "react-native-safe-area-context";
2
2
 
3
3
  import { platformSelect } from "@applicaster/zapp-react-native-utils/reactUtils";
4
4
 
5
+ /** Hook calculates the height of the notification area including the status bar and navigation bar, used only for mobile */
5
6
  export const useNotificationHeight = () => {
6
7
  const insets = useSafeAreaInsets();
7
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/quick-brick-core",
3
- "version": "15.1.11",
3
+ "version": "15.1.12",
4
4
  "description": "Core package for Applicaster's Quick Brick App",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -28,13 +28,13 @@
28
28
  },
29
29
  "homepage": "https://github.com/applicaster/quickbrick#readme",
30
30
  "dependencies": {
31
- "@applicaster/applicaster-types": "15.1.11",
32
- "@applicaster/quick-brick-core-plugins": "15.1.11",
33
- "@applicaster/zapp-pipes-v2-client": "15.1.11",
34
- "@applicaster/zapp-react-native-bridge": "15.1.11",
35
- "@applicaster/zapp-react-native-redux": "15.1.11",
36
- "@applicaster/zapp-react-native-ui-components": "15.1.11",
37
- "@applicaster/zapp-react-native-utils": "15.1.11",
31
+ "@applicaster/applicaster-types": "15.1.12",
32
+ "@applicaster/quick-brick-core-plugins": "15.1.12",
33
+ "@applicaster/zapp-pipes-v2-client": "15.1.12",
34
+ "@applicaster/zapp-react-native-bridge": "15.1.12",
35
+ "@applicaster/zapp-react-native-redux": "15.1.12",
36
+ "@applicaster/zapp-react-native-ui-components": "15.1.12",
37
+ "@applicaster/zapp-react-native-utils": "15.1.12",
38
38
  "atob": "^2.1.2",
39
39
  "axios": "^0.28.0",
40
40
  "btoa": "^1.2.1",