Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 1.48 KB

ThemeFont.md

File metadata and controls

34 lines (29 loc) · 1.48 KB

##theme-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 native-base-theme/platform.js (you can change this in any of the three theme variable files) and replace value for fontFamily with your choice of font name. NativeBase allows you to add more font styles on your own.

Font families included with NativeBase:

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

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
  • Manually
    • Copy the font files to android/app/src/main/assets/fonts.