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