({
activeColor,
customSelectionColor,
}: {
activeColor: string;
customSelectionColor?: string;
})
| 387 | }; |
| 388 | |
| 389 | const getSelectionColor = ({ |
| 390 | activeColor, |
| 391 | customSelectionColor, |
| 392 | }: { |
| 393 | activeColor: string; |
| 394 | customSelectionColor?: string; |
| 395 | }) => { |
| 396 | if (typeof customSelectionColor !== 'undefined') { |
| 397 | return customSelectionColor; |
| 398 | } |
| 399 | |
| 400 | if (Platform.OS === 'android') { |
| 401 | return color(activeColor).alpha(0.54).rgb().string(); |
| 402 | } |
| 403 | |
| 404 | return activeColor; |
| 405 | }; |
| 406 | |
| 407 | const getFlatBackgroundColor = ({ theme, disabled }: BaseProps) => { |
| 408 | if (theme.isV3) { |
no outgoing calls
no test coverage detected
searching dependent graphs…