decord/source/modules/screen/native/useScaledTextLineHeight.android.tsx

30 lines
1 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 9921
// Function ID: 76776
2026-07-20 16:05:17 +00:00
// Name: scaleLineHeight
2026-07-24 07:16:23 +00:00
// Dependencies: [9922, 4126, 4549, 2]
2026-07-20 16:05:17 +00:00
// Exports: useScaledTextLineHeight
2026-07-24 07:16:23 +00:00
// Module 9921 (scaleLineHeight)
2026-07-20 16:05:17 +00:00
function scaleLineHeight(lineHeight, arg1) {
let value = map.get(lineHeight);
if (null == value) {
2026-07-24 07:16:23 +00:00
const scaledHeightForText = importDefault(9922).getScaledHeightForText(lineHeight);
2026-07-20 16:05:17 +00:00
const result = map.set(lineHeight, scaledHeightForText);
value = scaledHeightForText;
2026-07-24 07:16:23 +00:00
const obj = importDefault(9922);
2026-07-20 16:05:17 +00:00
}
return value;
}
2026-07-23 10:11:24 +00:00
function scaleTextLineHeight(c17, fontScale) {
return scaleLineHeight(require(4126) /* Text */.TextStyleSheet[c17].lineHeight);
2026-07-20 16:05:17 +00:00
}
const map = new Map();
2026-07-23 10:11:24 +00:00
let result = require("getFontScale").fileFinishedImporting("modules/screen/native/useScaledTextLineHeight.android.tsx");
2026-07-20 16:05:17 +00:00
export { scaleLineHeight };
export { scaleTextLineHeight };
export const useScaledTextLineHeight = function useScaledTextLineHeight(textVariant) {
2026-07-23 10:11:24 +00:00
const fontScale = require(4549) /* getFontScale */.useFontScale();
2026-07-20 16:05:17 +00:00
return scaleTextLineHeight(textVariant);
};