Zipline-Android-App/components/ui/IconSymbol.ios.tsx
Stef-00012 40b7eabefe
Initial commit
Generated by create-expo-app 3.2.0.
2025-01-20 17:43:11 +01:00

32 lines
598 B
TypeScript

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,
]}
/>
);
}