UNPKG

@expo/vector-icons

Version:

Built-in support for 10 popular icon fonts and the tooling to create your own Icon components from your font and glyph map. This is a wrapper around react-native-vector-icons to make it compatible with Expo.

1 lines 581 B
Object.defineProperty(exports,"__esModule",{value:true});exports.default=createIconSetFromFontello;var _createIconSet=require('./create-icon-set');var _createIconSet2=_interopRequireDefault(_createIconSet);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function createIconSetFromFontello(config,fontFamilyArg,fontFile){var glyphMap={};config.glyphs.forEach(function(glyph){glyphMap[glyph.css]=glyph.code;});var fontFamily=fontFamilyArg||config.name||'fontello';return(0,_createIconSet2.default)(glyphMap,fontFamily,fontFile||fontFamily+'.ttf');}