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

Function getCheckedColor

src/components/Switch/utils.ts:21–37  ·  view source on GitHub ↗
({
  theme,
  color,
}: {
  theme: InternalTheme;
  color?: string;
})

Source from the content-addressed store, hash-verified

19};
20
21const getCheckedColor = ({
22 theme,
23 color,
24}: {
25 theme: InternalTheme;
26 color?: string;
27}) => {
28 if (color) {
29 return color;
30 }
31
32 if (theme.isV3) {
33 return theme.colors.primary;
34 }
35
36 return theme.colors.accent;
37};
38
39const getThumbTintColor = ({
40 theme,

Callers 1

getSwitchColorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…