Files
Fluxup_PAP/node_modules/@expo-google-fonts/material-symbols/useFonts.d.ts
2026-03-10 16:18:05 +00:00

16 lines
575 B
TypeScript

export type FontSource = string | number | Asset | FontResource;
/**
* Load a map of custom fonts to use in textual elements.
* The map keys are used as font names, and can be used with `fontFamily: <name>;`.
* It returns a boolean describing if all fonts are loaded.
*
* Note, the fonts are not "reloaded" when you dynamically change the font map.
*
* @see https://docs.expo.io/versions/latest/sdk/font/
* @example const [loaded, error] = useFonts(...);
*/
export function useFonts(
map: string | { [fontFamily: string]: FontSource }
): [boolean, Error | null];