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