From 54a4b784d771ebc6ec1f2860f438596edcd7f038 Mon Sep 17 00:00:00 2001 From: Vojtech Novak Date: Mon, 23 Feb 2026 08:42:32 +0100 Subject: [PATCH] fix: return icon set instead of style string in getIconSetForProps fallback --- .github/workflows/ci.yml | 2 +- src/AntDesign.ts | 2 +- src/Entypo.ts | 2 +- src/EvilIcons.ts | 2 +- src/Feather.ts | 2 +- src/FontAwesome.ts | 2 +- src/FontAwesome5.ts | 2 +- src/FontAwesome6.ts | 2 +- src/Fontisto.ts | 2 +- src/Foundation.ts | 2 +- src/Icons.ts | 2 +- src/Ionicons.ts | 2 +- src/MaterialCommunityIcons.ts | 2 +- src/MaterialIcons.ts | 2 +- src/Octicons.ts | 2 +- src/SimpleLineIcons.ts | 2 +- src/Zocial.ts | 2 +- src/createMultiStyleIconSet.ts | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d2894605..13411365 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,4 +15,4 @@ jobs: with: cache: yarn - run: yarn install --frozen-lockfile - - run: yarn lint + - run: yarn lint --max-warnings 0 diff --git a/src/AntDesign.ts b/src/AntDesign.ts index 0ea712ff..0da2647c 100644 --- a/src/AntDesign.ts +++ b/src/AntDesign.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/AntDesign.ttf'; diff --git a/src/Entypo.ts b/src/Entypo.ts index 741ae1d9..961355ad 100644 --- a/src/Entypo.ts +++ b/src/Entypo.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/Entypo.ttf'; diff --git a/src/EvilIcons.ts b/src/EvilIcons.ts index 1e9293ad..3bf6f4a2 100644 --- a/src/EvilIcons.ts +++ b/src/EvilIcons.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/EvilIcons.ttf'; diff --git a/src/Feather.ts b/src/Feather.ts index 4da05dff..28d38a34 100644 --- a/src/Feather.ts +++ b/src/Feather.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/Feather.ttf'; diff --git a/src/FontAwesome.ts b/src/FontAwesome.ts index 963bf120..099b7bcf 100644 --- a/src/FontAwesome.ts +++ b/src/FontAwesome.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/FontAwesome.ttf'; diff --git a/src/FontAwesome5.ts b/src/FontAwesome5.ts index 80160660..fb9ea928 100644 --- a/src/FontAwesome5.ts +++ b/src/FontAwesome5.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import { createFA5iconSet } from './createIconSetFromFontAwesome5'; import glyphMap from './vendor/react-native-vector-icons/glyphmaps/FontAwesome5Free.json'; diff --git a/src/FontAwesome6.ts b/src/FontAwesome6.ts index c02eb414..edb0ba19 100644 --- a/src/FontAwesome6.ts +++ b/src/FontAwesome6.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import { createFA6iconSet } from './createIconSetFromFontAwesome6'; import glyphMap from './vendor/react-native-vector-icons/glyphmaps/FontAwesome6Free.json'; diff --git a/src/Fontisto.ts b/src/Fontisto.ts index f6089b49..a9341178 100644 --- a/src/Fontisto.ts +++ b/src/Fontisto.ts @@ -2,7 +2,7 @@ * Feather icon set component. * Usage: */ -"use client"; +'use client'; import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/Fontisto.ttf'; diff --git a/src/Foundation.ts b/src/Foundation.ts index ef69ceeb..17df54f9 100644 --- a/src/Foundation.ts +++ b/src/Foundation.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/Foundation.ttf'; diff --git a/src/Icons.ts b/src/Icons.ts index f487f08b..30c35664 100644 --- a/src/Icons.ts +++ b/src/Icons.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; export { default as AntDesign } from './AntDesign'; export { default as Entypo } from './Entypo'; diff --git a/src/Ionicons.ts b/src/Ionicons.ts index abe471ff..1c97b5ca 100644 --- a/src/Ionicons.ts +++ b/src/Ionicons.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/Ionicons.ttf'; diff --git a/src/MaterialCommunityIcons.ts b/src/MaterialCommunityIcons.ts index 024ee4c0..e4d714e8 100644 --- a/src/MaterialCommunityIcons.ts +++ b/src/MaterialCommunityIcons.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf'; diff --git a/src/MaterialIcons.ts b/src/MaterialIcons.ts index 8a0b5e8e..47cb0484 100644 --- a/src/MaterialIcons.ts +++ b/src/MaterialIcons.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/MaterialIcons.ttf'; diff --git a/src/Octicons.ts b/src/Octicons.ts index a989be2b..fadf2403 100644 --- a/src/Octicons.ts +++ b/src/Octicons.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/Octicons.ttf'; diff --git a/src/SimpleLineIcons.ts b/src/SimpleLineIcons.ts index 5e036a35..4c34fc6b 100644 --- a/src/SimpleLineIcons.ts +++ b/src/SimpleLineIcons.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/SimpleLineIcons.ttf'; diff --git a/src/Zocial.ts b/src/Zocial.ts index 359aef93..6878482c 100644 --- a/src/Zocial.ts +++ b/src/Zocial.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/Zocial.ttf'; diff --git a/src/createMultiStyleIconSet.ts b/src/createMultiStyleIconSet.ts index 3d86805d..ced5327c 100644 --- a/src/createMultiStyleIconSet.ts +++ b/src/createMultiStyleIconSet.ts @@ -58,7 +58,7 @@ export default function createMultiStyleIconSet(styles: FontStyles, optionsInput const family = options.fallbackFamily(name); if (styleNames.indexOf(family) === -1) { - return options.defaultStyle; + return iconSets[options.defaultStyle]; } return iconSets[family];