This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,17 @@
// Metro module 15835 (f15836).
import { OrientationLockState } from "../Constants";
import { getIsTabletActivitySurface } from "./getDefaultOrientationLockState";
import { unlockOrientation, lockOrientation } from "../../device/native/DeviceOrientation";
export default function applyActivityOrientationLock(a0) {
if (!getIsTabletActivitySurface()) {
if (OrientationLockState.UNLOCKED === a0) {
unlockOrientation({
unlockAfterRotatingToPreviousLock: true
});
} else if (OrientationLockState.PORTRAIT === a0) {
lockOrientation("PORTRAIT", true);
} else if (OrientationLockState.LANDSCAPE === a0) {
lockOrientation("LANDSCAPE", true);
}
}
};