From e70952201068127b96f226552e9cd71ae1b9052d Mon Sep 17 00:00:00 2001 From: Eric Fennis Date: Fri, 18 Sep 2026 12:52:59 +0200 Subject: [PATCH] Fix type lucide-react-native --- packages/lucide-react-native/src/Icon.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/lucide-react-native/src/Icon.ts b/packages/lucide-react-native/src/Icon.ts index 184a8e48e..7fc283952 100644 --- a/packages/lucide-react-native/src/Icon.ts +++ b/packages/lucide-react-native/src/Icon.ts @@ -1,6 +1,6 @@ import { createElement, forwardRef, type FunctionComponent } from 'react'; import * as NativeSvg from 'react-native-svg'; -import { buildLucideIconForReact, hasA11yProp, mergeClasses } from '@lucide/shared'; +import { buildLucideIconForReact, hasA11yProp } from '@lucide/shared'; import { childDefaultAttributes } from './defaultAttributes'; import { LucideIconData, LucideIconNode, LucideProps } from './types'; import { useLucideContext } from './context'; @@ -79,19 +79,18 @@ const Icon = forwardRef( absoluteStrokeWidth: contextAbsoluteStrokeWidth = false, nonScalingStroke: contextNonScalingStroke = false, color: contextColor = 'currentColor', - className: contextClass = '', } = useLucideContext() ?? {}; const hasAccessibleProp = Boolean(children) || hasA11yProp(rest); const [, svgAttributes, builtIconNode = []] = buildLucideIconForReact(icon, { - color: color ?? contextColor, + color: (color ?? contextColor) as string, width: width ?? size ?? contextSize, height: height ?? size ?? contextSize, strokeWidth: strokeWidth ?? contextStrokeWidth, absoluteStrokeWidth: absoluteStrokeWidth ?? contextAbsoluteStrokeWidth, nonScalingStroke: nonScalingStroke ?? contextNonScalingStroke, - className: mergeClasses(contextClass, className), + className, hasA11yProp: hasAccessibleProp, attributes: rest, });