Karan Mehta
Karan Mehta

Reputation: 1539

Icon not showing in react-native

I am using react-native-vector-icons library for showing icons in tabbar like shown below :

import FontAwesome from 'react-native-vector-icons/FontAwesome';

<FontAwesome name='trophy' />

But it's not showing icon, so what to do for this?

enter image description here

Upvotes: 0

Views: 386

Answers (1)

Quang Th&#225;i
Quang Th&#225;i

Reputation: 697

Icon display wrong because it can not find the font. I think you need to check if the bundle contains these .ttf files.

If not, Here is the guide i found from docs

The result of icon i tested with your code:

Code:

Result: enter image description here

Upvotes: 2

Related Questions