I am trying to add a customized icon, I followed the tutorial below: https://www.reactnative.guide/12-svg-icons-using-react-native-vector-icons/12.1-creating-custom-iconset.html
I putted icomoon.tff file in ./assets/fonts, so in my package.json, I added:
"rnpm": {
"assets": [
"./assets/fonts"
]
},
then in my HomePage.js:
import {createIconSetFromIcoMoon} from 'react-native-vector-icons';
import icoMoonConfig from '../selection.json';
const CustomIcon = createIconSetFromIcoMoon(icoMoonConfig);
CustomIcon.loadFont();
<CustomIcon name='aaa'
color = {color}
size = {size}
/>
Then I ran:
yarn add react-native-vector-icons
yarn react-native link react-native-vector-icons
However, it still shows unrecognized font family Icomoon and screen shows a question mark instead of the icon.