Open SamuelScheit opened 3 years ago
it would be very easy to support multiple classes className="button primary"
if you patch the React.createElement method and add the corresponding style.props
for the classNames.
oh as already mentioned in issue #3 it would also be possible with babel transform
It's definitely possible to implement cascading styles, but in my opinion it's much work and little benefit to do so.
React Native already provides a functioning way of applying styles, so I think that it's a good idea to stick with it.
I'm currently working on a themeable react native project and wanted to implement cascading styles with child selectors. I saw that you wrote in your FAQ, that cascading childs and complex CSS selectors are not supported:
and wanted to add this optional feature. I had a look at the internal react properties and theoretically could make child selectors, however can't subscribe for child element updates. Do you have any idea how this feature could theoretically be implemented?