({
theme,
disabled,
value,
checkedColor,
}: BaseProps & { checkedColor: string })
| 37 | }; |
| 38 | |
| 39 | const getThumbTintColor = ({ |
| 40 | theme, |
| 41 | disabled, |
| 42 | value, |
| 43 | checkedColor, |
| 44 | }: BaseProps & { checkedColor: string }) => { |
| 45 | const isIOS = Platform.OS === 'ios'; |
| 46 | |
| 47 | if (isIOS) { |
| 48 | return undefined; |
| 49 | } |
| 50 | |
| 51 | if (disabled) { |
| 52 | if (theme.dark) { |
| 53 | return grey800; |
| 54 | } |
| 55 | return grey400; |
| 56 | } |
| 57 | |
| 58 | if (value) { |
| 59 | return checkedColor; |
| 60 | } |
| 61 | |
| 62 | if (theme.dark) { |
| 63 | return grey400; |
| 64 | } |
| 65 | return grey50; |
| 66 | }; |
| 67 | |
| 68 | const getOnTintColor = ({ |
| 69 | theme, |
no outgoing calls
no test coverage detected
searching dependent graphs…