From e5021187e96b78b53203bd95d08d6818aea47d17 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Wed, 14 Jul 2021 15:10:31 +0200 Subject: New Ignite 7.0.6 app --- app/theme/typography.ts | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 app/theme/typography.ts (limited to 'app/theme/typography.ts') diff --git a/app/theme/typography.ts b/app/theme/typography.ts new file mode 100644 index 0000000..5f7de85 --- /dev/null +++ b/app/theme/typography.ts @@ -0,0 +1,31 @@ +import { Platform } from "react-native" + +/** + * You can find a list of available fonts on both iOS and Android here: + * https://github.com/react-native-training/react-native-fonts + * + * If you're interested in adding a custom font to your project, + * check out the readme file in ./assets/fonts/ then come back here + * and enter your new font name. Remember the Android font name + * is probably different than iOS. + * More on that here: + * https://github.com/lendup/react-native-cross-platform-text + * + * The various styles of fonts are defined in the component. + */ +export const typography = { + /** + * The primary font. Used in most places. + */ + primary: Platform.select({ ios: "Helvetica", android: "normal" }), + + /** + * An alternate font used for perhaps titles and stuff. + */ + secondary: Platform.select({ ios: "Arial", android: "sans-serif" }), + + /** + * Lets get fancy with a monospace font! + */ + code: Platform.select({ ios: "Courier", android: "monospace" }), +} -- cgit v1.2.3