fix: inf loop dep

This commit is contained in:
Fredrik Burmester
2024-11-27 11:38:31 +01:00
parent d113729b6f
commit 8b0b3d8abc

View File

@@ -302,16 +302,6 @@ const Player = () => {
]
);
useFocusEffect(
useCallback(() => {
play();
return () => {
stop();
};
}, [play, stop])
);
useOrientation();
useOrientationSettings();
@@ -379,6 +369,16 @@ const Player = () => {
}));
};
useFocusEffect(
useCallback(() => {
play();
return () => {
stop();
};
}, [])
);
if (isLoadingItem || isLoadingStreamUrl)
return (
<View className="w-screen h-screen flex flex-col items-center justify-center bg-black">