Skip to content

Commit

Permalink
Add LineAwesome
Browse files Browse the repository at this point in the history
  • Loading branch information
edeckers committed Jun 12, 2019
1 parent 10a0cdf commit bd2ba6a
Show file tree
Hide file tree
Showing 12 changed files with 735 additions and 4 deletions.
4 changes: 4 additions & 0 deletions Examples/IconExplorer/icon-sets.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import FontAwesome5 from 'react-native-vector-icons/FontAwesome5';
import Fontisto from 'react-native-vector-icons/Fontisto';
import Foundation from 'react-native-vector-icons/Foundation';
import Ionicons from 'react-native-vector-icons/Ionicons';
import LineAwesome from 'react-native-vector-icons/LineAwesome';
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
import Octicons from 'react-native-vector-icons/Octicons';
Expand All @@ -21,6 +22,7 @@ import FontAwesome5Glyphs from 'react-native-vector-icons/glyphmaps/FontAwesome5
import FontistoGlyphs from 'react-native-vector-icons/glyphmaps/Fontisto.json';
import FoundationGlyphs from 'react-native-vector-icons/glyphmaps/Foundation.json';
import IoniconsGlyphs from 'react-native-vector-icons/glyphmaps/Ionicons.json';
import LineAwesomeGlyphs from 'react-native-vector-icons/glyphmaps/LineAwesome.json';
import MaterialIconsGlyphs from 'react-native-vector-icons/glyphmaps/MaterialIcons.json';
import MaterialCommunityIconsGlyphs from 'react-native-vector-icons/glyphmaps/MaterialCommunityIcons.json';
import OcticonsGlyphs from 'react-native-vector-icons/glyphmaps/Octicons.json';
Expand All @@ -36,6 +38,7 @@ const GLYPH_MAPS = {
Fontisto: FontistoGlyphs,
Foundation: FoundationGlyphs,
Ionicons: IoniconsGlyphs,
LineAwesome: LineAwesomeGlyphs,
MaterialIcons: MaterialIconsGlyphs,
MaterialCommunityIcons: MaterialCommunityIconsGlyphs,
Octicons: OcticonsGlyphs,
Expand All @@ -52,6 +55,7 @@ const ICON_SETS = {
Fontisto,
Foundation,
Ionicons,
LineAwesome,
MaterialIcons,
MaterialCommunityIcons,
Octicons,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
CBA844E788A94FE09B489EA0 /* libRNGestureHandler-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1C6339FEB3854E21AF0EFA3D /* libRNGestureHandler-tvOS.a */; };
CB19680B6D5344FC8F82F65A /* libRNScreens.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 44267D59E0CC42D0B28E0E05 /* libRNScreens.a */; };
904ED0150CF84609AA9D1C35 /* Fontisto.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 12380EB443A64AE98DB93D71 /* Fontisto.ttf */; };
72BEA6DB62DB427E99C55C80 /* LineAwesome.ttf in Resources */ = {isa = PBXBuildFile; fileRef = CCDFEF599F784209B7A53B7B /* LineAwesome.ttf */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -391,6 +392,7 @@
6C7C710645F940E5A398B44F /* RNScreens.xcodeproj */ = {isa = PBXFileReference; name = "RNScreens.xcodeproj"; path = "../node_modules/react-native-screens/ios/RNScreens.xcodeproj"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; };
44267D59E0CC42D0B28E0E05 /* libRNScreens.a */ = {isa = PBXFileReference; name = "libRNScreens.a"; path = "libRNScreens.a"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; };
12380EB443A64AE98DB93D71 /* Fontisto.ttf */ = {isa = PBXFileReference; name = "Fontisto.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Fontisto.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
CCDFEF599F784209B7A53B7B /* LineAwesome.ttf */ = {isa = PBXFileReference; name = "LineAwesome.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/LineAwesome.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -683,6 +685,7 @@
FEC19F9B1D1643B8B5BE1840 /* SimpleLineIcons.ttf */,
4B725F5D9D004E4CA42577C0 /* Zocial.ttf */,
12380EB443A64AE98DB93D71 /* Fontisto.ttf */,
CCDFEF599F784209B7A53B7B /* LineAwesome.ttf */,
);
name = Resources;
sourceTree = "<group>";
Expand Down Expand Up @@ -1150,6 +1153,7 @@
C4F206ABB99C4ED289CD8A17 /* SimpleLineIcons.ttf in Resources */,
CF985114D66448D0AB8B4B5F /* Zocial.ttf in Resources */,
904ED0150CF84609AA9D1C35 /* Fontisto.ttf in Resources */,
72BEA6DB62DB427E99C55C80 /* LineAwesome.ttf in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
1 change: 1 addition & 0 deletions Examples/IconExplorer/ios/IconExplorer/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
<string>SimpleLineIcons.ttf</string>
<string>Zocial.ttf</string>
<string>Fontisto.ttf</string>
<string>LineAwesome.ttf</string>
</array>
</dict>
</plist>
Binary file added Fonts/LineAwesome.ttf
Binary file not shown.
18 changes: 18 additions & 0 deletions LineAwesome.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* LineAwesome icon set component.
* Usage: <LineAwesome name="icon-name" size={20} color="#4F8EF7" />
*/

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

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

export default iconSet;

export const Button = iconSet.Button;
export const TabBarItem = iconSet.TabBarItem;
export const TabBarItemIOS = iconSet.TabBarItemIOS;
export const ToolbarAndroid = iconSet.ToolbarAndroid;
export const getImageSource = iconSet.getImageSource;

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Perfect for buttons, logos and nav/tab bars. Easy to extend, style and integrate
- [`Fontisto`](https://github.com/kenangundogan/fontisto) by Kenan Gündoğan (v3.0.4, **615** icons)
- [`Foundation`](http://zurb.com/playground/foundation-icon-fonts-3) by ZURB, Inc. (v3.0, **283** icons)
- [`Ionicons`](https://ionicons.com/) by Ben Sperry (v4.2.4, **696** icons)
- [`LineAwesome`](https://icons8.com/line-awesome/) by Icons8 (v1.1, **654** icons)
- [`MaterialIcons`](https://www.google.com/design/icons/) by Google, Inc. (v3.0.1, **932** icons)
- [`MaterialCommunityIcons`](https://materialdesignicons.com/) by MaterialDesignIcons.com (v3.5.95, **3596** icons)
- [`Octicons`](http://octicons.github.com) by Github, Inc. (v8.4.1, **184** icons)
Expand Down Expand Up @@ -80,6 +81,7 @@ If you want to use any of the bundled icons, you need to add the icon fonts to y
<string>FontAwesome5_Solid.ttf</string>
<string>Foundation.ttf</string>
<string>Ionicons.ttf</string>
<string>LineAwesome.ttf</string>
<string>MaterialIcons.ttf</string>
<string>MaterialCommunityIcons.ttf</string>
<string>SimpleLineIcons.ttf</string>
Expand Down
5 changes: 5 additions & 0 deletions directory/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@
src: url('../../Fonts/Foundation.ttf') format('truetype');
}

@font-face {
font-family: 'LineAwesome';
src: url('../../Fonts/LineAwesome.ttf') format('truetype');
}

@font-face {
font-family: 'Ionicons';
src: url('../../Fonts/Ionicons.ttf') format('truetype');
Expand Down
2 changes: 2 additions & 0 deletions directory/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import FontAwesome5Meta from '../../glyphmaps/FontAwesome5Free_meta.json';
import Fontisto from '../../glyphmaps/Fontisto.json';
import Foundation from '../../glyphmaps/Foundation.json';
import Ionicons from '../../glyphmaps/Ionicons.json';
import LineAwesome from '../../glyphmaps/LineAwesome.json';
import MaterialCommunityIcons from '../../glyphmaps/MaterialCommunityIcons.json';
import MaterialIcons from '../../glyphmaps/MaterialIcons.json';
import Octicons from '../../glyphmaps/Octicons.json';
Expand All @@ -31,6 +32,7 @@ const IconFamilies = {
Fontisto,
Foundation,
Ionicons,
LineAwesome,
MaterialCommunityIcons,
MaterialIcons,
SimpleLineIcons,
Expand Down
Loading

0 comments on commit bd2ba6a

Please sign in to comment.