@@ -12,33 +12,34 @@ import ZocialGlyphMap from "react-native-vector-icons/glyphmaps/Zocial.json";
1212
1313import { Platform } from "react-native" ;
1414
15+
1516class RNVectorHelper {
1617 static Resolve ( family , name ) {
17- let glyph , fontFamily ;
18+ let glyph , fontFamily
1819
1920 switch ( family ) {
2021 case "Entypo" :
2122 glyph = EntypoGlyphMap [ name ] ;
2223 if ( typeof glyph === "number" ) {
2324 glyph = String . fromCharCode ( glyph ) ;
2425 }
25- fontFamily = "Entypo" ;
26+ fontFamily = "Entypo"
2627
2728 return { glyph : glyph , family : fontFamily } ;
2829 case "EvilIcons" :
2930 glyph = EvilIconsGlyphMap [ name ] ;
3031 if ( typeof glyph === "number" ) {
3132 glyph = String . fromCharCode ( glyph ) ;
3233 }
33- fontFamily = "EvilIcons" ;
34+ fontFamily = "EvilIcons"
3435
3536 return { glyph : glyph , family : fontFamily } ;
3637 case "Feather" :
3738 glyph = FeatherGlyphMap [ name ] ;
3839 if ( typeof glyph === "number" ) {
3940 glyph = String . fromCharCode ( glyph ) ;
4041 }
41- fontFamily = "Feather" ;
42+ fontFamily = "Feather"
4243
4344 return { glyph : glyph , family : fontFamily } ;
4445 case "FontAwesome" :
@@ -56,7 +57,7 @@ class RNVectorHelper {
5657 }
5758
5859 if ( Platform . OS === "ios" ) {
59- fontFamily = "fontcustom" ;
60+ fontFamily = "fontcustom"
6061 } else {
6162 fontFamily = "Foundation" ;
6263 }
@@ -67,7 +68,7 @@ class RNVectorHelper {
6768 if ( typeof glyph === "number" ) {
6869 glyph = String . fromCharCode ( glyph ) ;
6970 }
70- fontFamily = "Ionicons" ;
71+ fontFamily = "Ionicons"
7172
7273 return { glyph : glyph , family : fontFamily } ;
7374 case "MaterialCommunityIcons" :
@@ -77,7 +78,7 @@ class RNVectorHelper {
7778 }
7879
7980 if ( Platform . OS === "ios" ) {
80- fontFamily = "Material Design Icons" ;
81+ fontFamily = "Material Design Icons"
8182 } else {
8283 fontFamily = "MaterialCommunityIcons" ;
8384 }
@@ -90,7 +91,7 @@ class RNVectorHelper {
9091 }
9192
9293 if ( Platform . OS === "ios" ) {
93- fontFamily = "Material Icons" ;
94+ fontFamily = "Material Icons"
9495 } else {
9596 fontFamily = "MaterialIcons" ;
9697 }
@@ -110,10 +111,10 @@ class RNVectorHelper {
110111 glyph = String . fromCharCode ( glyph ) ;
111112 }
112113
113- if ( Platform . OS === " ios" ) {
114+ if ( Platform . OS === ' ios' ) {
114115 fontFamily = "simple-line-icons" ;
115116 } else {
116- fontFamily = "SimpleLineIcons" ;
117+ fontFamily = "SimpleLineIcons"
117118 }
118119
119120 return { glyph : glyph , family : fontFamily } ;
@@ -134,4 +135,4 @@ class RNVectorHelper {
134135 }
135136}
136137
137- export default RNVectorHelper ;
138+ export default RNVectorHelper ;
0 commit comments