Repository navigation
Expand file tree
/
Copy pathVectorIconGenerator.js
More file actions
65 lines (63 loc) · 2.94 KB
/
Copy pathVectorIconGenerator.js
File metadata and controls
65 lines (63 loc) · 2.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import React from 'react';
import AntDesign from 'react-native-vector-icons/AntDesign';
import Entypo from 'react-native-vector-icons/Entypo';
import EvilIcons from 'react-native-vector-icons/EvilIcons';
import Ionicons from 'react-native-vector-icons/Ionicons';
import Feather from 'react-native-vector-icons/Feather';
import FontAwesome from 'react-native-vector-icons/FontAwesome';
import FontAwesome5 from 'react-native-vector-icons/FontAwesome5';
import Fontisto from 'react-native-vector-icons/Fontisto';
import Foundation from 'react-native-vector-icons/Foundation';
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
import Octicons from 'react-native-vector-icons/Octicons';
import Zocial from 'react-native-vector-icons/Zocial';
import SimpleLineIcons from 'react-native-vector-icons/SimpleLineIcons';
export const Icon = ({bundle="Ionicons", name="md-home", color='white', size=18, style={}}) => {
switch(bundle){
case 'AntDesign':
return <AntDesign name={name} size={size} color={color} style={style} />;
break;
case 'Entypo':
return <Entypo name={name} size={size} color={color} style={style} />;
break;
case 'EvilIcons':
return <EvilIcons name={name} size={size} color={color} style={style} />;
break;
case 'Ionicons':
return <Ionicons name={name} size={size} color={color} style={style} />;
break;
case 'Feather':
return <Feather name={name} size={size} color={color} style={style} />;
break;
case 'FontAwesome':
return <FontAwesome name={name} size={size} color={color} style={style} />;
break;
case 'FontAwesome5':
return <FontAwesome5 name={name} size={size} color={color} style={style} />;
break;
case 'Fontisto':
return <Fontisto name={name} size={size} color={color} style={style} />;
break;
case 'Foundation':
return <Foundation name={name} size={size} color={color} style={style} />;
break;
case 'MaterialIcons':
return <MaterialIcons name={name} size={size} color={color} style={style} />;
break;
case 'MaterialCommunityIcons':
return <MaterialCommunityIcons name={name} size={size} color={color} style={style} />;
break;
case 'Octicons':
return <Octicons name={name} size={size} color={color} style={style} />;
break;
case 'Zocial':
return <Zocial name={name} size={size} color={color} style={style} />;
break;
case 'SimpleLineIcons':
return <SimpleLineIcons name={name} size={size} color={color} style={style} />;
break;
default:
return <Ionicons name={name} size={size} color={color} style={style} />;
}
}