expo-font
Version:
Load fonts at runtime and use them in React Native components.
14 lines • 668 B
TypeScript
import { UnloadFontOptions } from './Font';
import { FontResource } from './Font.types';
declare const _default: {
unloadAllAsync(): Promise<void>;
unloadAsync(fontFamilyName: string, options?: UnloadFontOptions): Promise<void>;
getServerResources(): string[];
resetServerContext(): void;
getLoadedFonts(): string[];
isLoaded(fontFamilyName: string, resource?: UnloadFontOptions): boolean;
loadAsync(fontFamilyName: string, resource: FontResource): Promise<void>;
};
export default _default;
export declare function _createWebFontTemplate(fontFamily: string, resource: FontResource): string;
//# sourceMappingURL=ExpoFontLoader.web.d.ts.map