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

Function getAndroidCheckedColor

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

Source from the content-addressed store, hash-verified

3import type { InternalTheme } from '../../types';
4
5const getAndroidCheckedColor = ({
6 theme,
7 customColor,
8}: {
9 theme: InternalTheme;
10 customColor?: string;
11}) => {
12 if (customColor) {
13 return customColor;
14 }
15
16 if (theme.isV3) {
17 return theme.colors.primary;
18 }
19
20 return theme.colors.accent;
21};
22
23const getAndroidUncheckedColor = ({
24 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…