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

Function getRippleColor

src/components/Menu/utils.ts:60–73  ·  view source on GitHub ↗
({
  theme,
  customRippleColor,
}: Omit<ColorProps, 'disabled'>)

Source from the content-addressed store, hash-verified

58};
59
60const getRippleColor = ({
61 theme,
62 customRippleColor,
63}: Omit<ColorProps, 'disabled'>) => {
64 if (customRippleColor) {
65 return customRippleColor;
66 }
67
68 if (theme.isV3) {
69 return color(theme.colors.onSurfaceVariant).alpha(0.12).rgb().string();
70 }
71
72 return undefined;
73};
74
75export const getMenuItemColor = ({
76 theme,

Callers 1

getMenuItemColorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…