diff --git a/app/(auth)/trailer/page.tsx b/app/(auth)/trailer/page.tsx deleted file mode 100644 index 9f331795..00000000 --- a/app/(auth)/trailer/page.tsx +++ /dev/null @@ -1,45 +0,0 @@ -import { useGlobalSearchParams } from "expo-router"; -import { useCallback, useEffect, useMemo, useState } from "react"; -import { Alert, Dimensions, View } from "react-native"; -import YoutubePlayer, { PLAYER_STATES } from "react-native-youtube-iframe"; - -export default function page() { - const searchParams = useGlobalSearchParams(); - - const { url } = searchParams as { url: string }; - - const videoId = useMemo(() => { - return url.split("v=")[1]; - }, [url]); - - const [playing, setPlaying] = useState(false); - - const onStateChange = useCallback((state: PLAYER_STATES) => { - if (state === "ended") { - setPlaying(false); - Alert.alert("video has finished playing!"); - } - }, []); - - const togglePlaying = useCallback(() => { - setPlaying((prev) => !prev); - }, []); - - useEffect(() => { - togglePlaying(); - }, []); - - const screenWidth = Dimensions.get("screen").width; - - return ( - - - - ); -} diff --git a/bun.lockb b/bun.lockb index a91ec1cf..a2c760a7 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index aa9a45c6..79d0a830 100644 --- a/package.json +++ b/package.json @@ -15,18 +15,19 @@ }, "dependencies": { "@bottom-tabs/react-navigation": "0.8.0", + "react-native-bottom-tabs": "0.8.0", + "@react-navigation/material-top-tabs": "^7.1.0", + "@react-navigation/native": "^7.0.14", "@config-plugins/ffmpeg-kit-react-native": "^8.0.0", "@expo/react-native-action-sheet": "^4.1.0", "@expo/vector-icons": "^14.0.4", "@futurejj/react-native-visibility-sensor": "^1.3.5", - "@gorhom/bottom-sheet": "^4.6.4", + "@gorhom/bottom-sheet": "^5.0.6", "@jellyfin/sdk": "^0.11.0", "@kesha-antonov/react-native-background-downloader": "3.2.6", "@react-native-async-storage/async-storage": "1.23.1", "@react-native-community/netinfo": "11.4.1", "@react-native-menu/menu": "^1.1.6", - "@react-navigation/material-top-tabs": "^6.6.14", - "@react-navigation/native": "^6.1.18", "@shopify/flash-list": "1.7.1", "@tanstack/react-query": "^5.59.20", "@types/lodash": "^4.17.13", @@ -69,7 +70,6 @@ "react-dom": "18.3.1", "react-native": "0.76.6", "react-native-awesome-slider": "^2.5.6", - "react-native-bottom-tabs": "0.8.0", "react-native-circular-progress": "^1.4.1", "react-native-compressor": "^1.9.0", "react-native-country-flag": "^2.0.2",