mirror of
https://github.com/zoriya/expo-vector-icons.git
synced 2026-06-03 18:41:05 +00:00
Updated all font files to use import instead of require
This commit is contained in:
+3
-2
@@ -1,4 +1,5 @@
|
||||
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/AntDesign.json';
|
||||
import createIconSet from './createIconSet';
|
||||
import font from './fonts/AntDesign.ttf';
|
||||
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/AntDesign.json';
|
||||
|
||||
export default createIconSet(glyphMap, 'anticon', require('./fonts/AntDesign.ttf'));
|
||||
export default createIconSet(glyphMap, 'anticon', font);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/Entypo.json';
|
||||
import createIconSet from './createIconSet';
|
||||
import font from './fonts/Entypo.ttf';
|
||||
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/Entypo.json';
|
||||
|
||||
export default createIconSet(glyphMap, 'entypo', require('./fonts/Entypo.ttf'));
|
||||
export default createIconSet(glyphMap, 'entypo', font);
|
||||
|
||||
+3
-2
@@ -1,4 +1,5 @@
|
||||
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/EvilIcons.json';
|
||||
import createIconSet from './createIconSet';
|
||||
import font from './fonts/EvilIcons.ttf';
|
||||
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/EvilIcons.json';
|
||||
|
||||
export default createIconSet(glyphMap, 'evilicons', require('./fonts/EvilIcons.ttf'));
|
||||
export default createIconSet(glyphMap, 'evilicons', font);
|
||||
|
||||
+3
-2
@@ -1,4 +1,5 @@
|
||||
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/Feather.json';
|
||||
import createIconSet from './createIconSet';
|
||||
import font from './fonts/Feather.ttf';
|
||||
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/Feather.json';
|
||||
|
||||
export default createIconSet(glyphMap, 'feather', require('./fonts/Feather.ttf'));
|
||||
export default createIconSet(glyphMap, 'feather', font);
|
||||
|
||||
+3
-2
@@ -1,4 +1,5 @@
|
||||
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/FontAwesome.json';
|
||||
import createIconSet from './createIconSet';
|
||||
import font from './fonts/FontAwesome.ttf';
|
||||
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/FontAwesome.json';
|
||||
|
||||
export default createIconSet(glyphMap, 'FontAwesome', require('./fonts/FontAwesome.ttf'));
|
||||
export default createIconSet(glyphMap, 'FontAwesome', font);
|
||||
|
||||
+3
-2
@@ -1,4 +1,5 @@
|
||||
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/Foundation.json';
|
||||
import createIconSet from './createIconSet';
|
||||
import font from './fonts/Foundation.ttf';
|
||||
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/Foundation.json';
|
||||
|
||||
export default createIconSet(glyphMap, 'foundation', require('./fonts/Foundation.ttf'));
|
||||
export default createIconSet(glyphMap, 'foundation', font);
|
||||
|
||||
+3
-2
@@ -1,4 +1,5 @@
|
||||
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/Ionicons.json';
|
||||
import createIconSet from './createIconSet';
|
||||
import font from './fonts/Ionicons.ttf';
|
||||
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/Ionicons.json';
|
||||
|
||||
export default createIconSet(glyphMap, 'ionicons', require('./fonts/Ionicons.ttf'));
|
||||
export default createIconSet(glyphMap, 'ionicons', font);
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/MaterialCommunityIcons.json';
|
||||
import createIconSet from './createIconSet';
|
||||
import font from './fonts/MaterialCommunityIcons.ttf';
|
||||
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/MaterialCommunityIcons.json';
|
||||
|
||||
export default createIconSet(
|
||||
glyphMap,
|
||||
'material-community',
|
||||
require('./fonts/MaterialCommunityIcons.ttf')
|
||||
);
|
||||
export default createIconSet(glyphMap, 'material-community', font);
|
||||
|
||||
+3
-2
@@ -1,4 +1,5 @@
|
||||
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/MaterialIcons.json';
|
||||
import createIconSet from './createIconSet';
|
||||
import font from './fonts/MaterialIcons.ttf';
|
||||
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/MaterialIcons.json';
|
||||
|
||||
export default createIconSet(glyphMap, 'material', require('./fonts/MaterialIcons.ttf'));
|
||||
export default createIconSet(glyphMap, 'material', font);
|
||||
|
||||
+3
-2
@@ -1,4 +1,5 @@
|
||||
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/Octicons.json';
|
||||
import createIconSet from './createIconSet';
|
||||
import font from './fonts/Octicons.ttf';
|
||||
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/Octicons.json';
|
||||
|
||||
export default createIconSet(glyphMap, 'octicons', require('./fonts/Octicons.ttf'));
|
||||
export default createIconSet(glyphMap, 'octicons', font);
|
||||
|
||||
+3
-2
@@ -1,4 +1,5 @@
|
||||
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/SimpleLineIcons.json';
|
||||
import createIconSet from './createIconSet';
|
||||
import font from './fonts/SimpleLineIcons.ttf';
|
||||
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/SimpleLineIcons.json';
|
||||
|
||||
export default createIconSet(glyphMap, 'simple-line-icons', require('./fonts/SimpleLineIcons.ttf'));
|
||||
export default createIconSet(glyphMap, 'simple-line-icons', font);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/Zocial.json';
|
||||
import createIconSet from './createIconSet';
|
||||
import font from './fonts/Zocial.ttf';
|
||||
import glyphMap from './vendor/react-native-vector-icons/glyphmaps/Zocial.json';
|
||||
|
||||
export default createIconSet(glyphMap, 'zocial', require('./fonts/Zocial.ttf'));
|
||||
export default createIconSet(glyphMap, 'zocial', font);
|
||||
|
||||
Reference in New Issue
Block a user