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

Function getMenuItemColor

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

Source from the content-addressed store, hash-verified

73};
74
75export const getMenuItemColor = ({
76 theme,
77 disabled,
78 customRippleColor,
79}: ColorProps) => {
80 return {
81 titleColor: getTitleColor({ theme, disabled }),
82 iconColor: getIconColor({ theme, disabled }),
83 rippleColor: getRippleColor({ theme, customRippleColor }),
84 };
85};
86
87export const getContentMaxWidth = ({
88 isV3,

Callers 2

MenuItemFunction · 0.90
MenuItem.test.tsxFile · 0.90

Calls 3

getTitleColorFunction · 0.85
getIconColorFunction · 0.70
getRippleColorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…