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

Function getBorderColor

src/components/IconButton/utils.ts:16–32  ·  view source on GitHub ↗
({
  theme,
  disabled,
}: {
  theme: InternalTheme;
  disabled?: boolean;
})

Source from the content-addressed store, hash-verified

14};
15
16const getBorderColor = ({
17 theme,
18 disabled,
19}: {
20 theme: InternalTheme;
21 disabled?: boolean;
22}) => {
23 if (theme.isV3) {
24 if (disabled) {
25 return theme.colors.surfaceDisabled;
26 }
27
28 return theme.colors.outline;
29 }
30
31 return undefined;
32};
33
34const getBackgroundColor = ({
35 theme,

Callers 1

getIconButtonColorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…