MCPcopy
hub / github.com/callstack/react-native-paper / isValidIcon

Function isValidIcon

src/components/Icon.tsx:56–59  ·  view source on GitHub ↗
(source: any)

Source from the content-addressed store, hash-verified

54};
55
56export const isValidIcon = (source: any) =>
57 typeof source === 'string' ||
58 typeof source === 'function' ||
59 isImageSource(source);
60
61export const isEqualIcon = (a: any, b: any) =>
62 a === b || getIconId(a) === getIconId(b);

Callers 1

CrossFadeIconFunction · 0.90

Calls 1

isImageSourceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…