Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

react-native-vector-icons/Feather icons are not displayed

I have upgraded my app to RN version 0.60.5 and using react-native-vector-icons/Feather for icons. Before the upgrade the icons were displayed well, but after it all I see is squares instead of icons:

enter image description here

I use it like this:

import Icon from 'react-native-vector-icons/Feather';
.
.
.
 return (
   <TouchableOpacity onPress={() => this.btnPressed('Discover')} style={[styles.btn, { marginLeft: 20 }]}>
     <Icon name={'compass'} color={this.state.discoverSelected ? this.props.activeTintColor : this.props.inactiveTintColor} size={24} />
     <Text style={[styles.btnTxt, { color: this.state.discoverSelected ? this.props.activeTintColor : this.props.inactiveTintColor }]}>Discover</Text>
   </TouchableOpacity>
)

What can be the reason for this?

like image 951
Tal Avatar asked Dec 27 '25 15:12

Tal


1 Answers

I experienced same problem before and I solve it by following official installation documentation by using option-with-cocoapods for ios and option-with-gradle for android

like image 96
Maytham Avatar answered Dec 31 '25 18:12

Maytham



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!