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

Function getButtonBorderWidth

src/components/Button/utils.tsx:171–186  ·  view source on GitHub ↗
({
  isMode,
  theme,
}: Omit<BaseProps, 'disabled'>)

Source from the content-addressed store, hash-verified

169};
170
171const getButtonBorderWidth = ({
172 isMode,
173 theme,
174}: Omit<BaseProps, 'disabled'>) => {
175 if (theme.isV3) {
176 if (isMode('outlined')) {
177 return 1;
178 }
179 }
180
181 if (isMode('outlined')) {
182 return StyleSheet.hairlineWidth;
183 }
184
185 return 0;
186};
187
188export const getButtonColors = ({
189 theme,

Callers 1

getButtonColorsFunction · 0.85

Calls 1

isModeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…