UNPKG

expo-font

Version:

Load fonts at runtime and use them in React Native components.

13 lines 672 B
import type { ServerFontResourceDescriptor, UnloadFontOptions } from './Font.types'; export type ExpoFontLoaderModule = { getLoadedFonts: () => string[]; loadAsync: (fontFamilyName: string, localUriOrWebAsset: any) => Promise<void>; unloadAllAsync?: () => Promise<void>; unloadAsync?: (fontFamilyName: string, options?: UnloadFontOptions) => Promise<void>; isLoaded?: (fontFamilyName: string, options?: UnloadFontOptions) => boolean; getServerResources?: () => string[]; getServerResourceDescriptors?: () => ServerFontResourceDescriptor[]; }; declare const m: ExpoFontLoaderModule; export default m; //# sourceMappingURL=ExpoFontLoader.d.ts.map