Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,42 @@
|
||||
/* Metro module 14359; source: modules/auth/native/useOrientationLock.tsx; dependencies: [31, 4092, 1581, 8973, 7717, 2] */
|
||||
function _fun108664(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#108664, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14556:6, offset: 0x02328b7e, size: 121 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/auth/native/useOrientationLock.tsx');
|
||||
exports.default = usePortraitOrientationOnly;
|
||||
}
|
||||
|
||||
function usePortraitOrientationOnly() { // fn#108665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14556:192, offset: 0x02328bf7, size: 67 bytes, params: 1, frame: 15
|
||||
env0_3.useEffect(_fun108666, [(importDefault(8973) /* metro dependency 8973: useWideAuthView */)()]);
|
||||
}
|
||||
|
||||
function _fun108666() { // fn#108666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14556:259, offset: 0x02328c3a, size: 143 bytes, params: 1, frame: 16
|
||||
var environment;
|
||||
var r2;
|
||||
var moduleValue2;
|
||||
const value = environment.__proto__;
|
||||
const isIpadOS2 = (require(4092) /* metro dependency 4092: DeviceUtils */).isIpadOS();
|
||||
if (isIpadOS2) {
|
||||
r2 = !isIpadOS2;
|
||||
} else {
|
||||
moduleValue2 = require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */;
|
||||
r2 = !moduleValue2.isMetaQuest();
|
||||
}
|
||||
r2 = r2 && !env0_0;
|
||||
if (r2) {
|
||||
(require(7717) /* metro dependency 7717: DeviceOrientation */).lockOrientation('PORTRAIT', false);
|
||||
}
|
||||
return _fun108667;
|
||||
}
|
||||
|
||||
function _fun108667() { // fn#108667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14556:417, offset: 0x02328cc9, size: 59 bytes, params: 1, frame: 12
|
||||
var value;
|
||||
if (env0_0) {
|
||||
value = environment.__proto__.__proto__;
|
||||
value = require(7717) /* metro dependency 7717: DeviceOrientation */;
|
||||
value.unlockOrientation({unlockAfterRotatingToPreviousLock: false});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user