diff --git a/package.json b/package.json index cb7de1e7..f4dfdf7e 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "react-native-fast-image": "8.6.3", "react-native-gesture-handler": "2.12.0", "react-native-marked": "5.0.4", + "react-native-media-console": "2.0.6", "react-native-mmkv": "2.10.0", "react-native-paper": "5.8.0", "react-native-reanimated": "3.3.0", @@ -46,7 +47,6 @@ "react-native-svg": "13.9.0", "react-native-vector-icons": "9.2.0", "react-native-video": "6.0.0-alpha.6", - "react-native-video-controls": "2.8.1", "react-syntax-highlighter": "15.5.0", "turndown": "7.1.2", "zustand": "4.3.8" diff --git a/src/screens/Video/index.tsx b/src/screens/Video/index.tsx index 4746c29e..a081881d 100644 --- a/src/screens/Video/index.tsx +++ b/src/screens/Video/index.tsx @@ -3,8 +3,8 @@ import { logError } from "../../utils/log"; import { NativeStackScreenProps } from "@react-navigation/native-stack"; import { FunctionComponent, useState } from "react"; import { Dimensions, Linking, Share, StyleSheet, View } from "react-native"; +import VideoPlayer from "react-native-media-console"; import { FAB, Text } from "react-native-paper"; -import VideoPlayer from "react-native-video-controls"; type Props = NativeStackScreenProps; diff --git a/src/types/react-native-video-controls.d.ts b/src/types/react-native-video-controls.d.ts deleted file mode 100644 index 5445266b..00000000 --- a/src/types/react-native-video-controls.d.ts +++ /dev/null @@ -1,87 +0,0 @@ -// Ref: https://github.com/itsnubix/react-native-video-controls/blob/master/VideoPlayer.d.ts -// Note: react-native-video-controls with types def isn't released - -declare module "react-native-video-controls" { - import { Component } from "react"; - import { StyleProp, ViewStyle } from "react-native"; - import Video, { LoadError, VideoProperties } from "react-native-video"; - - interface DuckNavigator { - pop: () => void; - } - - interface VideoPlayerProperties extends VideoProperties { - /** If true, clicking the fullscreen button will toggle the