-
Notifications
You must be signed in to change notification settings - Fork 295
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
Class limitations #173
Comments
[Repeating myself from issue #145] @tmaly1980, multiple classes in the class attribute work for me. Splitting of class definitions (as you explained it above) doesn't work for me, but so far that hasn't been a problem. |
An example:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seems that CSS classes can only be set to a single class, not a string of multiple classes.
Seems like a limitation, and I don't see why it can't concatenate the computed styles together.
ie:
class="one two"
doesn't work. But in react native world, it's totally possible to do something like:
style={[styles.one, styles.two]}
Also seems that I cannot split/share class definitions, either, ie:
The above will actually only apply the second reference to class1, and totally ignore the style defined in the first reference.
This is really a hindrance to creating any sort of app of reasonable scale.
The text was updated successfully, but these errors were encountered: