This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
2021-04-02 02:24:13 +03:00

15 lines
561 B
TypeScript

import { FontSource } from './Font.types';
/**
* 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 declare function useFonts(map: string | {
[fontFamily: string]: FontSource;
}): [boolean, Error | null];