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