Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: lucide icon #1702

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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