Skip to content

Commit

Permalink
Added Entypo icon set.
Browse files Browse the repository at this point in the history
  • Loading branch information
oblador committed May 16, 2015
1 parent 33e3e99 commit 25656a7
Show file tree
Hide file tree
Showing 10 changed files with 451 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ logs
pids
*.pid
*.seed
tmp
.fontcustom-manifest.json

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
Expand Down
14 changes: 14 additions & 0 deletions Entypo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* Entypo icon set component.
* Usage: <Entypo name="icon-name" size={20} color="#4F8EF7" />
*
* @providesModule Entypo
*/
'use strict';

var createIconSet = require('./').createIconSet;
var glyphMap = require('./glyph-maps/Entypo.json');

var Entypo = createIconSet(glyphMap, 'Entypo');

module.exports = Entypo;
4 changes: 4 additions & 0 deletions Examples/IconExplorer/IconExplorer.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
5DAFCEA01B077B8A00012939 /* Ionicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 5DAFCE9B1B077B8A00012939 /* Ionicons.ttf */; };
5DAFCEA11B077B8A00012939 /* MaterialDesign.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 5DAFCE9C1B077B8A00012939 /* MaterialDesign.ttf */; };
5DAFCEA21B077B8A00012939 /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 5DAFCE9D1B077B8A00012939 /* Zocial.ttf */; };
5DAFCEB41B08016000012939 /* Entypo.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 5DAFCEB31B08016000012939 /* Entypo.ttf */; };
832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
/* End PBXBuildFile section */

Expand Down Expand Up @@ -144,6 +145,7 @@
5DAFCE9B1B077B8A00012939 /* Ionicons.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = Ionicons.ttf; sourceTree = "<group>"; };
5DAFCE9C1B077B8A00012939 /* MaterialDesign.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = MaterialDesign.ttf; sourceTree = "<group>"; };
5DAFCE9D1B077B8A00012939 /* Zocial.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = Zocial.ttf; sourceTree = "<group>"; };
5DAFCEB31B08016000012939 /* Entypo.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = Entypo.ttf; sourceTree = "<group>"; };
78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = "<group>"; };
832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand Down Expand Up @@ -283,6 +285,7 @@
5DAFCE981B077B8A00012939 /* Fonts */ = {
isa = PBXGroup;
children = (
5DAFCEB31B08016000012939 /* Entypo.ttf */,
5DAFCE991B077B8A00012939 /* FontAwesome.ttf */,
5DAFCE9A1B077B8A00012939 /* Foundation.ttf */,
5DAFCE9B1B077B8A00012939 /* Ionicons.ttf */,
Expand Down Expand Up @@ -566,6 +569,7 @@
5DAFCEA01B077B8A00012939 /* Ionicons.ttf in Resources */,
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */,
5DAFCEB41B08016000012939 /* Entypo.ttf in Resources */,
5DAFCE9E1B077B8A00012939 /* FontAwesome.ttf in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
5 changes: 5 additions & 0 deletions Examples/IconExplorer/IconSetList.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ var SocialButton = require('./SocialButton');
var Icon = require('react-native-vector-icons/FontAwesome');

var ICON_SETS = [
{
name: 'Entypo',
component: require('react-native-vector-icons/Entypo'),
glyphs: require('react-native-vector-icons/glyph-maps/Entypo.json')
},
{
name: 'FontAwesome',
component: require('react-native-vector-icons/FontAwesome'),
Expand Down
1 change: 1 addition & 0 deletions Examples/IconExplorer/iOS/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<dict>
<key>UIAppFonts</key>
<array>
<string>Entypo.ttf</string>
<string>FontAwesome.ttf</string>
<string>Foundation.ttf</string>
<string>Ionicons.ttf</string>
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Vector Icons for React Native

**Choose from 2322 icons or use your own.**
**Choose from 2733 icons or use your own.**

100% JavaScript == easy integrate into your project.

Expand All @@ -21,6 +21,7 @@ If you want to use any of the bundled icons, you need to add the icon fonts to y
## Usage
You can either use one of the bundled icons or roll your own custom font. Currently available options for bundled icon sets are:

* [`Entypo`](http://entypo.com) by Daniel Bruce (**411** icons)
* [`FontAwesome`](http://fortawesome.github.io/Font-Awesome/icons/) by Dave Gandy (v4.3, **519** icons)
* [`Foundation`](http://zurb.com/playground/foundation-icon-fonts-3) by ZURB, Inc. (v3.0, **283** icons)
* [`Ionicons`](http://ionicons.com/) by Ben Sperry (v2.0.1, **734** icons)
Expand Down
7 changes: 7 additions & 0 deletions build-sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,12 @@
"fontFile": "bower_components/foundation-icon-fonts/foundation-icons.ttf",
"fontFamily": "fontcustom",
"selectorPattern": "\\.fi-([a-z0-9-]+):before"
},
{
"componentName": "Entypo",
"cssFiles": "tmp/Entypo.css",
"fontFile": "tmp/Entypo.ttf",
"fontFamily": "Entypo",
"selectorPattern": "\\.icon-([a-z0-9-]+):before"
}
]
Binary file added fonts/Entypo.ttf
Binary file not shown.
Loading

0 comments on commit 25656a7

Please sign in to comment.