36 lines
2.6 KiB
TypeScript
36 lines
2.6 KiB
TypeScript
/* Metro module 8750; source: modules/screen/useIsScreenLandscape.native.tsx; dependencies: [31, 1479, 1481, 2] */
|
|
import DimensionsStoreAndroid from './native/DimensionsStore.android.tsx'; /* Metro dependency 1479 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as AppEntryKeyContextModule from '../window/native/AppEntryKeyContext.tsx'; /* Metro dependency 1481 */
|
|
|
|
function _fun68520(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8935:6, offset: 0x01c5257b, size: 146 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/screen/useIsScreenLandscape.native.tsx');
|
|
exports.getIsScreenLandscape = getIsScreenLandscape;
|
|
exports.useIsScreenLandscape = useIsScreenLandscape;
|
|
function getIsScreenLandscape() { // fn#68521, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8935:219, offset: 0x01c5260d, size: 48 bytes, params: 1, frame: 10
|
|
const value = a0;
|
|
const r1 = value !== undefined ? value : 'main';
|
|
const dimensionsStoreAndroidBinding = DimensionsStoreAndroid;
|
|
const getState = dimensionsStoreAndroidBinding.getState;
|
|
return Reflect.apply(getState, dimensionsStoreAndroidBinding, []).byAppEntry[r1].screenIsLandscape;
|
|
}
|
|
|
|
function useIsScreenLandscape() { // fn#68522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8935:335, offset: 0x01c5263d, size: 82 bytes, params: 1, frame: 16
|
|
const value2 = (AppEntryKeyContextModule).useAppEntryKey();
|
|
const dimensionsStoreAndroidBinding = DimensionsStoreAndroid;
|
|
const useCallback = ReactModule.useCallback;
|
|
return dimensionsStoreAndroidBinding(Reflect.apply(useCallback, ReactModule, [_fun68523, [value2]]));
|
|
function _fun68523({byAppEntry}) { // fn#68523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8935:422, offset: 0x01c5268f, size: 28 bytes, params: 2, frame: 2
|
|
return byAppEntry[env0_0].screenIsLandscape;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun68520, 8750, [31, 1479, 1481, 2]) /* metro module 8750, dependencies: [31, 1479, 1481, 2] */;
|