mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 14:53:24 +00:00
improve loading, caption renderer, season/episode selector, source selector
This commit is contained in:
@@ -2,19 +2,19 @@ import { Keyboard } from "react-native";
|
||||
import { useRouter } from "expo-router";
|
||||
import { Ionicons } from "@expo/vector-icons";
|
||||
|
||||
import { usePlayerStore } from "~/stores/player/store";
|
||||
import { usePlayer } from "~/hooks/player/usePlayer";
|
||||
|
||||
export const BackButton = ({
|
||||
className,
|
||||
}: Partial<React.ComponentProps<typeof Ionicons>>) => {
|
||||
const unlockOrientation = usePlayerStore((state) => state.unlockOrientation);
|
||||
const { dismissFullscreenPlayer } = usePlayer();
|
||||
const router = useRouter();
|
||||
|
||||
return (
|
||||
<Ionicons
|
||||
name="arrow-back"
|
||||
onPress={() => {
|
||||
unlockOrientation()
|
||||
dismissFullscreenPlayer()
|
||||
.then(() => {
|
||||
router.back();
|
||||
return setTimeout(() => {
|
||||
|
Reference in New Issue
Block a user