Skip to content

Latest commit

 

History

History
executable file
·
42 lines (32 loc) · 1.45 KB

ThemeFont.md

File metadata and controls

executable file
·
42 lines (32 loc) · 1.45 KB

##t heme-font-headref

Theme Font

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 fontFamily with your choice of font name.

Font families included with NativeBase:

  • Entypo
  • EvilIcons
  • FontAwesome
  • Foundation
  • Ionicons
  • MaterialIcons
  • Octicons
  • Roboto
  • Roboto_medium
  • SimpleLineIcons
  • Zocial

NativeBase allows you to add more font styles on your own.

iOS

  • 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.

Android

  • With react-native
    Run this command on your terminal
react-native link