mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-25 20:09:12 +00:00
Fix strokeDasharray.concat(strokeDasharray)
`strokeDasharray.concat(strokeDasharray)` has created a new array should assign to strokeDasharray. Remove devDependencies
This commit is contained in:
@@ -39,7 +39,7 @@ export default function(props, styleProperties) {
|
||||
// to yield an even number of values. Thus, 5,3,2 is equivalent to 5,3,2,5,3,2.
|
||||
strokeDasharray = extractLengthList(strokeDasharray);
|
||||
if (strokeDasharray && (strokeDasharray.length % 2) === 1) {
|
||||
strokeDasharray.concat(strokeDasharray);
|
||||
strokeDasharray = strokeDasharray.concat(strokeDasharray);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-4
@@ -33,10 +33,7 @@
|
||||
"devDependencies": {
|
||||
"babel-eslint": "^6.1.2",
|
||||
"eslint": "^2.13.1",
|
||||
"eslint-plugin-react": "^4.3.0",
|
||||
"prop-types": "^15.5.10",
|
||||
"react": "16.0.0-alpha.12",
|
||||
"react-native": ">=0.46.0"
|
||||
"eslint-plugin-react": "^4.3.0"
|
||||
},
|
||||
"nativePackage": true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user