Skip to content

Commit a4adb47

Browse files
authored
Fix filled icons on react native (#1354)
1 parent 60ddcaa commit a4adb47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/icons-react-native/src/createReactNativeComponent.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ const createReactNativeComponent = (
1212
const Component = forwardRef<SVGSVGElement, IconProps>(
1313
({ color = 'currentColor', size = 24, strokeWidth = 2, title, children, ...rest }: IconProps, ref) => {
1414
const customAttrs = {
15-
stroke: color,
15+
stroke: type === "filled" ? "none" : color,
16+
fill: type === "filled" ? color : "none",
1617
strokeWidth,
1718
...rest,
1819
};

0 commit comments

Comments
 (0)