39 lines
2.1 KiB
React
39 lines
2.1 KiB
React
/* Metro module 1806; source: unknown; dependencies: [57, 31, 27, 1600] */
|
|
function _fun19789(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#19789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1933:6, offset: 0x00eb3d19, size: 211 bytes, params: 8, frame: 18
|
|
var object2;
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = importDefault(57) /* metro dependency 57 */;
|
|
let value = require(31) /* metro dependency 31 */;
|
|
const env0_3 = value.useEffect;
|
|
const env0_4 = value.useState;
|
|
const Dimensions = (require(27) /* metro dependency 27 */).Dimensions;
|
|
value = Dimensions.get('window');
|
|
object2 = {};
|
|
object2.width = value.width;
|
|
object2.height = value.height;
|
|
const WindowDimensionsEvents = (require(1600) /* metro dependency 1600 */).WindowDimensionsEvents;
|
|
WindowDimensionsEvents.addListener('windowDidResize', function(a0) {
|
|
env0_5 = a0;
|
|
});
|
|
exports.useWindowDimensions = useWindowDimensions_19791;
|
|
}
|
|
|
|
function useWindowDimensions_19791() { // fn#19791, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1933:318, offset: 0x00eb3dec, size: 71 bytes, params: 1, frame: 15
|
|
const [property, env0_0] = env0_2(useState(env0_5), 2);
|
|
useEffect(_fun19792, []);
|
|
return property;
|
|
}
|
|
|
|
function _fun19792() { // fn#19792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1933:393, offset: 0x00eb3e33, size: 83 bytes, params: 1, frame: 16
|
|
const WindowDimensionsEvents = (require(1600) /* metro dependency 1600 */).WindowDimensionsEvents;
|
|
WindowDimensionsEvents.addListener('windowDidResize', _fun19793)(env1_5);
|
|
return _fun19794;
|
|
}
|
|
|
|
function _fun19793(a0) { // fn#19793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1933:472, offset: 0x00eb3e86, size: 19 bytes, params: 2, frame: 11
|
|
env1_0(a0);
|
|
}
|
|
|