##theme-font-headref
Having different font types in your React Native apps is not tough any more.
NativeBase provides you with a set of nine font families.
- To include these fonts into your app, go to Themes/myTheme.js
- Replace value for
fontFamilywith your choice of font name.
Font families included with NativeBase:
- Andale Mono
- Arial
- Arial Black
- Chalkboard
- Cochin
- Comic Sans MS
- Courier New
- Devanagiri
- Georgia
- Microsoft Sans Serif
- Skia
- Times New Roman
NativeBase allows you to add more font styles on your own.
- With react-native
Run this command on your terminal
react-native link- Manually
- Browse through node_modules and drag the font file the ones you want to your project in Xcode. Make sure your app is checked under "Add to targets" and that "Create groups" is checked if you add the whole folder.
- Edit Info.plist and include in property called Fonts provided by application and type in the files you just added.
- With react-native
Run this command on your terminal
react-native link- Manually
- Copy the font files to
android/app/src/main/https://docs.nativebase.io/docs/assets/fonts.
- Copy the font files to