Coder Social home page Coder Social logo

nativescript-fontawesome's Introduction

Nativescript FontAwesome

A simpler way to use FontAwesome icons with NativeScript

Install

tns plugin add nativescript-fontawesome

click here to Download fontawesome-webfont.ttf or download from fontawesome website

  • Place font icon .ttf file in app/fonts, like below:
app/fonts/fontawesome-webfont.ttf
  • call the init function in the you'r app.ts:
import { Fontawesome } from 'nativescript-fontawesome';
Fontawesome.init();

Usage

<Label class="fa" text="{{'fa-bluetooth' | fontawesome }}"></Label> 

Credits

nativescript-fonticon

nativescript-fontawesome's People

Contributors

moayadnajd avatar

Stargazers

Idrees Khan avatar Ehab Ashour avatar Miles avatar Adrian Massey avatar Jeremiah Ogbomo avatar  avatar Shiva Persad avatar

Watchers

James Cloos avatar  avatar

Forkers

ukik juniorschen

nativescript-fontawesome's Issues

Some icons not showing

Some font-awesome icons are not showing. I have tried the tns platform remove android and tns platform add android still no luck.

Nativescript 4.1.2

Angular Support?

Do you have any plans to make a similar version for nativescript-angular? I really like the idea of bootstrapping it at the main/app level instead of in every module and submodule like nativescript-ngx-fonticon

Thanks!

Getting an error

I created an blank nativescript angular project, followed the directions in the README, and I get the following error: "The pipe 'fontawesome' could not be found".

I experimented with Fontawesome.init() in several places but it seems to have no effect.

Please advise.

icon with test

when i try this

<Button text="{{'fa-sign-in' | fontawesome}} Sign In" class="fa btn btn-primary btn-md" tap="signIn" />

it just renders it all as text. If i remove the "Sign In" it works as expected

Update tns-core-modules

Hello,

Maybe an update is needed for tns-core-modules I use tns-core-modules: ^4.2.0 and I get npm warning :

npm WARN [email protected] requires a peer of tns-core-modules@^3.0.0 but none is installed. You must install peer dependencies yourself.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.