mirror of
https://github.com/tabler/tabler-icons.git
synced 2025-09-09 22:00:57 +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>(
|
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,
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user