Change ScreenOrientation to landscape right by default

This commit is contained in:
ryan0204
2025-01-06 20:27:34 +08:00
parent 1e869a2c2f
commit ed42371353

View File

@@ -7,7 +7,9 @@ export const useOrientationSettings = () => {
useEffect(() => {
if (settings?.autoRotate) {
// Don't need to do anything
ScreenOrientation.lockAsync(
ScreenOrientation.OrientationLock.LANDSCAPE_RIGHT
);
} else if (settings?.defaultVideoOrientation) {
ScreenOrientation.lockAsync(settings.defaultVideoOrientation);
}