UNPKG

1.5 kBJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = configureFonts;
7
8var _reactNative = require("react-native");
9
10const fontConfig = {
11 web: {
12 regular: {
13 fontFamily: 'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif',
14 fontWeight: '400'
15 },
16 medium: {
17 fontFamily: 'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif',
18 fontWeight: '500'
19 },
20 light: {
21 fontFamily: 'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif',
22 fontWeight: '300'
23 },
24 thin: {
25 fontFamily: 'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif',
26 fontWeight: '100'
27 }
28 },
29 ios: {
30 regular: {
31 fontFamily: 'System',
32 fontWeight: '400'
33 },
34 medium: {
35 fontFamily: 'System',
36 fontWeight: '500'
37 },
38 light: {
39 fontFamily: 'System',
40 fontWeight: '300'
41 },
42 thin: {
43 fontFamily: 'System',
44 fontWeight: '100'
45 }
46 },
47 default: {
48 regular: {
49 fontFamily: 'sans-serif',
50 fontWeight: 'normal'
51 },
52 medium: {
53 fontFamily: 'sans-serif-medium',
54 fontWeight: 'normal'
55 },
56 light: {
57 fontFamily: 'sans-serif-light',
58 fontWeight: 'normal'
59 },
60 thin: {
61 fontFamily: 'sans-serif-thin',
62 fontWeight: 'normal'
63 }
64 }
65};
66
67function configureFonts(config) {
68 const fonts = _reactNative.Platform.select({ ...fontConfig,
69 ...config
70 });
71
72 return fonts;
73}
74//# sourceMappingURL=fonts.js.map
\No newline at end of file