mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-04 07:25:53 +00:00
Fix linting
This commit is contained in:
+4
-2
@@ -1,6 +1,8 @@
|
|||||||
**/node_modules/
|
**/node_modules/
|
||||||
android/
|
Example/examples/
|
||||||
Example/android/
|
Example/android/
|
||||||
ios/
|
|
||||||
Example/ios/
|
Example/ios/
|
||||||
screenShoots/
|
screenShoots/
|
||||||
|
android/
|
||||||
|
ios/
|
||||||
|
lib/extract/transform.js
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ export default class Mask extends Shape {
|
|||||||
const {
|
const {
|
||||||
maskTransform,
|
maskTransform,
|
||||||
transform,
|
transform,
|
||||||
id,
|
|
||||||
x,
|
x,
|
||||||
y,
|
y,
|
||||||
width,
|
width,
|
||||||
|
|||||||
+4
-4
@@ -89,11 +89,11 @@ export default class Svg extends Shape {
|
|||||||
strokeMiterlimit,
|
strokeMiterlimit,
|
||||||
} = stylesAndProps;
|
} = stylesAndProps;
|
||||||
|
|
||||||
const w = parseInt(width);
|
const w = parseInt(width, 10);
|
||||||
const h = parseInt(height);
|
const h = parseInt(height, 10);
|
||||||
const dimensions = width && height ? {
|
const dimensions = width && height ? {
|
||||||
width: isNaN(w) || width[width.length - 1] === '%' ? width : w,
|
width: isNaN(w) || width[width.length - 1] === "%" ? width : w,
|
||||||
height: isNaN(h) || height[height.length - 1] === '%' ? height : h,
|
height: isNaN(h) || height[height.length - 1] === "%" ? height : h,
|
||||||
flex: 0,
|
flex: 0,
|
||||||
} : null;
|
} : null;
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ export default function extractGradient(props, parent) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const stops = [];
|
const stops = [];
|
||||||
const childArray = React.Children.map(children, child =>
|
const childArray = Children.map(children, child =>
|
||||||
React.cloneElement(child, {
|
React.cloneElement(child, {
|
||||||
parent,
|
parent,
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user