({
theme,
disabled,
value,
color,
}: BaseProps & { color?: string })
| 98 | }; |
| 99 | |
| 100 | export const getSwitchColor = ({ |
| 101 | theme, |
| 102 | disabled, |
| 103 | value, |
| 104 | color, |
| 105 | }: BaseProps & { color?: string }) => { |
| 106 | const checkedColor = getCheckedColor({ theme, color }); |
| 107 | |
| 108 | return { |
| 109 | onTintColor: getOnTintColor({ theme, disabled, value, checkedColor }), |
| 110 | thumbTintColor: getThumbTintColor({ theme, disabled, value, checkedColor }), |
| 111 | checkedColor, |
| 112 | }; |
| 113 | }; |
no test coverage detected
searching dependent graphs…