Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@react-native-vector-icons/fontawesome5

Package Overview
Dependencies
Maintainers
2
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-native-vector-icons/fontawesome5

Fontawesome5 font for react native vector icons

latest
Source
npmnpm
Version
13.1.2
Version published
Weekly downloads
5.6K
-31.01%
Maintainers
2
Weekly downloads
 
Created
Source

FontAwesome 5

Table of Content

Usage

Using the standard icons works just like the standard icons in this library.

import { FontAwesome5 } from "@react-native-vector-icons/fontawesome5/static";
// or with dynamic font loading (see the Expo setup guide for details)
import { FontAwesome5 } from "@react-native-vector-icons/fontawesome5";

const icon = <FontAwesome5 name="comments" />;

Something special about the FontAwesome5 class is that you can also pass props to change the style of the icon:

import { FontAwesome5 } from "@react-native-vector-icons/fontawesome5";

const icon = <FontAwesome5 name="comments" iconStyle="solid" />;
const icon = <FontAwesome5 name="git" iconStyle="brand" />;

Valid types

TypeDescription
regularUses the Regular font
brandUses the Brands font
solidUses the Solid font

No specified type indicates Regular font.

getImageSource

getImageSource works a little different due to its native backend and how the font is separated into different files. An extra argument to specify the font style is required.

Use this to select which style the generated image should have:

import { FontAwesome5 } from "@react-native-vector-icons/fontawesome5";

FontAwesome5.getImageSource("solid", "comments", 30, "#000").then((source) =>
  this.setState({ image: source }),
);

Expo Config Plugin

This package ships an Expo config plugin. Add it to the plugins array in your app.json or app.config.js if you use static imports:

{
  "expo": {
    "plugins": ["@react-native-vector-icons/fontawesome5"]
  }
}

Upgrading to Pro

Use the @react-native-vector-icons/fontawesome5-pro package instead.

Keywords

react-native

FAQs

Package last updated on 24 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts