UNPKG

create-expo-cljs-app

Version:

Create a react native application with Expo and Shadow-CLJS!

64 lines 1.38 kB
import { Platform } from 'react-native'; const fontConfig = { web: { regular: { fontFamily: 'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif', fontWeight: '400' }, medium: { fontFamily: 'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif', fontWeight: '500' }, light: { fontFamily: 'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif', fontWeight: '300' }, thin: { fontFamily: 'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif', fontWeight: '100' } }, ios: { regular: { fontFamily: 'System', fontWeight: '400' }, medium: { fontFamily: 'System', fontWeight: '500' }, light: { fontFamily: 'System', fontWeight: '300' }, thin: { fontFamily: 'System', fontWeight: '100' } }, default: { regular: { fontFamily: 'sans-serif', fontWeight: 'normal' }, medium: { fontFamily: 'sans-serif-medium', fontWeight: 'normal' }, light: { fontFamily: 'sans-serif-light', fontWeight: 'normal' }, thin: { fontFamily: 'sans-serif-thin', fontWeight: 'normal' } } }; export default function configureFonts(config) { const fonts = Platform.select({ ...fontConfig, ...config }); return fonts; } //# sourceMappingURL=fonts.js.map