diff options
Diffstat (limited to 'src/screens/Settings/AppIconSettings/AppIconImage.tsx')
-rw-r--r-- | src/screens/Settings/AppIconSettings/AppIconImage.tsx | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/screens/Settings/AppIconSettings/AppIconImage.tsx b/src/screens/Settings/AppIconSettings/AppIconImage.tsx new file mode 100644 index 000000000..e81d5d0d5 --- /dev/null +++ b/src/screens/Settings/AppIconSettings/AppIconImage.tsx @@ -0,0 +1,33 @@ +import {Image} from 'expo-image' + +import {AppIconSet} from '#/screens/Settings/AppIconSettings/types' +import {atoms as a, platform, useTheme} from '#/alf' + +export function AppIconImage({ + icon, + size = 50, +}: { + icon: AppIconSet + size: number +}) { + const t = useTheme() + return ( + <Image + source={platform({ + ios: icon.iosImage(), + android: icon.androidImage(), + })} + style={[ + {width: size, height: size}, + platform({ + ios: {borderRadius: size / 5}, + android: a.rounded_full, + }), + a.curve_continuous, + t.atoms.border_contrast_medium, + a.border, + ]} + accessibilityIgnoresInvertColors + /> + ) +} |