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

Function getTextColor

src/components/TextInput/Adornment/utils.ts:10–21  ·  view source on GitHub ↗
({ theme, disabled }: BaseProps)

Source from the content-addressed store, hash-verified

8};
9
10export function getTextColor({ theme, disabled }: BaseProps) {
11 if (theme.isV3) {
12 if (disabled) {
13 return theme.colors.onSurfaceDisabled;
14 }
15 return theme.colors.onSurfaceVariant;
16 }
17 return color(theme.colors?.text)
18 .alpha(theme.dark ? 0.7 : 0.54)
19 .rgb()
20 .string();
21}
22
23export function getIconColor({
24 theme,

Callers 1

TextInputAffixFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…