@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.
12 lines (10 loc) • 312 B
JavaScript
import { Font } from 'expo';
import createIconSetFromIcoMoon
from './vendor/react-native-vector-icons/lib/create-icon-set-from-icomoon';
export default function(config, expoFontName, expoAssetId) {
return createIconSetFromIcoMoon(
config,
Font.style(expoFontName).fontFamily,
expoAssetId
);
}