18 lines
581 B
Smarty
18 lines
581 B
Smarty
/**
|
|
* ${componentName} icon set component.
|
|
* Usage: <${componentName} name="icon-name" size={20} color="#4F8EF7" />
|
|
*/
|
|
|
|
import createIconSet from 'react-native-vector-icons/lib/create-icon-set';
|
|
const glyphMap = ${glyphMap};
|
|
|
|
const iconSet = createIconSet(glyphMap, '${fontFamily}', '${componentName}.ttf');
|
|
|
|
export default iconSet;
|
|
|
|
export const Button = iconSet.Button;
|
|
export const TabBarItem = iconSet.TabBarItem;
|
|
export const TabBarItemIOS = iconSet.TabBarItemIOS;
|
|
export const ToolbarAndroid = iconSet.ToolbarAndroid;
|
|
export const getImageSource = iconSet.getImageSource;
|