Merge pull request #501 from expo/color-upgrade

Update "color" dep to 2.x to fix RN minifier bug
This commit is contained in:
Horcrux
2017-11-10 17:57:44 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ export default function (colorOrBrush) {
return [1, matched[1]];
//todo:
} else { // solid color
let c = new Color(colorOrBrush).rgbaArray();
let c = Color(colorOrBrush).rgb().array();
return [0, c[0] / 255, c[1] / 255, c[2] / 255, c[3]];
}
} catch (err) {
+1 -1
View File
@@ -28,7 +28,7 @@
"prop-types": "^15.5.8"
},
"dependencies": {
"color": "^0.11.1",
"color": "^2.0.1",
"lodash": "^4.16.6",
"github-download": "^0.5.0"
},