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

Function getTitleColor

src/components/Menu/utils.ts:36–46  ·  view source on GitHub ↗
({ theme, disabled }: ColorProps)

Source from the content-addressed store, hash-verified

34};
35
36const getTitleColor = ({ theme, disabled }: ColorProps) => {
37 if (disabled) {
38 return getDisabledColor(theme);
39 }
40
41 if (theme.isV3) {
42 return theme.colors.onSurface;
43 }
44
45 return color(theme.colors.text).alpha(0.87).rgb().string();
46};
47
48const getIconColor = ({ theme, disabled }: ColorProps) => {
49 if (disabled) {

Callers 1

getMenuItemColorFunction · 0.85

Calls 1

getDisabledColorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…