expo-font
Version:
Load fonts at runtime and use them in React Native components.
22 lines (21 loc) • 495 B
TypeScript
import { type ConfigPlugin } from 'expo/config-plugins';
export type FontObject = {
fontFamily: string;
fontDefinitions: {
path: string;
weight: number;
style?: 'normal' | 'italic' | undefined;
}[];
};
export type Font = string | FontObject;
export type FontProps = {
fonts?: string[];
android?: {
fonts?: Font[];
};
ios?: {
fonts?: string[];
};
};
declare const _default: ConfigPlugin<FontProps>;
export default _default;