From 2ddb0bddc61677be1b92820129361c7b5d522b88 Mon Sep 17 00:00:00 2001 From: magicismight Date: Tue, 8 Aug 2017 11:25:38 +0800 Subject: [PATCH] Fix strokeDasharray.concat(strokeDasharray) `strokeDasharray.concat(strokeDasharray)` has created a new array should assign to strokeDasharray. Remove devDependencies --- lib/extract/extractStroke.js | 2 +- package.json | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/extract/extractStroke.js b/lib/extract/extractStroke.js index 53bc4069..56b6426f 100644 --- a/lib/extract/extractStroke.js +++ b/lib/extract/extractStroke.js @@ -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); } } diff --git a/package.json b/package.json index dc4f5286..c50cfcb7 100644 --- a/package.json +++ b/package.json @@ -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 }