
Security News
Feross on TBPN: Socket's Series C and the State of Software Supply Chain Security
Feross Aboukhadijeh joins TBPN to discuss Socket's $60M Series C, 500%+ ARR growth, AI's impact on open source, and the rise in supply chain attacks.
@react-native-vector-icons/fontawesome5
Advanced tools
Fontawesome5 font for react native vector icons
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
| Type | Description |
|---|---|
| regular | Uses the Regular font |
| brand | Uses the Brands font |
| solid | Uses the Solid font |
No specified type indicates Regular font.
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 }),
);
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"]
}
}
Use the @react-native-vector-icons/fontawesome5-pro package instead.
FAQs
Fontawesome5 font for react native vector icons
The npm package @react-native-vector-icons/fontawesome5 receives a total of 5,465 weekly downloads. As such, @react-native-vector-icons/fontawesome5 popularity was classified as popular.
We found that @react-native-vector-icons/fontawesome5 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

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.

Security News
Feross Aboukhadijeh joins TBPN to discuss Socket's $60M Series C, 500%+ ARR growth, AI's impact on open source, and the rise in supply chain attacks.

Security News
OSV withdrew 157 OSV malware reports after automated false positives incorrectly flagged trusted npm and PyPI packages, sending bad records into tools that rely on OSV data.

Research
/Security News
TrapDoor crypto stealer hits 36 malicious packages across npm, PyPI, and Crates.io, targeting crypto, DeFi, AI, and security developers.