generator-react-native-vector-icons
Version:
Generates React Native vector icons font library
25 lines (18 loc) • 823 B
text/typescript
'use client';
/**
* This is a generated file. If you modify it manually, your changes will be lost!
* This file was generated from packages/generator-react-native-vector-icons/src/app/templates
* If you're contributing to react-native-vector-icons, make the change there; otherwise it'll be lost
*
* <%= className %> icon set component.
* Usage: <<%= className %> name="icon-name" size={20} color="#4F8EF7" />
*/
import { createIconSet } from '@react-native-vector-icons/<%= commonPackage %>';
import glyphMap from '../glyphmaps/<%= className %>.json';
export const <%= className %> = createIconSet(glyphMap, {
postScriptName: '<%= postScriptName %>',
fontFileName: '<%= fontFileName %>.ttf',
});
export type <%= className %>IconName = keyof typeof glyphMap;
/** @alias */
export default <%= className %>;