Fix filled icons on react native (#1354)
This commit is contained in:
parent
60ddcaa068
commit
a4adb475cd
|
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue