mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-04 15:44:24 +00:00
Add eslint
This commit is contained in:
@@ -20,4 +20,4 @@ export {
|
||||
LINEAR_GRADIENT,
|
||||
RADIAL_GRADIENT,
|
||||
PATTERN
|
||||
}
|
||||
};
|
||||
|
||||
@@ -44,4 +44,4 @@ export default function (props) {
|
||||
export {
|
||||
set,
|
||||
remove
|
||||
}
|
||||
};
|
||||
|
||||
@@ -8,7 +8,7 @@ export default function(props, options = {stroke: true, join: true, transform: t
|
||||
if (props.visible === false) {
|
||||
return {
|
||||
opacity: 0
|
||||
}
|
||||
};
|
||||
}
|
||||
let extractedProps = {
|
||||
opacity: +props.opacity || 1
|
||||
|
||||
@@ -89,5 +89,5 @@ export default function(props) {
|
||||
childrenAsString(props.children)
|
||||
),
|
||||
path: props.path ? new SerializablePath(props.path).toJSON() : undefined
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ export default function({viewbox, width, height, preserveAspectRatio, x: dx, y:
|
||||
y: 0,
|
||||
scaleX: 0,
|
||||
scaleY: 0
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
let vx = +parts[0] || 0;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import rgba from '../rgba';
|
||||
let patterns = {};
|
||||
import patternReg from './patternReg'
|
||||
import patternReg from './patternReg';
|
||||
|
||||
import {LinearGradientGenerator} from '../../elements/LinearGradient';
|
||||
import {RadialGradientGenerator} from '../../elements/RadialGradient';
|
||||
@@ -21,7 +21,7 @@ function remove(id) {
|
||||
export {
|
||||
set,
|
||||
remove
|
||||
}
|
||||
};
|
||||
|
||||
export default function(patternSting, opacity, svgId) {
|
||||
if (isGradient(patternSting)) {
|
||||
|
||||
Reference in New Issue
Block a user