@react-native-vector-icons/fontello
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-alpha.9 • Public • Published

React Native Vector Icons - Fontello

React Native Vector Icons font package to support using custom fonts created with Fontello

See the React Native Vector Icons README for more details.

Installation

npm install @react-native-vector-icons/fontello

Usage

  1. Add the config.json somewhere in your project to be imported
  2. Add the ttf file into rnvi-fonts. You can customise this location as described in react-native-vector-icons
  3. Add this package to your project
yarn instal @react-native-vector-icons/fontello
  1. Create the component in your project and use it
import createIconSet from '@react-native-vector-icons/fontello';
import fontelloConfig from './config.json';
const Icon = createIconSet(fontelloConfig);

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/fontello';
import fontelloConfig from './config.json';
const Icon = createIconSet(fontelloConfig, 'Font Family', 'FontFamily.ttf');

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Package Sidebar

Install

npm i @react-native-vector-icons/fontello

Weekly Downloads

115

Version

0.0.1-alpha.9

License

MIT

Unpacked Size

9.89 kB

Total Files

10

Last publish

Collaborators

  • johnf
  • oblador