How to use Awesome font?

#1

On this https://expo.github.io/vector-icons/ page, I found some icons, but I use “<FontAwesome name={‘compass’} size={25} />” can not show it? why?

#2

Can’t really provide any assistance without knowing what error you’re getting and seeing some code. :confused:

#3

You can use them like this:

import { Ionicons, FontAwesome } from '@expo/vector-icons';

<FontAwesome name="calendar" size={25} style={{ color: 'red' }} />
<Ionicons  name="ios-football"  size={50} />

2 Likes
#4

Thank you. I got it.

1 Like