{"id":13452098,"url":"https://github.com/entria/react-native-fontawesome","last_synced_at":"2025-12-24T22:14:11.362Z","repository":{"id":48551842,"uuid":"76130661","full_name":"entria/react-native-fontawesome","owner":"entria","description":"React Native Font Awesome Icons","archived":false,"fork":false,"pushed_at":"2021-07-20T18:56:37.000Z","size":1042,"stargazers_count":174,"open_issues_count":19,"forks_count":34,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-04-12T09:12:18.765Z","etag":null,"topics":["custom-fonts","fontawesome","icons","react-native"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/entria.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-10T18:40:13.000Z","updated_at":"2025-02-05T16:20:49.000Z","dependencies_parsed_at":"2022-09-26T19:52:46.827Z","dependency_job_id":null,"html_url":"https://github.com/entria/react-native-fontawesome","commit_stats":null,"previous_names":["rturk/react-native-fontawesome"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entria%2Freact-native-fontawesome","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entria%2Freact-native-fontawesome/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entria%2Freact-native-fontawesome/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entria%2Freact-native-fontawesome/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/entria","download_url":"https://codeload.github.com/entria/react-native-fontawesome/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248543847,"owners_count":21121838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["custom-fonts","fontawesome","icons","react-native"],"created_at":"2024-07-31T07:01:12.846Z","updated_at":"2025-12-24T22:14:06.320Z","avatar_url":"https://github.com/entria.png","language":"JavaScript","funding_links":[],"categories":["Setup","JavaScript"],"sub_categories":[],"readme":"# react-native-fontawesome\nReact Native Fontawesome Icons\n\n[![npm version](https://img.shields.io/npm/v/react-native-fontawesome.svg?style=flat-square)](https://www.npmjs.com/package/react-native-fontawesome)\n[![npm downloads](https://img.shields.io/npm/dm/react-native-fontawesome.svg?style=flat-square)](https://www.npmjs.com/package/react-native-fontawesome)\n\n# Benefits\n- No bloatware, one package with one iconset, nothing more nothing less\n- Full set of FontAwesome Icons properly updated\n- Insanely fast with minimal memory footprint\n- Uses the OS to render icons, for best in class performance (refer to performance note bellow)\n\n# Installation process\n\n## Using yarn\n`npm i -g yarn`\n\n`yarn add react-native-fontawesome`\n\n## Using npm\n`npm i --save react-native-fontawesome`\n\nThis module uses Font Awesome version 5.9.0. There is no need to link binaries just import the package and include the Font File in your project.\n\nThis package will not download Font Awesome for you. You have to manually download the font files ([Click here](https://github.com/entria/react-native-fontawesome/tree/master/sample/assets/fonts) to get the right files) and put it into your working folder.\n\nFollow this guides for adding FontAwesome.ttf to your projects:\n\n[Adding Custom Fonts to A React Native Application for IOS](https://medium.com/@dabit3/adding-custom-fonts-to-react-native-b266b41bff7f)\n\n[Custom Fonts in React Native for Android](https://medium.com/@gattermeier/custom-fonts-in-react-native-for-android-b8a331a7d2a7)\n\n\n# Usage\n```jsx\nimport FontAwesome, { SolidIcons, RegularIcons, BrandIcons } from 'react-native-fontawesome';\n\n...\nrender() {\n  return (\n    \u003cView\u003e\n        \u003cFontAwesome icon={SolidIcons.smile} /\u003e\n        \u003cFontAwesome icon={RegularIcons.smileWink} /\u003e\n        \u003cFontAwesome icon={BrandIcons.github} /\u003e\n    \u003c/View\u003e\n  );\n},\n```\n\n# Note on hyphens\nJavascript don't accept hyphens as valid object names hence all hyphens were removed and\nnames converted to camel case.\n\nExample: `th-large` becomes `thLarge`\n\nYou can parse the name if you want, like this:\n\n```jsx\nimport { parseIconName } from 'react-native-fontawesome';\n\nconst validIcon = parseIconFromClassName('fas fa-chevron-left') // will be parsed to chevronLeft\n\n// So anywhere you would have used Icons.chevronLeft (or some other icon name) \n// you can now just use the returned value directly (validIcon in this example).  \n// The function parseIconName internally returns an BrandIcons[parsedIconName] or SolidIcons[parsedIconName] or RegularIcons[parsedIconName] result.\n// So you can use like that:\n\n\u003cFontAwesome style={{fontSize: 32}} icon={validIcon}\u003e\n```\n\nYou can use that in some cases when you store the icon from web in you database and then you use dynamically in your mobile.\n\n# Styling\nYou can apply styles directly into the FontAwesome RN component by just passing a style as you do in a `\u003cText\u003e` component.\n\n```jsx\n\u003cFontAwesome style={{fontSize: 32}} icon={BrandIcons.github}\u003e\n```\n\n[Click here](https://github.com/entria/react-native-fontawesome/tree/master/sample/assets/fonts) to get the right font-files.\n\n# Warning!\n\nFont Awesome have some paid icons and the link above is for downloading the free icons set.\nSo if you choose some icon from our list, and this icon does not show properly, check\nif the icon that you choose is a paid one before open a issue. In this case, you must \nbuy the PRO icons set in the [Font Awesome's PRO](https://fontawesome.com/pro) website.\nIn case you are using a paid icon, and you are using a paid icon set that you already\nbough, you must pass a `pro` property to the icon, like this:\n\n```jsx\n\u003cFontAwesome icon={RegularIcons.exclamationTriangle} pro={true}\u003e\n```\n\n# Why this is fast, and uses almost no extra memory\nThis package uses the Text element to render Icons. The Text element delegates\nto the OS the render process of the icons based on the Font file.\nBoth IOS and Android render fonts amazingly fast with little memory overhead. In essence\nFontAwesome.ttf will be used by the OS to render icons and will benefit of years\nof native software improvement as well hardware acceleration.\n\n# Do you want to create a Custom Font with your Icons?\n\nTake a look on this https://github.com/entria/font-generator, it will generate a TTF font to be used much like this package\n\n# Sample project\n\nIn this repository you'll find a `sample/` folder that contains a working sample project, tested on both, Android and IOS. You can see [here](https://github.com/entria/react-native-fontawesome/tree/master/sample/) how to build and run the application","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fentria%2Freact-native-fontawesome","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fentria%2Freact-native-fontawesome","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fentria%2Freact-native-fontawesome/lists"}