From a4adb475cd93ad36130792dd6bf6909903b8cba2 Mon Sep 17 00:00:00 2001 From: Kyle Alwyn Date: Fri, 16 May 2025 06:49:57 -0700 Subject: [PATCH] Fix filled icons on react native (#1354) --- packages/icons-react-native/src/createReactNativeComponent.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/icons-react-native/src/createReactNativeComponent.ts b/packages/icons-react-native/src/createReactNativeComponent.ts index e14ee9323..a34610def 100644 --- a/packages/icons-react-native/src/createReactNativeComponent.ts +++ b/packages/icons-react-native/src/createReactNativeComponent.ts @@ -12,7 +12,8 @@ const createReactNativeComponent = ( const Component = forwardRef( ({ color = 'currentColor', size = 24, strokeWidth = 2, title, children, ...rest }: IconProps, ref) => { const customAttrs = { - stroke: color, + stroke: type === "filled" ? "none" : color, + fill: type === "filled" ? color : "none", strokeWidth, ...rest, };