(name: Route, props: Record<string, unknown>)
| 2 | import type { Route } from '../../constants/routes'; |
| 3 | |
| 4 | export const getIcon = (name: Route, props: Record<string, unknown>) => { |
| 5 | const { color, size = 25 } = props; |
| 6 | |
| 7 | return ( |
| 8 | <View style={{ height: size as number, width: size as number }}> |
| 9 | <Image |
| 10 | source={{ width: size as number, height: size as number, uri: name }} |
| 11 | tintColor={color as string} |
| 12 | resizeMode="contain" |
| 13 | style={{ |
| 14 | width: size as number, |
| 15 | height: size as number, |
| 16 | }} |
| 17 | fadeDuration={0} |
| 18 | height={size as number} |
| 19 | width={size as number} |
| 20 | resizeMethod="scale" |
| 21 | /> |
| 22 | </View> |
| 23 | ); |
| 24 | }; |
no outgoing calls
no test coverage detected
searching dependent graphs…