forked from search-future/miyou.tv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
icons.js
50 lines (47 loc) · 1.81 KB
/
icons.js
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
import AntDesign from "react-native-vector-icons/Fonts/AntDesign.ttf";
import Entypo from "react-native-vector-icons/Fonts/Entypo.ttf";
import EvilIcons from "react-native-vector-icons/Fonts/EvilIcons.ttf";
import Feather from "react-native-vector-icons/Fonts/Feather.ttf";
import FontAwesome from "react-native-vector-icons/Fonts/FontAwesome.ttf";
import FontAwesome5_Brands from "react-native-vector-icons/Fonts/FontAwesome5_Brands.ttf";
import FontAwesome5_Regular from "react-native-vector-icons/Fonts/FontAwesome5_Regular.ttf";
import FontAwesome5_Solid from "react-native-vector-icons/Fonts/FontAwesome5_Solid.ttf";
import Foundation from "react-native-vector-icons/Fonts/Foundation.ttf";
import Ionicons from "react-native-vector-icons/Fonts/Ionicons.ttf";
import MaterialCommunityIcons from "react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf";
import MaterialIcons from "react-native-vector-icons/Fonts/MaterialIcons.ttf";
import Octicons from "react-native-vector-icons/Fonts/Octicons.ttf";
import SimpleLineIcons from "react-native-vector-icons/Fonts/SimpleLineIcons.ttf";
import Zocial from "react-native-vector-icons/Fonts/Zocial.ttf";
const iconFonts = {
AntDesign,
Entypo,
EvilIcons,
Feather,
FontAwesome,
FontAwesome5_Brands,
FontAwesome5_Regular,
FontAwesome5_Solid,
Foundation,
Ionicons,
MaterialCommunityIcons,
MaterialIcons,
Octicons,
SimpleLineIcons,
Zocial
};
const iconFontStyles = [];
for (const name in iconFonts) {
iconFontStyles.push(`@font-face {
src: url(${iconFonts[name]});
font-family: ${name};
}`);
}
const style = document.createElement("style");
style.type = "text/css";
if (style.styleSheet) {
style.styleSheet.cssText = iconFontStyles.join("\n");
} else {
style.appendChild(document.createTextNode(iconFontStyles.join("\n")));
}
document.head.appendChild(style);