2026-07-25 08:10:48 +00:00
|
|
|
// Module ID: 9849
|
2026-07-27 11:26:19 +00:00
|
|
|
// Function ID: 76390
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: scaleLineHeight
|
2026-07-25 08:10:48 +00:00
|
|
|
// Dependencies: [9850, 4127, 4550, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: useScaledTextLineHeight
|
|
|
|
|
|
2026-07-25 08:10:48 +00:00
|
|
|
// Module 9849 (scaleLineHeight)
|
2026-07-20 16:05:17 +00:00
|
|
|
function scaleLineHeight(lineHeight, arg1) {
|
|
|
|
|
let value = map.get(lineHeight);
|
|
|
|
|
if (null == value) {
|
2026-07-25 08:10:48 +00:00
|
|
|
const scaledHeightForText = importDefault(9850).getScaledHeightForText(lineHeight);
|
2026-07-20 16:05:17 +00:00
|
|
|
const result = map.set(lineHeight, scaledHeightForText);
|
|
|
|
|
value = scaledHeightForText;
|
2026-07-25 08:10:48 +00:00
|
|
|
const obj = importDefault(9850);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return value;
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
function scaleTextLineHeight(c17, fontScale) {
|
2026-07-25 08:10:48 +00:00
|
|
|
return scaleLineHeight(require(4127) /* 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-25 08:10:48 +00:00
|
|
|
const fontScale = require(4550) /* getFontScale */.useFontScale();
|
2026-07-20 16:05:17 +00:00
|
|
|
return scaleTextLineHeight(textVariant);
|
|
|
|
|
};
|