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:
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?
我之前遇到过同样的问题,我通过遵循官方安装文档(针对iOS的option-with-cocoapods和针对Android的option-with-gradle)来解决此问题
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.