Various fixes

This commit is contained in:
Martin Bauer
2021-07-22 18:39:02 +02:00
parent 0bb0e2f121
commit a307e2a4ea
10 changed files with 19971 additions and 53 deletions

View File

@@ -5,14 +5,14 @@ import AntDesignIcon from "react-native-vector-icons/AntDesign";
import Fa5Icon from "react-native-vector-icons/FontAwesome5";
const IconCard = props => {
let iconClass;
let IconClass;
if (props.iconType === "AntDesign") {
iconClass = AntDesignIcon;
IconClass = AntDesignIcon;
}
else if (props.iconType === "FontAwesome5") {
iconClass = Fa5Icon;
IconClass = Fa5Icon;
} else if (props.iconType === "Entypo") {
iconClass = EntypoIcon;
IconClass = EntypoIcon;
}
return (
@@ -22,7 +22,7 @@ const IconCard = props => {
<Text style={{ color: 'white', fontSize: props.fontSize, textAlign: "center" }}> {props.value}</Text>
</View>
<View style={{ alignItems: 'center', justifyContent: 'center', paddingLeft: 20 }}>
<iconClass style={{ color: 'white', fontSize: 40 }} name={props.iconName} />
<IconClass style={{ color: 'white', fontSize: 40 }} name={props.iconName} />
<Text style={{ color: 'white', marginTop: 5 }}> {props.label}</Text>
</View>
</View>