fix: more specified dep arr

This commit is contained in:
Fredrik Burmester
2025-03-03 15:21:18 +01:00
parent 9c9785ba9e
commit fe3b652b4f

View File

@@ -21,12 +21,10 @@ export default function Layout() {
if (settings.autoRotate === true) {
ScreenOrientation.unlockAsync();
} else {
ScreenOrientation.lockAsync(
ScreenOrientation.OrientationLock.PORTRAIT_UP
);
ScreenOrientation.lockAsync(ScreenOrientation.OrientationLock.PORTRAIT_UP);
}
};
}, [settings]);
}, [settings.defaultVideoOrientation, settings.autoRotate]);
return (
<>