mirror of
https://github.com/zoriya/expo-vector-icons.git
synced 2026-06-04 02:46:01 +00:00
Add babel-preset-exponent to alias rnvi to @exponent/vector-icons, update dependency to 3.0.0
fbshipit-source-id: a5f88cc
This commit is contained in:
committed by
Exponent GitHub Bot
parent
67cab6244c
commit
4be01257ae
@@ -1,4 +1,4 @@
|
||||
import { glyphMap } from 'react-native-vector-icons/Entypo';
|
||||
import glyphMap from 'react-native-vector-icons/glyphmaps/Entypo.json';
|
||||
import createIconSet from './createIconSet';
|
||||
|
||||
export default createIconSet(glyphMap, 'entypo', require('./fonts/Entypo.ttf'));
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { glyphMap } from 'react-native-vector-icons/EvilIcons';
|
||||
import glyphMap from 'react-native-vector-icons/glyphmaps/EvilIcons.json';
|
||||
import createIconSet from './createIconSet';
|
||||
|
||||
export default createIconSet(glyphMap, 'evilicons', require('./fonts/EvilIcons.ttf'));
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { glyphMap } from 'react-native-vector-icons/FontAwesome';
|
||||
import glyphMap from 'react-native-vector-icons/glyphmaps/FontAwesome.json';
|
||||
import createIconSet from './createIconSet';
|
||||
|
||||
export default createIconSet(glyphMap, 'awesome', require('./fonts/FontAwesome.ttf'));
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { glyphMap } from 'react-native-vector-icons/Foundation';
|
||||
import glyphMap from 'react-native-vector-icons/glyphmaps/Foundation.json';
|
||||
import createIconSet from './createIconSet';
|
||||
|
||||
export default createIconSet(glyphMap, 'foundation', require('./fonts/Foundation.ttf'));
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { glyphMap } from 'react-native-vector-icons/Ionicons';
|
||||
import glyphMap from 'react-native-vector-icons/glyphmaps/Foundation.json';
|
||||
import createIconSet from './createIconSet';
|
||||
|
||||
export default createIconSet(glyphMap, 'ionicons', require('./fonts/Ionicons.ttf'));
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { glyphMap } from 'react-native-vector-icons/MaterialIcons';
|
||||
import glyphMap from 'react-native-vector-icons/glyphmaps/MaterialIcons.json';
|
||||
import createIconSet from './createIconSet';
|
||||
|
||||
export default createIconSet(glyphMap, 'material', require('./fonts/MaterialIcons.ttf'));
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { glyphMap } from 'react-native-vector-icons/Octicons';
|
||||
import glyphMap from 'react-native-vector-icons/glyphmaps/Octicons.json';
|
||||
import createIconSet from './createIconSet';
|
||||
|
||||
export default createIconSet(glyphMap, 'octicons', require('./fonts/Octicons.ttf'));
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
import glyphMap from 'react-native-vector-icons/glyphmap/SimpleLineIcons.json';
|
||||
import createIconSet from './createIconSet';
|
||||
|
||||
export default createIconSet(glyphMap, 'simple-line-icons', require('./fonts/SimpleLineIcons.ttf');
|
||||
@@ -1,4 +1,4 @@
|
||||
import { glyphMap } from 'react-native-vector-icons/Zocial';
|
||||
import glyphMap from 'react-native-vector-icons/glyphmaps/Zocial.json';
|
||||
import createIconSet from './createIconSet';
|
||||
|
||||
export default createIconSet(glyphMap, 'zocial', require('./fonts/Zocial.ttf'));
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,7 +1,4 @@
|
||||
module.exports = {
|
||||
get createIconSet() { return require('./createIconSet').default; },
|
||||
get createIconSetFromIcoMoon() { return require('./createIconSetFromIcoMoon').default; },
|
||||
get createIconSetFromFontello() { return require('./createIconSetFromFontello').default; },
|
||||
get Entypo() { return require('./Entypo').default; },
|
||||
get EvilIcons() { return require('./EvilIcons').default; },
|
||||
get FontAwesome() { return require('./FontAwesome').default; },
|
||||
@@ -9,5 +6,9 @@ module.exports = {
|
||||
get Ionicons() { return require('./Ionicons').default; },
|
||||
get MaterialIcons() { return require('./MaterialIcons').default; },
|
||||
get Octicons() { return require('./Octicons').default; },
|
||||
get SimpleLineIcons() { return require('./SimpleLineIcons').default; },
|
||||
get Zocial() { return require('./Zocial').default; },
|
||||
get createIconSet() { return require('./createIconSet').default; },
|
||||
get createIconSetFromFontello() { return require('./createIconSetFromFontello').default; },
|
||||
get createIconSetFromIcoMoon() { return require('./createIconSetFromIcoMoon').default; },
|
||||
};
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@exponent/vector-icons",
|
||||
"version": "1.0.4",
|
||||
"version": "2.0.0",
|
||||
"description": "Built-in support for 8 popular icon fonts and the tooling to create your own Icon components from your font and glyph map. This is a wrapper around react-native-vector-icons to make it compatible with Exponent.",
|
||||
"main": "index.js",
|
||||
"scripts": {},
|
||||
@@ -18,7 +18,7 @@
|
||||
},
|
||||
"homepage": "https://exponentjs.github.io/vector-icons",
|
||||
"dependencies": {
|
||||
"react-native-vector-icons": "2.0.3"
|
||||
"react-native-vector-icons": "3.0.0"
|
||||
},
|
||||
"devDependencies": {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user