kristerkari / css-to-react-native-transform Goto Github PK
View Code? Open in Web Editor NEWTurn valid CSS into React Native Stylesheet objects.
License: MIT License
Turn valid CSS into React Native Stylesheet objects.
License: MIT License
line-height
with multiplier value works in browser, not in React Native:
line-height: 1.41;
line-height: 150%;
This works in RN:
line-height: 24px;
.container {
background-color: #f00;
}
@media (orientation: landscape) {
.container {
background-color: #00f;
}
}
↓ ↓ ↓ ↓ ↓ ↓
{
container: {
backgroundColor: "#f00",
},
"@media (orientation: landscape)": {
container: {
backgroundColor: "#00f",
},
},
}
8.1.3
to 8.1.4
.This version is covered by your current version range and after updating it in your project the build failed.
lint-staged is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 4 commits.
0be88a0
fix: Use lodash version with prototype pollution fix (#578)
138fbc7
docs: Update Node version in the documentation (#579)
f9e5d7b
refactor: Use micromatch ignore
option instead of patterns with negations
6e32188
chore: Update yarn.lock
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Transform is breaking at this point.
This is a breaking change, so there are things that need to be migrated.
Calculating styles dynamically makes it possible to add support for viewport units.
The way that this would work is that the values would be parsed with units and a flag __viewportUnits: true
would be enabled. Those values would then during runtime be compared agains React Native's viewport and transformed to pixel values.
More info:
https://css-tricks.com/fun-viewport-units/
2.2.2
to 2.3.0
.This version is covered by your current version range and after updating it in your project the build failed.
css-to-react-native is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
The new version differs by 9 commits.
837637b
Merge pull request #101 from styled-components/v2.3.0
0a6f83e
v2.3.0
d11324e
Merge pull request #99 from kopax/master
5bb1433
ci(lock): update yarn.lock
c62fdfb
build(lockfile): remove lockfile (they should be use userland), and added rules not to use package-lock.json in .npmrc
f45b72c
fix(camelize): fix issues #95
57c4105
Merge pull request #97 from styled-components/jacobp100-patch-2
f48a256
Update tests
4e9cfec
Set flex-basis to auto
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
devDependency
@babel/cli was updated from 7.4.3
to 7.4.4
.devDependency
@babel/core was updated from 7.4.3
to 7.4.4
.devDependency
@babel/preset-env was updated from 7.4.3
to 7.4.4
.This version is covered by your current version range and after updating it in your project the build failed.
This monorepo update includes releases of one or more dependencies which all belong to the babel7 group definition.
babel7 is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
.a .b {
background-color:'red'
}
like this.
.foo {
color: red;
}
.bar {
font-size: 12px;
}
css2rn(csscode, {
ignoreRule(selector) {
if (selector === '.foo') { return true }
}
})
result:
{
"bar": { fontSize: 12 }
}
As this transformer now supports viewport units (#18), please could we add support for calc? This would allow us to use rules such as margin-left: calc(50vw - 10px)
, which could compile to {marginLeft: vw(50)-10}
(with vw
from https://github.com/joetakara/react-native-expo-viewport-units).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.