MCPcopy Create free account
hub / github.com/callstack/react-native-paper / getIconColor

Function getIconColor

src/components/Menu/utils.ts:48–58  ·  view source on GitHub ↗
({ theme, disabled }: ColorProps)

Source from the content-addressed store, hash-verified

46};
47
48const getIconColor = ({ theme, disabled }: ColorProps) => {
49 if (disabled) {
50 return getDisabledColor(theme);
51 }
52
53 if (theme.isV3) {
54 return theme.colors.onSurfaceVariant;
55 }
56
57 return color(theme.colors.text).alpha(0.54).rgb().string();
58};
59
60const getRippleColor = ({
61 theme,

Callers 1

getMenuItemColorFunction · 0.70

Calls 1

getDisabledColorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…