Merge pull request #383 from Ryan0204/master

Change ScreenOrientation to landscape right by default and added toggleSafeArea for all videos
This commit is contained in:
Fredrik Burmester
2025-01-07 11:01:43 +01:00
committed by GitHub
3 changed files with 42 additions and 24 deletions

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);
}