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:
@@ -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,
|
||||
};
|
||||
|
Reference in New Issue
Block a user