decord/source/modules/expression_picker/native/useExpressionPickerInsets.tsx

26 lines
915 B
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 9608
// Function ID: 74769
2026-07-20 16:05:17 +00:00
// Name: useExpressionPickerInsets
2026-07-23 10:11:24 +00:00
// Dependencies: [31, 653, 1557, 5160, 689, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-24 07:16:23 +00:00
// Module 9608 (useExpressionPickerInsets)
2026-07-23 10:11:24 +00:00
import result from "result";
import { EXPRESSION_FOOTER_HEIGHT } from "ME";
const result = require("useSafeAreaInsets").fileFinishedImporting("modules/expression_picker/native/useExpressionPickerInsets.tsx");
2026-07-20 16:05:17 +00:00
export default function useExpressionPickerInsets(hasCategories) {
2026-07-23 10:11:24 +00:00
bottom = bottom(1557)().bottom;
2026-07-20 16:05:17 +00:00
const obj = {};
const items = [bottom];
obj.safeAreaStyle = React.useMemo(() => ({ paddingBottom: bottom }), items);
let num = 0;
if (hasCategories.hasCategories) {
num = EXPRESSION_FOOTER_HEIGHT;
}
2026-07-23 10:11:24 +00:00
const sum = bottom(5160)({ includeKeyboardHeight: true, includeCustomKeyboardHeight: false }).insets.bottom + num;
obj.safeAreaBottomKeyboardAware = sum + bottom(689).space.PX_16;
2026-07-20 16:05:17 +00:00
return obj;
};