diff options
| author | jciespuertodelacruz <jc.iespuertodelacruz@gmx.es> | 2026-01-20 08:49:52 +0000 |
|---|---|---|
| committer | jciespuertodelacruz <jc.iespuertodelacruz@gmx.es> | 2026-01-20 08:49:52 +0000 |
| commit | c6f2b6f85d151d6d2a2cc68eb05edd7a1e448106 (patch) | |
| tree | 1080219bee426d5d1372da6c31f138482c1544d7 /components/ui/icon-symbol.ios.tsx | |
Initial commit
Generated by create-expo-app 3.5.3.
Diffstat (limited to 'components/ui/icon-symbol.ios.tsx')
| -rw-r--r-- | components/ui/icon-symbol.ios.tsx | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/components/ui/icon-symbol.ios.tsx b/components/ui/icon-symbol.ios.tsx new file mode 100644 index 0000000..9177f4d --- /dev/null +++ b/components/ui/icon-symbol.ios.tsx @@ -0,0 +1,32 @@ +import { SymbolView, SymbolViewProps, SymbolWeight } from 'expo-symbols'; +import { StyleProp, ViewStyle } from 'react-native'; + +export function IconSymbol({ + name, + size = 24, + color, + style, + weight = 'regular', +}: { + name: SymbolViewProps['name']; + size?: number; + color: string; + style?: StyleProp<ViewStyle>; + weight?: SymbolWeight; +}) { + return ( + <SymbolView + weight={weight} + tintColor={color} + resizeMode="scaleAspectFit" + name={name} + style={[ + { + width: size, + height: size, + }, + style, + ]} + /> + ); +} |