Files
discord-decomp/sources/modules/action_sheet/native/useKeyboardActionSheetHeight.tsx
T
2026-07-27 16:20:00 +03:00

33 lines
2.5 KiB
TypeScript

/* Metro module 11577; source: modules/action_sheet/native/useKeyboardActionSheetHeight.tsx; dependencies: [5314, 1585, 1478, 5466, 2] */
function _fun88647(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11763:6, offset: 0x01fed635, size: 127 bytes, params: 8, frame: 18
const env0_0 = require;
const computeKeyboardActionSheetHeight = function(a0, a1, a2) {
var value = a2;
var value4 = a1.height - require(dependencyMap[0]).NAV_BAR_HEIGHT_MULTILINE - a0.top;
return {minimum: value, maximum: value >= value4 ? value : value4};
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/useKeyboardActionSheetHeight.tsx');
exports.default = useKeyboardActionSheetHeight;
exports.getKeyboardActionSheetHeight = getKeyboardActionSheetHeight;
}
function useKeyboardActionSheetHeight() { // fn#88649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11763:344, offset: 0x01fed702, size: 84 bytes, params: 1, frame: 18
return computeKeyboardActionSheetHeight((importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)(),
(importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)({ignoreKeyboard: true}),
(importDefault(5466) /* metro dependency 5466: useCustomKeyboardHeight */)());
}
function getKeyboardActionSheetHeight() { // fn#88650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11763:506, offset: 0x01fed756, size: 102 bytes, params: 1, frame: 19
const computeKeyboardActionSheetHeightBinding = computeKeyboardActionSheetHeight;
let value = require(1585) /* metro dependency 1585: useSafeAreaInsetsNative */;
value = value.getSafeAreaInsets();
const windowDimensions = (require(1478) /* metro dependency 1478: useWindowDimensionsNative */).getWindowDimensions({ignoreKeyboard: true});
const useCustomKeyboardHeightModule = require(5466) /* metro dependency 5466: useCustomKeyboardHeight */;
const getCustomKeyboardHeight = useCustomKeyboardHeightModule.getCustomKeyboardHeight;
return computeKeyboardActionSheetHeightBinding(value, windowDimensions, Reflect.apply(getCustomKeyboardHeight,
useCustomKeyboardHeightModule, []));
}