Various fixes
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user