Fix filled icons on react native (#1354)

This commit is contained in:
Kyle Alwyn 2025-05-16 06:49:57 -07:00 committed by GitHub
parent 60ddcaa068
commit a4adb475cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,8 @@ const createReactNativeComponent = (
const Component = forwardRef<SVGSVGElement, IconProps>( const Component = forwardRef<SVGSVGElement, IconProps>(
({ color = 'currentColor', size = 24, strokeWidth = 2, title, children, ...rest }: IconProps, ref) => { ({ color = 'currentColor', size = 24, strokeWidth = 2, title, children, ...rest }: IconProps, ref) => {
const customAttrs = { const customAttrs = {
stroke: color, stroke: type === "filled" ? "none" : color,
fill: type === "filled" ? color : "none",
strokeWidth, strokeWidth,
...rest, ...rest,
}; };