Icon not supported?

Hello,
is Icon not really supported?
I try to import it like this:
import Icon from ‘react-native-vector-icons/dist/FontAwesome’;
I then add the Dependency an do not have an error anymore

My problem is that the Icon symbol is wrong. It is always a ? or a square no matter what name I give it.

Code:
import React from ‘react’
import {View, Text, StyleSheet, TouchableOpacity} from ‘react-native’
import Icon from ‘react-native-vector-icons/dist/FontAwesome’;

const ListItem = ({item}) => {
return(


{item.text}



);
};

const styles = StyleSheet.create({
listItem: {
padding: 15,
backgroundColor: ‘#f8f8f8’,
borderBottomWidth: 1,
borderColor: ‘#eee’,
},
listItemView: {
flexDirection: ‘row’,
justifyContent: ‘space-between’,
alignItems: ‘center’,
},
listItemText: {
fontSize: 18.
},
});

export default ListItem;

I get a square when using remove as name. It should be a cross Icon

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.