Browse Source

Fix filled icons on react native (#1354)

pull/1367/head
Kyle Alwyn 2 months ago
committed by GitHub
parent
commit
a4adb475cd
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      packages/icons-react-native/src/createReactNativeComponent.ts

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

@ -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,
};

Loading…
Cancel
Save