17 lines
418 B
TypeScript
17 lines
418 B
TypeScript
// Metro module 10658 (f10659).
|
|
import { OrientationLockState } from "../Constants";
|
|
export default function doesOrientationMatchLockState(a0, a1) {
|
|
let r2 = a1 == null || a1 === OrientationLockState.UNLOCKED;
|
|
let r8 = a0;
|
|
if (!r2) {
|
|
r2 = a0 ? !a0 : a1 === OrientationLockState.PORTRAIT;
|
|
}
|
|
if (!r2) {
|
|
if (a0) {
|
|
r8 = a1 === OrientationLockState.LANDSCAPE;
|
|
}
|
|
r2 = r8;
|
|
}
|
|
return r2;
|
|
};
|