1
0
mirror of https://github.com/tabler/tabler-icons.git synced 2025-09-03 02:42:55 +02:00

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

View File

@@ -12,7 +12,8 @@ const createReactNativeComponent = (
const Component = forwardRef<SVGSVGElement, IconProps>(
({ 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,
};