42 lines
3.2 KiB
TypeScript
42 lines
3.2 KiB
TypeScript
/* Metro module 11577; source: modules/action_sheet/native/useKeyboardActionSheetHeight.tsx; dependencies: [5314, 1585, 1478, 5466, 2] */
|
|
import UseWindowDimensionsNative from '../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
|
|
import UseSafeAreaInsetsNative from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
|
|
import UseCustomKeyboardHeight from '../../keyboard/native/useCustomKeyboardHeight.tsx'; /* Metro dependency 5466 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as UseWindowDimensionsNativeModule from '../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
|
|
import * as UseSafeAreaInsetsNativeModule from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
|
|
import * as UseCustomKeyboardHeightModule from '../../keyboard/native/useCustomKeyboardHeight.tsx'; /* Metro dependency 5466 */
|
|
|
|
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});
|
|
(FileImportTrackerModule).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((UseSafeAreaInsetsNative)(),
|
|
(UseWindowDimensionsNative)({ignoreKeyboard: true}),
|
|
(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 = UseSafeAreaInsetsNativeModule;
|
|
value = value.getSafeAreaInsets();
|
|
const windowDimensions = (UseWindowDimensionsNativeModule).getWindowDimensions({ignoreKeyboard: true});
|
|
const getCustomKeyboardHeight = UseCustomKeyboardHeightModule.getCustomKeyboardHeight;
|
|
return computeKeyboardActionSheetHeightBinding(value, windowDimensions, Reflect.apply(getCustomKeyboardHeight,
|
|
UseCustomKeyboardHeightModule, []));
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun88647, 11577, [5314, 1585, 1478, 5466,
|
|
2]) /* metro module 11577, dependencies: [5314, 1585, 1478, 5466, 2] */;
|