Skip to content

Commit

Permalink
Add LineAwesome
Browse files Browse the repository at this point in the history
  • Loading branch information
edeckers committed Jul 18, 2020
1 parent bee9bdd commit a8a4062
Show file tree
Hide file tree
Showing 9 changed files with 724 additions and 3 deletions.
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>
4 changes: 4 additions & 0 deletions Examples/IconExplorer/src/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
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 @@ -48,6 +48,7 @@ If you find the library useful, please consider [sponsoring](https://github.com/
- [`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 Iconic Framework (v5.0.1, **1227** 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 (v5.3.45, **5346** icons)
- [`Octicons`](http://octicons.github.com) by Github, Inc. (v8.4.1, **184** icons)
Expand Down Expand Up @@ -86,6 +87,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
Loading

0 comments on commit a8a4062

Please sign in to comment.