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

Function getAndroidRippleColor

src/components/Checkbox/utils.ts:45–62  ·  view source on GitHub ↗
({
  theme,
  checkedColor,
  disabled,
}: {
  theme: InternalTheme;
  checkedColor: string;
  disabled?: boolean;
})

Source from the content-addressed store, hash-verified

43};
44
45const getAndroidRippleColor = ({
46 theme,
47 checkedColor,
48 disabled,
49}: {
50 theme: InternalTheme;
51 checkedColor: string;
52 disabled?: boolean;
53}) => {
54 if (disabled) {
55 if (theme.isV3) {
56 return color(theme.colors.onSurface).alpha(0.16).rgb().string();
57 }
58 return color(theme.colors.text).alpha(0.16).rgb().string();
59 }
60
61 return color(checkedColor).fade(0.32).rgb().string();
62};
63
64const getAndroidControlColor = ({
65 theme,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…