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

Function getLabelColor

src/components/FAB/utils.ts:301–311  ·  view source on GitHub ↗
({ theme }: { theme: InternalTheme })

Source from the content-addressed store, hash-verified

299};
300
301const getLabelColor = ({ theme }: { theme: InternalTheme }) => {
302 if (theme.isV3) {
303 return theme.colors.onSurface;
304 }
305
306 if (theme.dark) {
307 return theme.colors.text;
308 }
309
310 return color(theme.colors.text).fade(0.54).rgb().string();
311};
312
313const getBackdropColor = ({
314 theme,

Callers 2

getFABGroupColorsFunction · 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…