Skip to content

Update css-to-react-native to version 2.1.0 #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 6 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"babel-jest": "^21.2.0",
"babel-preset-es2015": "^6.24.1",
"jest": "^21.2.1",
"np": "^2.18.2"
"np": "^2.18.3"
},
"jest": {
"transform": {
Expand All @@ -26,21 +26,13 @@
},
"dependencies": {
"css": "^2.2.1",
"css-to-react-native": "^2.0.4"
"css-to-react-native": "^2.1.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/kristerkari/css-to-react-native-transform.git"
"url":
"git+https://github.com/kristerkari/css-to-react-native-transform.git"
},
"keywords": [
"React",
"ReactNative",
"styles",
"CSS"
],
"files": [
"dist",
"src",
"README.md"
]
"keywords": ["React", "ReactNative", "styles", "CSS"],
"files": ["dist", "src", "README.md"]
}
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const transform = css => {
const value = remToPx(declaration.value);

// box-shadow is implemented in css-to-react-native,
// but not released yet. Remove after it is supported.
// but it's missing some features like rgb/rgba colors.
if (property === "box-shadow") {
Object.assign(styles, boxShadowToShadowProps(value));
} else if (shorthandBorderProps.indexOf(property) > -1) {
Expand Down
4 changes: 0 additions & 4 deletions src/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -959,9 +959,6 @@ describe("flex-box", () => {
});
});

/* Implemented in css-to-react-native, but not released yet:
https://github.com/styled-components/css-to-react-native/pull/44

it("transforms flex shorthand with flex-basis set to auto", () => {
expect(
transform(`
Expand All @@ -985,7 +982,6 @@ describe("flex-box", () => {
test: { flexGrow: 0, flexShrink: 1 },
});
});
*/

it("transforms flex auto keyword", () => {
expect(
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -966,9 +966,9 @@ css-color-keywords@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/css-color-keywords/-/css-color-keywords-1.0.0.tgz#fea2616dc676b2962686b3af8dbdbe180b244e05"

css-to-react-native@^2.0.4:
version "2.0.4"
resolved "https://registry.yarnpkg.com/css-to-react-native/-/css-to-react-native-2.0.4.tgz#cf4cc407558b3474d4ba8be1a2cd3b6ce713101b"
css-to-react-native@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/css-to-react-native/-/css-to-react-native-2.1.0.tgz#671b922aa3c0bc880e09f8f00e5a4bf0803928e5"
dependencies:
css-color-keywords "^1.0.0"
fbjs "^0.8.5"
Expand Down Expand Up @@ -2549,9 +2549,9 @@ normalize-path@^2.0.0, normalize-path@^2.0.1:
dependencies:
remove-trailing-separator "^1.0.1"

np@^2.18.2:
version "2.18.2"
resolved "https://registry.yarnpkg.com/np/-/np-2.18.2.tgz#4571c8c8faa44a52cfd25d26b7d73af1f0fb1407"
np@^2.18.3:
version "2.18.3"
resolved "https://registry.yarnpkg.com/np/-/np-2.18.3.tgz#00dfa459edd29ec8ea65e7e99ad973870a61b0cc"
dependencies:
any-observable "^0.2.0"
chalk "^2.3.0"
Expand Down