@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 • 622 B
JavaScript
Object.defineProperty(exports,"__esModule",{value:true});exports.default=createIconSetFromIcoMoon;var _createIconSet=require('./create-icon-set');var _createIconSet2=_interopRequireDefault(_createIconSet);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function createIconSetFromIcoMoon(config,fontFamilyArg,fontFile){var glyphMap={};config.icons.forEach(function(icon){glyphMap[icon.properties.name]=icon.properties.code;});var fontFamily=fontFamilyArg||config.preferences.fontPref.metadata.fontFamily;return(0,_createIconSet2.default)(glyphMap,fontFamily,fontFile||fontFamily+'.ttf');}