Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added MingCute icons #1663

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Examples/IconExplorer/src/icon-sets.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityI
import Octicons from 'react-native-vector-icons/Octicons';
import SimpleLineIcons from 'react-native-vector-icons/SimpleLineIcons';
import Zocial from 'react-native-vector-icons/Zocial';
import MingCute from 'react-native-vector-icons/MingCute';
import AntDGlyphs from 'react-native-vector-icons/glyphmaps/AntDesign.json';
import EntypoGlyphs from 'react-native-vector-icons/glyphmaps/Entypo.json';
import EvilIconsGlyphs from 'react-native-vector-icons/glyphmaps/EvilIcons.json';
Expand All @@ -27,6 +28,7 @@ import MaterialCommunityIconsGlyphs from 'react-native-vector-icons/glyphmaps/Ma
import OcticonsGlyphs from 'react-native-vector-icons/glyphmaps/Octicons.json';
import SimpleLineIconsGlyphs from 'react-native-vector-icons/glyphmaps/SimpleLineIcons.json';
import ZocialGlyphs from 'react-native-vector-icons/glyphmaps/Zocial.json';
import MingCuteGlyphs from 'react-native-vector-icons/glyphmaps/MingCute.json';

const GLYPH_MAPS = {
AntD: AntDGlyphs,
Expand All @@ -43,6 +45,7 @@ const GLYPH_MAPS = {
Octicons: OcticonsGlyphs,
SimpleLineIcons: SimpleLineIconsGlyphs,
Zocial: ZocialGlyphs,
MingCute: MingCuteGlyphs,
};

const ICON_SETS = {
Expand All @@ -60,6 +63,7 @@ const ICON_SETS = {
Octicons,
SimpleLineIcons,
Zocial,
MingCute,
};

const groupGlyphNames = glyphMap =>
Expand Down
Binary file added Fonts/MingCute.ttf
Binary file not shown.
17 changes: 17 additions & 0 deletions MingCute.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* MingCute icon set component.
* Usage: <MingCute name="icon-name" size={20} color="#4F8EF7" />
*/

import createIconSet from './lib/create-icon-set';
import glyphMap from './glyphmaps/MingCute.json';

const iconSet = createIconSet(glyphMap, 'MingCute', 'MingCute.ttf');

export default iconSet;
export const {
Button,
getImageSource,
getImageSourceSync,
} = iconSet;

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Should you find this library beneficial, kindly contemplate the option of [spons
- [`Octicons`](http://octicons.github.com) designed by Github, Inc. (v16.3.1 with *250* icons)
- [`Zocial`](http://zocial.smcllns.com/) by Sam Collins (v1.4.0 with *100* icons)
- [`SimpleLineIcons`](https://simplelineicons.github.io/) crafted by Sabbir & Contributors (v2.5.5 with *189* icons)
- [`MingCute`](https://github.com/Richard9394/MingCute/) crafted by Richard9394 & Contributors (v2.9.5 with *~3000* icons)

## Installation

Expand Down Expand Up @@ -98,6 +99,7 @@ To use the bundled icons on iOS, perform the following step:
<string>Octicons.ttf</string>
<string>Zocial.ttf</string>
<string>Fontisto.ttf</string>
<string>MingCute.ttf</string>
</array>
```

Expand Down
Loading