MCPcopy Create free account
hub / github.com/callstack/react-native-paper / getDisabledColor

Function getDisabledColor

src/components/Menu/utils.ts:25–34  ·  view source on GitHub ↗
(theme: InternalTheme)

Source from the content-addressed store, hash-verified

23};
24
25const getDisabledColor = (theme: InternalTheme) => {
26 if (theme.isV3) {
27 return theme.colors.onSurfaceDisabled;
28 }
29
30 return color(theme.dark ? white : black)
31 .alpha(0.32)
32 .rgb()
33 .string();
34};
35
36const getTitleColor = ({ theme, disabled }: ColorProps) => {
37 if (disabled) {

Callers 2

getTitleColorFunction · 0.85
getIconColorFunction · 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…