How to use 2 or more fonts (for example, FontAwesome and Entypo) of the react-native-vector-icons in one file?
react-native-vector-icons exports a default <Icon />
component. You can name your default imports anything you want. For your example you can do:
import FontAwesomeIcon from 'react-native-vector-icons/FontAwesome'
import EntypoIcon from 'react-native-vector-icons/Entypo'
This way you can use as many fonts as you want
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With