diff --git a/.eslintignore b/.eslintignore index 384cd669..447cd9c8 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,6 +1,8 @@ **/node_modules/ -android/ +Example/examples/ Example/android/ -ios/ Example/ios/ screenShoots/ +android/ +ios/ +lib/extract/transform.js diff --git a/elements/Mask.js b/elements/Mask.js index db60ec90..fbe73a0f 100644 --- a/elements/Mask.js +++ b/elements/Mask.js @@ -20,7 +20,6 @@ export default class Mask extends Shape { const { maskTransform, transform, - id, x, y, width, diff --git a/elements/Svg.js b/elements/Svg.js index d2fde4b4..41ba3807 100644 --- a/elements/Svg.js +++ b/elements/Svg.js @@ -89,11 +89,11 @@ export default class Svg extends Shape { strokeMiterlimit, } = stylesAndProps; - const w = parseInt(width); - const h = parseInt(height); + const w = parseInt(width, 10); + const h = parseInt(height, 10); const dimensions = width && height ? { - width: isNaN(w) || width[width.length - 1] === '%' ? width : w, - height: isNaN(h) || height[height.length - 1] === '%' ? height : h, + width: isNaN(w) || width[width.length - 1] === "%" ? width : w, + height: isNaN(h) || height[height.length - 1] === "%" ? height : h, flex: 0, } : null; diff --git a/lib/extract/extractGradient.js b/lib/extract/extractGradient.js index f8cfb7c6..042012b9 100644 --- a/lib/extract/extractGradient.js +++ b/lib/extract/extractGradient.js @@ -37,7 +37,7 @@ export default function extractGradient(props, parent) { } const stops = []; - const childArray = React.Children.map(children, child => + const childArray = Children.map(children, child => React.cloneElement(child, { parent, }),