0.0.1-alpha.9 • Published 13 days ago
@react-native-vector-icons/icomoon v0.0.1-alpha.9
React Native Vector Icons - IcoMoon
React Native Vector Icons font package to support IcoMoon fonts
See the React Native Vector Icons README for more details.
Installation
npm install @react-native-vector-icons/icomoon
Usage
- Add the config.json somewhere in your project to be imported
- Add the ttf file into
rnvi-fonts
. You can customise this location as described in react-native-vector-icons - Add this package to your project
yarn instal @react-native-vector-icons/fontello
- Create the component in your project and use it
import createIconSet from '@react-native-vector-icons/icomoon';
import icoMoonConfig from './IcoMoon-Free.json';
const Icon = createIconSet(icoMoonConfig);
cont icon = <Icon name="comments" />;
If you want to customise the font postscript name and filename you can pass extra arguments.
import createIconSet from '@react-native-vector-icons/icomoon';
import icoMoonConfig from './IcoMoon-Free.json';
const Icon = createIconSet(icoMoonConfig, 'Font Family', 'FontFamily.ttf');
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
0.0.1-alpha.9
13 days ago
0.0.1-alpha.8
15 days ago
0.0.1-alpha.7
2 months ago
0.0.1-alpha.5
2 months ago
0.0.1-alpha.3
4 months ago
0.0.1-alpha.2
4 months ago
0.0.1-alpha.1
4 months ago