I have seen in several articles about applying icons to this react native, but on my way I found an error. it's clearer like this
Step that i did :
npm intall react-native-vector-icons --save
then in Example.js
import Icon from 'react-native-vector-icons/MaterialIcons';
export defaul class App extends React.Component {
render(){
return(
<Icon name='person-outline' type="MaterialIcons" />
)
}
}
after I got here I tried it, but the icon didn't work. then I read a few articles, and needed to execute the following command. and i do
react-native link react-native-vector-icons
and I tried again. and this works. the icon appears. but in the command I get an error. more or less error like this
** error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually: - react-native-vector-icons (to unlink run: "react-native unlink react-native-vector-icons") **
what should i do??
react-native unlink react-native-vector-icons. but icon not work again. so how can it work @GauravRoy