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 559fe20
Show file tree
Hide file tree
Showing 9 changed files with 754 additions and 22 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;

51 changes: 32 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,37 @@ Perfect for buttons, logos and nav/tab bars. Easy to extend, style and integrate

## Table of Contents

- [Bundled Icon Sets](#bundled-icon-sets)
- [Installation](#installation)
- [iOS](#ios)
- [Android](#android)
- [OSX](#osx-via-react-native-desktop)
- [Windows](#windows-via-react-native-windows)
- [Web](#web-with-webpack)
- [Upgrading](#upgrading)
- [Icon Component](#icon-component)
- [Icon.Button Component](#iconbutton-component)
- [Usage as PNG image/source object](#usage-as-png-imagesource-object)
- [Usage with TabBarIOS](#usage-with-tabbarios)
- [Multi-style fonts](#multi-style-fonts)
- [Custom Fonts](#custom-fonts)
- [Animation](#animation)
- [Examples](#examples)
- [Generating your own icon set from a CSS file](#generating-your-own-icon-set-from-a-css-file)
- [Changelog](#changelog)
- [Troubleshooting](#troubleshooting)
- [License](#license)
- [Static methods](#static-methods-1)
- [Components](#components)
- [Custom Fonts](#custom-fonts)
- [`createIconSet(glyphMap, fontFamily[, fontFile])`](#createiconsetglyphmap-fontfamily-fontfile)
- [`createIconSetFromFontello(config[, fontFamily[, fontFile]])`](#createiconsetfromfontelloconfig-fontfamily-fontfile)
- [`createIconSetFromIcoMoon(config[, fontFamily[, fontFile]])`](#createiconsetfromicomoonconfig-fontfamily-fontfile)
- [`createMultiStyleIconSet(styles [, options])`](#createmultistyleiconsetstyles--options)
- [iOS](#ios-1)
- [Animation](#animation)
- [Examples](#examples)
- [IconExplorer](#iconexplorer)
- [Basic Example](#basic-example)
- [TabBarIOS](#tabbarios)
- [ToolbarAndroid](#toolbarandroid)
- [Inline Icons](#inline-icons)
- [Community examples](#community-examples)
- [Generating your own icon set from a CSS file](#generating-your-own-icon-set-from-a-css-file)
- [Example usage:](#example-usage)
- [Options](#options)
- [`-p`, `--prefix`](#-p---prefix)
- [`-t`, `--template`](#-t---template)
- [`-o`, `--output`](#-o---output)
- [Changelog](#changelog)
- [Troubleshooting](#troubleshooting)
- [The icons show up as a crossed out box on Android](#the-icons-show-up-as-a-crossed-out-box-on-android)
- [Red screen with "Unrecognized font family" error on iOS](#red-screen-with-unrecognized-font-family-error-on-ios)
- [Android build fails on Windows for no good reason](#android-build-fails-on-windows-for-no-good-reason)
- [Wrong icons are shown after upgrading this package](#wrong-icons-are-shown-after-upgrading-this-package)
- [Some icons are missing after upgrading this package](#some-icons-are-missing-after-upgrading-this-package)
- [License](#license)

## Sponsoring

Expand All @@ -48,6 +59,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 +98,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 559fe20

Please sign in to comment.