diff --git a/components/Player/screens/index.tsx b/components/Player/screens/index.tsx index 781934e4..1a16ca81 100644 --- a/components/Player/screens/index.tsx +++ b/components/Player/screens/index.tsx @@ -16,9 +16,11 @@ import { ProgressMultiplier, TextTickerConfig } from "../component.config"; import IconButton from "../../../components/Global/helpers/icon-button"; import { toUpper } from "lodash"; -export default function PlayerScreen({ navigation }: { navigation: NativeStackNavigationProp}): React.JSX.Element { - - +export default function PlayerScreen({ + navigation +} : { + navigation: NativeStackNavigationProp +}) : React.JSX.Element { const { useTogglePlayback, @@ -47,7 +49,14 @@ export default function PlayerScreen({ navigation }: { navigation: NativeStackNa const { width } = useSafeAreaFrame(); // Prevent gesture event to close player if we're seeking - navigation.setOptions({ gestureEnabled: !seeking }); + useEffect(() => { + navigation.setOptions({ + gestureEnabled: !seeking + }); + }, [ + navigation, + seeking + ]); useEffect(() => { if (!seeking)