Fix linting

This commit is contained in:
Mikael Sand
2019-01-25 16:35:10 +02:00
parent f5cdc31934
commit 60988cfd06
4 changed files with 9 additions and 8 deletions
+4 -2
View File
@@ -1,6 +1,8 @@
**/node_modules/
android/
Example/examples/
Example/android/
ios/
Example/ios/
screenShoots/
android/
ios/
lib/extract/transform.js
-1
View File
@@ -20,7 +20,6 @@ export default class Mask extends Shape {
const {
maskTransform,
transform,
id,
x,
y,
width,
+4 -4
View File
@@ -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;
+1 -1
View File
@@ -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,
}),