decord/source/modules/screen/native/useFontScale.tsx
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

27 lines
887 B
TypeScript

// Module ID: 5033
// Function ID: 5034
// Name: useFontScale
// Dependencies: [19, 1478, 1480, 2]
// Exports: getFontScale, useFontScale
// Module 5033 (useFontScale)
import AppEntryKeyContext from "AppEntryKeyContext" /* 1480 */;
import noop from "module_19" /* 19 */;
import DimensionsStore from "DimensionsStore" /* 1478 */;
require = fn;
const size = fn(2);
const result = size.fileFinishedImporting("modules/screen/native/useFontScale.tsx");
export const getFontScale = function getFontScale() {
let str = arg0;
if (arg0 === undefined) {
str = "main";
}
return DimensionsStore.getState().byAppEntry[str].fontScale;
};
export const useFontScale = function useFontScale() {
const appEntryKey = AppEntryKeyContext.useAppEntryKey();
const items = [appEntryKey];
return DimensionsStore(noop.useCallback((arg0) => arg0.byAppEntry[appEntryKey].fontScale, items));
};