@applicaster/quick-brick-player 13.0.0-rc.92 → 13.0.0-rc.93

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/quick-brick-player",
3
- "version": "13.0.0-rc.92",
3
+ "version": "13.0.0-rc.93",
4
4
  "description": "Quick Brick Player",
5
5
  "main": "./src/index.ts",
6
6
  "types": "index.d.ts",
@@ -37,9 +37,9 @@
37
37
  "dependencies": {
38
38
  "@applicaster/quick-brick-mobile-transport-controls": "13.0.0-rc.88",
39
39
  "@applicaster/quick-brick-tv-transport-controls": "13.0.0-rc.56",
40
- "@applicaster/zapp-react-native-tvos-app": "13.0.0-rc.92",
41
- "@applicaster/zapp-react-native-ui-components": "13.0.0-rc.92",
42
- "@applicaster/zapp-react-native-utils": "13.0.0-rc.92",
40
+ "@applicaster/zapp-react-native-tvos-app": "13.0.0-rc.93",
41
+ "@applicaster/zapp-react-native-ui-components": "13.0.0-rc.93",
42
+ "@applicaster/zapp-react-native-utils": "13.0.0-rc.93",
43
43
  "keymirror": "^0.1.1",
44
44
  "query-string": "7.1.3",
45
45
  "react-native-web-linear-gradient": "1.1.2",
@@ -36,6 +36,7 @@ import {
36
36
  import { SpeedController, PlaybackSpeed, DEFAULT_SPEED } from "./SpeedManager";
37
37
  import { imageSrcFromMediaItem } from "@applicaster/zapp-react-native-utils/configurationUtils";
38
38
  import { useTheme } from "@applicaster/zapp-react-native-utils/theme";
39
+ import { openBottomSheetModal } from "@applicaster/zapp-react-native-utils/modalState";
39
40
 
40
41
  const { log_debug } = createLogger({
41
42
  subsystem: "UIComponent",
@@ -196,8 +197,6 @@ export const AudioPlayerWrapper: React.FC<Props> = (props: Props) => {
196
197
  height: 0,
197
198
  });
198
199
 
199
- const navigator = useNavigation();
200
-
201
200
  const { maximiseVideoModal } = useNavigation();
202
201
 
203
202
  const onLayout = (event: any) => {
@@ -287,7 +286,7 @@ export const AudioPlayerWrapper: React.FC<Props> = (props: Props) => {
287
286
  );
288
287
 
289
288
  const onSpeedButtonPress = React.useCallback(() => {
290
- navigator.openModalBottomSheet({
289
+ openBottomSheetModal({
291
290
  modalBottomSheetContentProps: {
292
291
  items: speeds,
293
292
  current_selection: playbackSpeed,
@@ -301,13 +300,12 @@ export const AudioPlayerWrapper: React.FC<Props> = (props: Props) => {
301
300
  }, [
302
301
  playbackSpeed,
303
302
  setPlaybackSpeed,
304
- navigator,
305
303
  onSpeedSelect,
306
304
  configuration["playback_speed_title"],
307
305
  ]);
308
306
 
309
307
  const onSleepButtonPress = React.useCallback(() => {
310
- navigator.openModalBottomSheet({
308
+ openBottomSheetModal({
311
309
  modalBottomSheetContentProps: {
312
310
  items: [
313
311
  {
@@ -324,7 +322,6 @@ export const AudioPlayerWrapper: React.FC<Props> = (props: Props) => {
324
322
  },
325
323
  });
326
324
  }, [
327
- navigator,
328
325
  sleepTimerState.timer,
329
326
  configuration["playback_sleep_title"],
330
327
  configuration["playback_sleep_off_label"],