add option `ignoreRule` to support ignore some specific selector
lovetingyuan opened this issue · 3 comments
lovetingyuan commented
.foo {
color: red;
}
.bar {
font-size: 12px;
}
css2rn(csscode, {
ignoreRule(selector) {
if (selector === '.foo') { return true }
}
})
result:
{
"bar": { fontSize: 12 }
}
lovetingyuan commented
BTW, styled-component is not activly matained, I worry about the quality of related projects.
kristerkari commented
Thanks! This could be a useful option to add to the library.
kristerkari commented
This is now released in 2.1.0:
https://github.com/kristerkari/css-to-react-native-transform/releases/tag/v2.1.0