Pretty up code. Add all my default stuff that I like
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { SymbolView, SymbolViewProps, SymbolWeight } from 'expo-symbols';
|
||||
import { StyleProp, ViewStyle } from 'react-native';
|
||||
|
||||
export function IconSymbol({
|
||||
export const IconSymbol = ({
|
||||
name,
|
||||
size = 24,
|
||||
color,
|
||||
@@ -13,7 +13,7 @@ export function IconSymbol({
|
||||
color: string;
|
||||
style?: StyleProp<ViewStyle>;
|
||||
weight?: SymbolWeight;
|
||||
}) {
|
||||
}) => {
|
||||
return (
|
||||
<SymbolView
|
||||
weight={weight}
|
||||
@@ -29,4 +29,4 @@ export function IconSymbol({
|
||||
]}
|
||||
/>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user