mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-23 11:16:42 +00:00
Fix linting
This commit is contained in:
+4
-2
@@ -1,6 +1,8 @@
|
||||
**/node_modules/
|
||||
android/
|
||||
Example/examples/
|
||||
Example/android/
|
||||
ios/
|
||||
Example/ios/
|
||||
screenShoots/
|
||||
android/
|
||||
ios/
|
||||
lib/extract/transform.js
|
||||
|
||||
@@ -20,7 +20,6 @@ export default class Mask extends Shape {
|
||||
const {
|
||||
maskTransform,
|
||||
transform,
|
||||
id,
|
||||
x,
|
||||
y,
|
||||
width,
|
||||
|
||||
+4
-4
@@ -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;
|
||||
|
||||
|
||||
@@ -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,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user