Skip to content

Commit

Permalink
feat: lucid icon
Browse files Browse the repository at this point in the history
  • Loading branch information
chanphiromsok committed Jan 15, 2025
1 parent bce85bf commit 6f48260
Show file tree
Hide file tree
Showing 15 changed files with 8,091 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/codemod/src/import-transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const imports: [string, string][] = [
['react-native-vector-icons/Ionicons', '@react-native-vector-icons/ionicons'],
['react-native-vector-icons/MaterialCommunityIcons', '@react-native-vector-icons/material-design-icons'],
['react-native-vector-icons/MaterialIcons', '@react-native-vector-icons/material-icons'],
['react-native-vector-icons/LucideIcons', '@react-native-vector-icons/lucide'],
['react-native-vector-icons/Octicons', '@react-native-vector-icons/octicons'],
['react-native-vector-icons/SimpleLineIcons', '@react-native-vector-icons/SimpleLineIcons'],
['react-native-vector-icons/Zocial', '@react-native-vector-icons/zocial'],
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 @@ -43,6 +43,7 @@
"@react-native-vector-icons/octicons": "workspace:^",
"@react-native-vector-icons/simple-line-icons": "workspace:^",
"@react-native-vector-icons/zocial": "workspace:^",
"@react-native-vector-icons/lucide": "workspace:^",
"react": "18.3.1",
"react-native": "0.76.5",
"react-native-animatable": "^1.4.0"
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 6f48260

Please sign in to comment.