Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed assets/images/check.png
Binary file not shown.
Binary file removed assets/images/chevron.png
Binary file not shown.
Binary file removed assets/images/close.png
Binary file not shown.
Binary file removed assets/images/search.png
Binary file not shown.
45 changes: 45 additions & 0 deletions components/Icons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import React from "react";
import AntDesign from "react-native-vector-icons/AntDesign";
import FontAwesome from "react-native-vector-icons/FontAwesome";
import FontAwesome5 from "react-native-vector-icons/FontAwesome5";
import Ionicons from "react-native-vector-icons/Ionicons";
import Feather from "react-native-vector-icons/Feather";
import MaterialCommunityIcons from "react-native-vector-icons/MaterialCommunityIcons";
import Entypo from "react-native-vector-icons/Entypo";
import MaterialIcons from "react-native-vector-icons/MaterialIcons";
import SimpleLineIcons from "react-native-vector-icons/SimpleLineIcons";
import Octicons from "react-native-vector-icons/Octicons";
import Foundation from "react-native-vector-icons/Foundation";
import Fontisto from "react-native-vector-icons/Fontisto";
export const Icons = {
MaterialCommunityIcons,
MaterialIcons,
Ionicons,
Feather,
FontAwesome,
FontAwesome5,
AntDesign,
Entypo,
SimpleLineIcons,
Octicons,
Foundation,
Fontisto,
};
const Icon = ({ type, name, color, size = 24, style, onPress }) => {
const fontSize = 24;
const Tag = type;
return (
<>
{type && name && (
<Tag
name={name}
size={size || fontSize}
color={color}
style={style}
onPress={onPress}
/>
)}
</>
);
};
export default Icon;
Loading