@applicaster/zapp-react-native-utils 13.0.0-alpha.1244047241 → 13.0.0-alpha.1290120403

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.
@@ -42,6 +42,14 @@ function getPlayerConfiguration({ platform }) {
42
42
  label_tooltip:
43
43
  "Enable if you want to have adaptive background gradient based on audio background image.",
44
44
  },
45
+ {
46
+ key: "audio_player_background_image_query",
47
+ label: "Audio Player Image Query",
48
+ initial_value: "",
49
+ type: "text_input",
50
+ label_tooltip:
51
+ "Set the query params which control the size of the image e.g width, height. This will help to optimize the loading time, when magic background is enabled.",
52
+ },
45
53
  {
46
54
  key: "audio_player_background_image_default_color",
47
55
  label: "Audio Player Background Image Default Color",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-utils",
3
- "version": "13.0.0-alpha.1244047241",
3
+ "version": "13.0.0-alpha.1290120403",
4
4
  "description": "Applicaster Zapp React Native utilities package",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "homepage": "https://github.com/applicaster/quickbrick#readme",
29
29
  "dependencies": {
30
- "@applicaster/applicaster-types": "13.0.0-alpha.1244047241",
30
+ "@applicaster/applicaster-types": "13.0.0-alpha.1290120403",
31
31
  "buffer": "^5.2.1",
32
32
  "camelize": "^1.0.0",
33
33
  "dayjs": "^1.11.10",
@@ -39,6 +39,14 @@ function getPlayerConfiguration({ platform }) {
39
39
  label_tooltip:
40
40
  "Disable if you don't want the content to have a right orientation",
41
41
  },
42
+ {
43
+ key: "audio_player_background_image_query",
44
+ label: "Audio Player Image Query",
45
+ initial_value: "",
46
+ type: "text_input",
47
+ label_tooltip:
48
+ "Set the query params which control the size of the image e.g width, height. This will help to optimize the loading time.",
49
+ },
42
50
  {
43
51
  key: "audio_player_background_image_default_color",
44
52
  label: "Audio Player Background Image Default Color",
@@ -1,23 +1,12 @@
1
1
  import { useGetNavBarTopBorderWidth } from "./useGetNavBarTopBorderWidth";
2
2
  import { useGetTabBarHeight } from "./useGetTabBarHeight";
3
- import { useNavigation } from "./useNavigation";
3
+ import { MenuTypes, useNavigationType } from "./useNavigationType";
4
4
 
5
5
  export const useGetBottomTabBarHeight = (): number => {
6
- const { activeRiver } = useNavigation();
7
-
8
- const navigations = activeRiver?.targetScreen
9
- ? (activeRiver.targetScreen as ZappRiver).navigations
10
- : (activeRiver as ZappRiver).navigations;
11
-
12
- const navigationMenu = navigations?.find(
13
- ({ category }) => category === "menu"
14
- );
15
-
16
6
  const topBorderWidth = useGetNavBarTopBorderWidth();
17
7
  const tabBarHeight = useGetTabBarHeight();
18
8
 
19
- const isBottomBarNavigation =
20
- navigationMenu.navigation_type !== "quick_brick_side_menu";
9
+ const isBottomBarNavigation = useNavigationType() === MenuTypes.bottomTabBar;
21
10
 
22
11
  return !isBottomBarNavigation ? 0 : tabBarHeight + topBorderWidth;
23
12
  };
@@ -187,12 +187,3 @@ export const hasVizioAPIs = () => {
187
187
 
188
188
  return hasAPIs;
189
189
  };
190
-
191
- /**
192
- * Checks if the Android version is at least the expected version
193
- * @param expectedVersion The version to compare against
194
- * @returns True if the current Android version is at least the expected version, false otherwise
195
- */
196
- export const isAndroidVersionAtLeast = (expectedVersion: number) => {
197
- return parseFloat(Platform.Version.toString()) >= expectedVersion;
198
- };