Skip to content

Commit c4536c3

Browse files
committed
Update css-to-react-native to version 2.1.0
1 parent f42785c commit c4536c3

File tree

4 files changed

+13
-25
lines changed

4 files changed

+13
-25
lines changed

package.json

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"babel-jest": "^21.2.0",
1818
"babel-preset-es2015": "^6.24.1",
1919
"jest": "^21.2.1",
20-
"np": "^2.18.2"
20+
"np": "^2.18.3"
2121
},
2222
"jest": {
2323
"transform": {
@@ -26,21 +26,13 @@
2626
},
2727
"dependencies": {
2828
"css": "^2.2.1",
29-
"css-to-react-native": "^2.0.4"
29+
"css-to-react-native": "^2.1.0"
3030
},
3131
"repository": {
3232
"type": "git",
33-
"url": "git+https://github.com/kristerkari/css-to-react-native-transform.git"
33+
"url":
34+
"git+https://github.com/kristerkari/css-to-react-native-transform.git"
3435
},
35-
"keywords": [
36-
"React",
37-
"ReactNative",
38-
"styles",
39-
"CSS"
40-
],
41-
"files": [
42-
"dist",
43-
"src",
44-
"README.md"
45-
]
36+
"keywords": ["React", "ReactNative", "styles", "CSS"],
37+
"files": ["dist", "src", "README.md"]
4638
}

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const transform = css => {
3535
const value = remToPx(declaration.value);
3636

3737
// box-shadow is implemented in css-to-react-native,
38-
// but not released yet. Remove after it is supported.
38+
// but it's missing some features like rgb/rgba colors.
3939
if (property === "box-shadow") {
4040
Object.assign(styles, boxShadowToShadowProps(value));
4141
} else if (shorthandBorderProps.indexOf(property) > -1) {

src/index.spec.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -959,9 +959,6 @@ describe("flex-box", () => {
959959
});
960960
});
961961

962-
/* Implemented in css-to-react-native, but not released yet:
963-
https://github.com/styled-components/css-to-react-native/pull/44
964-
965962
it("transforms flex shorthand with flex-basis set to auto", () => {
966963
expect(
967964
transform(`
@@ -985,7 +982,6 @@ describe("flex-box", () => {
985982
test: { flexGrow: 0, flexShrink: 1 },
986983
});
987984
});
988-
*/
989985

990986
it("transforms flex auto keyword", () => {
991987
expect(

yarn.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -966,9 +966,9 @@ css-color-keywords@^1.0.0:
966966
version "1.0.0"
967967
resolved "https://registry.yarnpkg.com/css-color-keywords/-/css-color-keywords-1.0.0.tgz#fea2616dc676b2962686b3af8dbdbe180b244e05"
968968

969-
css-to-react-native@^2.0.4:
970-
version "2.0.4"
971-
resolved "https://registry.yarnpkg.com/css-to-react-native/-/css-to-react-native-2.0.4.tgz#cf4cc407558b3474d4ba8be1a2cd3b6ce713101b"
969+
css-to-react-native@^2.1.0:
970+
version "2.1.0"
971+
resolved "https://registry.yarnpkg.com/css-to-react-native/-/css-to-react-native-2.1.0.tgz#671b922aa3c0bc880e09f8f00e5a4bf0803928e5"
972972
dependencies:
973973
css-color-keywords "^1.0.0"
974974
fbjs "^0.8.5"
@@ -2549,9 +2549,9 @@ normalize-path@^2.0.0, normalize-path@^2.0.1:
25492549
dependencies:
25502550
remove-trailing-separator "^1.0.1"
25512551

2552-
np@^2.18.2:
2553-
version "2.18.2"
2554-
resolved "https://registry.yarnpkg.com/np/-/np-2.18.2.tgz#4571c8c8faa44a52cfd25d26b7d73af1f0fb1407"
2552+
np@^2.18.3:
2553+
version "2.18.3"
2554+
resolved "https://registry.yarnpkg.com/np/-/np-2.18.3.tgz#00dfa459edd29ec8ea65e7e99ad973870a61b0cc"
25552555
dependencies:
25562556
any-observable "^0.2.0"
25572557
chalk "^2.3.0"

0 commit comments

Comments
 (0)