@expo/vector-icons
Version:
Built-in support for 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.
21 lines (15 loc) • 547 B
JavaScript
/**
* FontAwesome5 icon set component.
* Usage: <FontAwesome5 name="icon-name" size={20} color="#4F8EF7" />
*/
import { createFA5iconSet } from './lib/create-icon-set-from-fontawesome5';
import glyphMap from './glyphmaps/FontAwesome5Free.json';
import metadata from './glyphmaps/FontAwesome5Free_meta.json';
export { FA5Style } from './lib/create-icon-set-from-fontawesome5';
const iconSet = createFA5iconSet(glyphMap, metadata, false);
export default iconSet;
export const {
Button,
getImageSource,
getImageSourceSync,
} = iconSet;