MCPcopy
hub / github.com/callstack/react-native-paper / getCardColors

Function getCardColors

src/components/Card/utils.tsx:98–116  ·  view source on GitHub ↗
({
  theme,
  mode,
}: {
  theme: InternalTheme;
  mode: CardMode;
})

Source from the content-addressed store, hash-verified

96};
97
98export const getCardColors = ({
99 theme,
100 mode,
101}: {
102 theme: InternalTheme;
103 mode: CardMode;
104}) => {
105 const isMode = (modeToCompare: CardMode) => {
106 return mode === modeToCompare;
107 };
108
109 return {
110 backgroundColor: getBackgroundColor({
111 theme,
112 isMode,
113 }),
114 borderColor: getBorderColor({ theme }),
115 };
116};

Callers 2

CardFunction · 0.90
Card.test.tsxFile · 0.90

Calls 2

getBackgroundColorFunction · 0.70
getBorderColorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…