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

Function getDefaultBackgroundColor

src/components/Chip/helpers.tsx:95–116  ·  view source on GitHub ↗
({
  theme,
  isOutlined,
}: Omit<BaseProps, 'disabled' | 'selectedColor'>)

Source from the content-addressed store, hash-verified

93};
94
95const getDefaultBackgroundColor = ({
96 theme,
97 isOutlined,
98}: Omit<BaseProps, 'disabled' | 'selectedColor'>) => {
99 if (theme.isV3) {
100 if (isOutlined) {
101 return theme.colors.surface;
102 }
103
104 return theme.colors.secondaryContainer;
105 }
106
107 if (isOutlined) {
108 return theme.colors?.surface;
109 }
110
111 if (theme.dark) {
112 return '#383838';
113 }
114
115 return '#ebebeb';
116};
117
118const getBackgroundColor = ({
119 theme,

Callers 1

getBackgroundColorFunction · 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…