Skip to content

Commit

Permalink
feat: add lucide icon (#1702)
Browse files Browse the repository at this point in the history
  • Loading branch information
chanphiromsok authored Feb 2, 2025
1 parent 47aba62 commit 9787881
Show file tree
Hide file tree
Showing 16 changed files with 8,093 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .knip.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@
"packages/ionicons": {
"ignoreDependencies": ["ionicons"]
},
"packages/lucide": {
"ignoreDependencies": ["lucide-static"]
},
"packages/material-design-icons": {
"ignoreDependencies": ["@mdi/font"]
},
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ RNVI comes with the following supported icons. You can [search NPM](https://www.
- [`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.14.0 with _332_ icons)
- [`Lucide`](https://lucide.dev/) designed by Lucide, (v0.473.0 with _1548_ icons)

### No longer maintained upstream

Expand Down
1 change: 1 addition & 0 deletions packages/icon-explorer/configPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ module.exports = (config) =>
'Zocial.ttf',
'fontello.ttf',
'icomoon.ttf',
'Lucide.ttf',
];

fonts.forEach((font) => c.ios.infoPlist.UIAppFonts.push(font));
Expand Down
1 change: 1 addition & 0 deletions packages/icon-explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"@react-native-vector-icons/foundation": "workspace:^",
"@react-native-vector-icons/icomoon": "workspace:^",
"@react-native-vector-icons/ionicons": "workspace:^",
"@react-native-vector-icons/lucide": "workspace:^",
"@react-native-vector-icons/material-design-icons": "workspace:^",
"@react-native-vector-icons/material-icons": "workspace:^",
"@react-native-vector-icons/octicons": "workspace:^",
Expand Down
4 changes: 4 additions & 0 deletions packages/icon-explorer/src/icon-sets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import FontAwesome6Pro from '@react-native-vector-icons/fontawesome6-pro';
import Fontisto from '@react-native-vector-icons/fontisto';
import Foundation from '@react-native-vector-icons/foundation';
import Ionicons from '@react-native-vector-icons/ionicons';
import Lucide from '@react-native-vector-icons/lucide';
import MaterialDesignIcons from '@react-native-vector-icons/material-design-icons';
import MaterialIcons from '@react-native-vector-icons/material-icons';
import Octicons from '@react-native-vector-icons/octicons';
Expand Down Expand Up @@ -52,6 +53,8 @@ import FoundationGlyphs from '@react-native-vector-icons/foundation/glyphmaps/Fo
// @ts-expect-error: We don't really want to export this
import IoniconsGlyphs from '@react-native-vector-icons/ionicons/glyphmaps/Ionicons.json';
// @ts-expect-error: We don't really want to export this
import LucideGlyphs from '@react-native-vector-icons/lucide/glyphmaps/Lucide.json';
// @ts-expect-error: We don't really want to export this
import MaterialDesignIconsGlyphs from '@react-native-vector-icons/material-design-icons/glyphmaps/MaterialDesignIcons.json';
// @ts-expect-error: We don't really want to export this
import MaterialIconsGlyphs from '@react-native-vector-icons/material-icons/glyphmaps/MaterialIcons.json';
Expand Down Expand Up @@ -110,6 +113,7 @@ const iconSets = {
meta: FontAwesome6ProMeta,
},
Fontello: { component: Fontello, glyphNames: groupGlyphNames(FontelloGlyphs), meta: undefined },
Lucide: { component: Lucide, glyphNames: groupGlyphNames(LucideGlyphs), meta: undefined },
Fontisto: { component: Fontisto, glyphNames: groupGlyphNames(FontistoGlyphs), meta: undefined },
Foundation: { component: Foundation, glyphNames: groupGlyphNames(FoundationGlyphs), meta: undefined },
IcoMoon: { component: IcoMoon, glyphNames: groupGlyphNames(IcoMoonGlyphs), meta: undefined },
Expand Down
Loading

0 comments on commit 9787881

Please # to comment.