@applicaster/zapp-react-native-ui-components 13.0.0-rc.129 → 13.0.0-rc.130

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.
@@ -11,6 +11,7 @@ import {
11
11
  platformSelect,
12
12
  isAndroidTVPlatform,
13
13
  } from "@applicaster/zapp-react-native-utils/reactUtils";
14
+ import { isAudioItem } from "@applicaster/zapp-react-native-utils/playerUtils";
14
15
 
15
16
  import { TVEventHandlerComponent } from "@applicaster/zapp-react-native-tvos-ui-components/Components/TVEventHandlerComponent";
16
17
  import { usePrevious } from "@applicaster/zapp-react-native-utils/reactHooks/utils";
@@ -493,9 +494,7 @@ const PlayerContainerComponent = (props: Props) => {
493
494
  // TODO: Skip hook call on TV platform
494
495
  useBackHandler(backHandler);
495
496
 
496
- const isAudioContent =
497
- typeof item?.content?.type === "string" &&
498
- item?.content?.type.includes("audio");
497
+ const isAudioContent = isAudioItem(item);
499
498
 
500
499
  useEffect(() => {
501
500
  if (!isAudioContent) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-ui-components",
3
- "version": "13.0.0-rc.129",
3
+ "version": "13.0.0-rc.130",
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",
@@ -31,10 +31,10 @@
31
31
  "redux-mock-store": "^1.5.3"
32
32
  },
33
33
  "dependencies": {
34
- "@applicaster/applicaster-types": "13.0.0-rc.129",
35
- "@applicaster/zapp-react-native-bridge": "13.0.0-rc.129",
36
- "@applicaster/zapp-react-native-redux": "13.0.0-rc.129",
37
- "@applicaster/zapp-react-native-utils": "13.0.0-rc.129",
34
+ "@applicaster/applicaster-types": "13.0.0-rc.130",
35
+ "@applicaster/zapp-react-native-bridge": "13.0.0-rc.130",
36
+ "@applicaster/zapp-react-native-redux": "13.0.0-rc.130",
37
+ "@applicaster/zapp-react-native-utils": "13.0.0-rc.130",
38
38
  "promise": "^8.3.0",
39
39
  "react-router-native": "^5.1.2",
40
40
  "url": "^0.11.0",