21 lines
830 B
TypeScript
21 lines
830 B
TypeScript
// Module ID: 15797
|
|
// Function ID: 121802
|
|
// Name: setOrientationLockState
|
|
// Dependencies: [10594, 686, 2]
|
|
// Exports: setOrientationLockState
|
|
|
|
// Module 15797 (setOrientationLockState)
|
|
const result = require("set").fileFinishedImporting("modules/frames/native/getDefaultOrientationLockState.tsx");
|
|
|
|
export const setOrientationLockState = function setOrientationLockState(id) {
|
|
let defaultOrientationLockState = arg1;
|
|
if (null == arg1) {
|
|
let obj = require(10594) /* getIsTabletActivitySurface */;
|
|
defaultOrientationLockState = obj.getDefaultOrientationLockState(id);
|
|
}
|
|
if (null != defaultOrientationLockState) {
|
|
obj = { type: "FRAME_SET_ORIENTATION_LOCK_STATE", applicationId: id.id, lockState: defaultOrientationLockState };
|
|
importDefault(686).dispatch(obj);
|
|
const obj2 = importDefault(686);
|
|
}
|
|
};
|