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

Function getAndroidUncheckedColor

src/components/Checkbox/utils.ts:23–43  ·  view source on GitHub ↗
({
  theme,
  customUncheckedColor,
}: {
  theme: InternalTheme;
  customUncheckedColor?: string;
})

Source from the content-addressed store, hash-verified

21};
22
23const getAndroidUncheckedColor = ({
24 theme,
25 customUncheckedColor,
26}: {
27 theme: InternalTheme;
28 customUncheckedColor?: string;
29}) => {
30 if (customUncheckedColor) {
31 return customUncheckedColor;
32 }
33
34 if (theme.isV3) {
35 return theme.colors.onSurfaceVariant;
36 }
37
38 if (theme.dark) {
39 return color(theme.colors.text).alpha(0.7).rgb().string();
40 }
41
42 return color(theme.colors.text).alpha(0.54).rgb().string();
43};
44
45const getAndroidRippleColor = ({
46 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…