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

Function getFlatUnderlineColor

src/components/TextInput/helpers.tsx:425–447  ·  view source on GitHub ↗
({
  theme,
  disabled,
  underlineColor,
}: BaseProps & { underlineColor?: string })

Source from the content-addressed store, hash-verified

423};
424
425const getFlatUnderlineColor = ({
426 theme,
427 disabled,
428 underlineColor,
429}: BaseProps & { underlineColor?: string }) => {
430 if (!disabled && underlineColor) {
431 return underlineColor;
432 }
433
434 if (theme.isV3) {
435 if (disabled) {
436 return theme.colors.onSurfaceDisabled;
437 }
438
439 return theme.colors.onSurfaceVariant;
440 }
441
442 if (disabled) {
443 return 'transparent';
444 }
445
446 return theme.colors.disabled;
447};
448
449const getOutlinedOutlineInputColor = ({
450 theme,

Callers 1

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