diff --git a/app/(auth)/player/_layout.tsx b/app/(auth)/player/_layout.tsx index 19e9a8d0..3c29bff4 100644 --- a/app/(auth)/player/_layout.tsx +++ b/app/(auth)/player/_layout.tsx @@ -1,33 +1,8 @@ -import * as ScreenOrientation from "@/packages/expo-screen-orientation"; -import { useSettings } from "@/utils/atoms/settings"; import { Stack } from "expo-router"; -import React, { useLayoutEffect } from "react"; -import { Platform } from "react-native"; +import React from "react"; import { SystemBars } from "react-native-edge-to-edge"; export default function Layout() { - const [settings] = useSettings(); - - useLayoutEffect(() => { - if (Platform.isTV) return; - - if (!settings.followDeviceOrientation && settings.defaultVideoOrientation) { - ScreenOrientation.lockAsync(settings.defaultVideoOrientation); - } - - return () => { - if (Platform.isTV) return; - - if (settings.followDeviceOrientation === true) { - ScreenOrientation.unlockAsync(); - } else { - ScreenOrientation.lockAsync( - ScreenOrientation.OrientationLock.PORTRAIT_UP, - ); - } - }; - }); - return ( <>