@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) • 550 B
JavaScript
/**
* FontAwesome5Pro icon set component.
* Usage: <FontAwesome5Pro name="icon-name" size={20} color="#4F8EF7" />
*/
import { createFA5iconSet } from './lib/create-icon-set-from-fontawesome5';
import glyphMap from './glyphmaps/FontAwesome5Pro.json';
import metadata from './glyphmaps/FontAwesome5Pro_meta.json';
export { FA5Style } from './lib/create-icon-set-from-fontawesome5';
const iconSet = createFA5iconSet(glyphMap, metadata, true);
export default iconSet;
export const {
Button,
getImageSource,
getImageSourceSync,
} = iconSet;