({
activeColor,
defaultColor,
theme,
}: BaseProps & {
activeColor: string | undefined;
})
| 9 | }; |
| 10 | |
| 11 | export 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 | |
| 29 | export const getInactiveTintColor = ({ |
| 30 | inactiveColor, |
no outgoing calls
no test coverage detected
searching dependent graphs…