MCPcopy
hub / github.com/oblador/react-native-vector-icons / groupGlyphNames

Function groupGlyphNames

apps/icon-explorer/src/IconSets.tsx:43–53  ·  view source on GitHub ↗
(glyphMap: Record<string, number>)

Source from the content-addressed store, hash-verified

41import { Fontello, FontelloGlyphs, IcoMoon, IcoMoonGlyphs } from './CustomFonts.ts';
42
43const groupGlyphNames = (glyphMap: Record<string, number>) => {
44 const result: Record<number, string[]> = {};
45
46 Object.entries(glyphMap).forEach(([glyphName, glyphValue]) => {
47 result[glyphValue] ||= [];
48
49 result[glyphValue].push(glyphName);
50 });
51
52 return Object.values(result);
53};
54
55export const iconSets = {
56 AntD: { component: AntDesign, glyphNames: groupGlyphNames(AntDesignGlyphs), meta: undefined },

Callers 1

IconSets.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…