45 lines
2.8 KiB
JavaScript
45 lines
2.8 KiB
JavaScript
/* Metro module 331; source: unknown; dependencies: [57, 31, 97] */
|
|
import Module00057 from './module-00057.js'; /* Metro dependency 57 */
|
|
import Module00097 from './module-00097.js'; /* Metro dependency 97 */
|
|
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
|
|
|
|
function _fun4917(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#4917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:372:6, offset: 0x00cd0af9, size: 114 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.default = useWindowDimensions;
|
|
function useWindowDimensions() { // fn#4918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:372:153, offset: 0x00cd0b6b, size: 80 bytes, params: 1, frame: 15
|
|
const [property, env0_1] = Module00057(useState(_fun4919), 2);
|
|
useEffect(_fun4920, [property]);
|
|
return property;
|
|
function _fun4919() { // fn#4919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:372:193, offset: 0x00cd0bbb, size: 41 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__;
|
|
return (Module00097).get('window');
|
|
}
|
|
|
|
function _fun4920() { // fn#4920, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:372:269, offset: 0x00cd0be4, size: 93 bytes, params: 1, frame: 18
|
|
var environment;
|
|
const handleChange2 = handleChange;
|
|
const value = environment.__proto__;
|
|
const env0_0 = (importDefault(97) /* metro dependency 97 */).addEventListener('change', handleChange2);
|
|
const object = {};
|
|
object.window = (importDefault(97) /* metro dependency 97 */).get('window');
|
|
handleChange2(object);
|
|
return _fun4922;
|
|
function handleChange({window}) { // fn#4921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:372:280, offset: 0x00cd0c41, size: 114 bytes, params: 2, frame: 13
|
|
if (!(env1_0.width === window.width && env1_0.height === window.height && env1_0.scale === window.scale && env1_0.fontScale === window.fontScale)) {
|
|
env1_1(window);
|
|
}
|
|
}
|
|
|
|
function _fun4922() { // fn#4922, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:372:517, offset: 0x00cd0cb3, size: 21 bytes, params: 1, frame: 9
|
|
env0_0.remove();
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun4917, 331, [57, 31, 97]) /* metro module 331, dependencies: [57, 31, 97] */;
|