Skip to content

Commit

Permalink
fix: upgrade fontawesome6 to 6.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
johnf committed Jan 1, 2025
1 parent 031fc43 commit 64e7f56
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 16 deletions.
24 changes: 16 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,17 @@ Should you find this library beneficial, kindly contemplate the option of
RNVI comes with the following supported icons. You can [search NPM](https://www.npmjs.com/search?q=keywords%3Areact-native-vector-icons-icon) for third party icons.

### Actively maintained

- [`AntDesign`](https://ant.design/components/icon) from Ant Group (v4.4.2 with _449_ icons)
- [`Feather`](http://feathericons.com) created by Cole Bemis & Contributors (v4.29.2 featuring _287_ icons)
- [`FontAwesome 6`](https://fontawesome.com/search) designed by Fonticons, Inc. (v6.7.1 featuring _2060_ free and _52663_ pro icons)
- [`FontAwesome 6`](https://fontawesome.com/search) designed by Fonticons, Inc. (v6.7.2 featuring _2060_ free and _52663_ pro icons)
- [`Foundation`](http://zurb.com/playground/foundation-icon-fonts-3) by ZURB, Inc. (v3.0 with _283_ icons)
- [`Ionicons`](https://ionic.io/ionicons) crafted by Ionic (v7.4.0 containing _1356_ icons)
- [`MaterialDesignIcons`](https://pictogrammers.com/library/mdi/) from MaterialDesignIcons.com (v7.4.47 including _7448_ icons)
- [`Octicons`](https://primer.style/foundations/icons) designed by GitHub, Inc. (v19.12.0 with _331_ icons)

### No longer maintained upstream

- [`Entypo`](http://entypo.com) by Daniel Bruce (v1.0.1 with _411_ icons)
- [`EvilIcons`](http://evil-icons.io) designed by Alexander Madyankin & Roman Shamin (v1.10.1 with _70_ icons)
- [`FontAwesome`](https://fontawesome.com/v4/icons) by Fonticons, Inc. (v4.7.0 containing _785_ icons)
Expand All @@ -67,21 +69,26 @@ See [MIGRATION.md](MIGRATION.md) if you are migrating from `react-native-vector-
## Installation

1. Install the common package

```sh
npm install --save @react-native-vector-icons/common
```

2. Install the packages for the icons you want use

```sh
npm install --save @react-native-vector-icons/fontawesome6 @react-native-vector-icons/evil-icons
```

3. Depending on the platform you're targeting (iOS/Android/Windows), follow the appropriate setup instructions below.
4. If you are using one of the following fonts refer to their guides for further instructions
* [FontAwesome 6](packages/fontawesome6/README.md)
* [FontAwesome 6 Pro](packages/fontawesome6-pro/README.md)
* [FontAwesome 5](packages/fontawesome5/README.md)
* [FontAwesome 5 Pro](packages/fontawesome5-pro/README.md)
* [Fontello](packages/fontello/README.md)
* [Icomoon](packages/icomoon/README.md)

- [FontAwesome 6](packages/fontawesome6/README.md)
- [FontAwesome 6 Pro](packages/fontawesome6-pro/README.md)
- [FontAwesome 5](packages/fontawesome5/README.md)
- [FontAwesome 5 Pro](packages/fontawesome5-pro/README.md)
- [Fontello](packages/fontello/README.md)
- [Icomoon](packages/icomoon/README.md)

## Setup

Expand Down Expand Up @@ -192,6 +199,7 @@ const Icon = createIconSet(glyphMap, {
```

You should place the font ttf file into `rnvi-fonts`. You can customise this location by adding the following snippet to your package.json

```json
{
"reactNativeVectorIcons": {
Expand Down Expand Up @@ -219,7 +227,7 @@ Dynamic loading in react-native-vector-icons is currently limited to those fonts

By default, dynamic loading is enabled if supported by the version of Expo that you're using. It doesn't change the way you work with the package: If rendering an icon requires a font that is not known to the app, it will be loaded automatically and icon will render as expected.

`@react-native-vector-icons/common` exports several functions which you can use to control dynamic loading:
`@react-native-vector-icons/common` exports several functions which you can use to control dynamic loading:

- `isDynamicLoadingEnabled`: Returns whether dynamic loading is enabled.
- `isDynamicLoadingSupported`: Returns whether dynamic loading is supported by your runtime (checks that necessary Expo features are present).
Expand Down
2 changes: 1 addition & 1 deletion packages/fontawesome6-pro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-native-vector-icons/fontawesome6-pro",
"version": "6.7.1",
"version": "6.7.2",
"description": "Fontawesome6 Pro font for react native vector icons",
"source": "./src/index.tsx",
"main": "./lib/commonjs/index.js",
Expand Down
Binary file modified packages/fontawesome6/fonts/FontAwesome6_Brands.ttf
Binary file not shown.
Binary file modified packages/fontawesome6/fonts/FontAwesome6_Regular.ttf
Binary file not shown.
Binary file modified packages/fontawesome6/fonts/FontAwesome6_Solid.ttf
Binary file not shown.
4 changes: 2 additions & 2 deletions packages/fontawesome6/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-native-vector-icons/fontawesome6",
"version": "6.7.1",
"version": "6.7.2",
"description": "Fontawesome6 font for react native vector icons",
"source": "./src/index.tsx",
"main": "./lib/commonjs/index.js",
Expand Down Expand Up @@ -84,7 +84,7 @@
"@react-native-vector-icons/common": "^11.0.0"
},
"devDependencies": {
"@fortawesome/fontawesome-free": "6.7.1",
"@fortawesome/fontawesome-free": "6.7.2",
"del-cli": "^6.0.0",
"onchange": "^7.1.0",
"react-native-builder-bob": "^0.35.2",
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2332,10 +2332,10 @@ __metadata:
languageName: node
linkType: hard

"@fortawesome/fontawesome-free@npm:6.7.1":
version: 6.7.1
resolution: "@fortawesome/fontawesome-free@npm:6.7.1"
checksum: 10c0/5bebf5f9684fc377fb7df36cf7ee37e112a8987e592228ac464b81edc0eb002e1fa8675977b82d15d304cda813da4fafbc38cf0c3ca2744c710390a58a460495
"@fortawesome/fontawesome-free@npm:6.7.2":
version: 6.7.2
resolution: "@fortawesome/fontawesome-free@npm:6.7.2"
checksum: 10c0/e27fb8b846f0bcf40c904acc210829a640329fc7b7ec4e42a7c43cb53739ed6052d78df90810f555a5c80bc608fee5a5174db3fa6da617f582d6210009a19278
languageName: node
linkType: hard

Expand Down Expand Up @@ -4463,7 +4463,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@react-native-vector-icons/fontawesome6@workspace:packages/fontawesome6"
dependencies:
"@fortawesome/fontawesome-free": "npm:6.7.1"
"@fortawesome/fontawesome-free": "npm:6.7.2"
"@react-native-vector-icons/common": "npm:^11.0.0"
del-cli: "npm:^6.0.0"
onchange: "npm:^7.1.0"
Expand Down

0 comments on commit 64e7f56

Please sign in to comment.