Icomoon font for react native vector icons
npm install @react-native-vector-icons/icomoonReact Native Vector Icons font package to support IcoMoon fonts
See the React Native Vector Icons README for more details.
``sh`
npm install @react-native-vector-icons/icomoon
1. Add the config.json somewhere in your project to be imported
1. Add the ttf file into rnvi-fonts/icomoon. You can customise this location as described in react-native-vector-icons
1. Add this package to your project
`sh`
npm install @react-native-vector-icons/icomoon
4. Create the component in your project and use it
`js
import createIconSet from '@react-native-vector-icons/icomoon';
import icoMoonConfig from './IcoMoon-Free.json';
const Icon = createIconSet(icoMoonConfig);
const icon =
`
If you want to customise the font postscript name and filename you can pass extra arguments.
`js``
import createIconSet from "@react-native-vector-icons/icomoon";
import icoMoonConfig from "./IcoMoon-Free.json";
const Icon = createIconSet(icoMoonConfig, "Font Family", "FontFamily.ttf");
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT