MCPcopy Index your code
hub / github.com/callstack/react-native-paper / getPlaceholderColor

Function getPlaceholderColor

src/components/TextInput/helpers.tsx:373–387  ·  view source on GitHub ↗
({ theme, disabled }: BaseProps)

Source from the content-addressed store, hash-verified

371};
372
373const getPlaceholderColor = ({ theme, disabled }: BaseProps) => {
374 if (theme.isV3) {
375 if (disabled) {
376 return theme.colors.onSurfaceDisabled;
377 }
378
379 return theme.colors.onSurfaceVariant;
380 }
381
382 if (disabled) {
383 return theme.colors.disabled;
384 }
385
386 return theme.colors.placeholder;
387};
388
389const getSelectionColor = ({
390 activeColor,

Callers 2

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