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

Function getActiveTintColor

src/components/BottomNavigation/utils.ts:11–27  ·  view source on GitHub ↗
({
  activeColor,
  defaultColor,
  theme,
}: BaseProps & {
  activeColor: string | undefined;
})

Source from the content-addressed store, hash-verified

9};
10
11export const getActiveTintColor = ({
12 activeColor,
13 defaultColor,
14 theme,
15}: BaseProps & {
16 activeColor: string | undefined;
17}) => {
18 if (typeof activeColor === 'string') {
19 return activeColor;
20 }
21
22 if (theme.isV3) {
23 return theme.colors.onSecondaryContainer;
24 }
25
26 return defaultColor;
27};
28
29export const getInactiveTintColor = ({
30 inactiveColor,

Callers 2

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