MCPcopy Index your code
hub / github.com/callstack/react-native-paper / getRippleColor

Function getRippleColor

src/components/IconButton/utils.ts:130–146  ·  view source on GitHub ↗
({
  theme,
  iconColor,
  customRippleColor,
}: {
  theme: InternalTheme;
  iconColor: string;
  customRippleColor?: ColorValue;
})

Source from the content-addressed store, hash-verified

128};
129
130const getRippleColor = ({
131 theme,
132 iconColor,
133 customRippleColor,
134}: {
135 theme: InternalTheme;
136 iconColor: string;
137 customRippleColor?: ColorValue;
138}) => {
139 if (customRippleColor) {
140 return customRippleColor;
141 }
142 if (theme.isV3) {
143 return color(iconColor).alpha(0.12).rgb().string();
144 }
145 return color(iconColor).alpha(0.32).rgb().string();
146};
147
148export const getIconButtonColor = ({
149 theme,

Callers 1

getIconButtonColorFunction · 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…