-
Notifications
You must be signed in to change notification settings - Fork 48.6k
Support array of objects in style property #2239
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
Comments
Duplicate of: #2196 |
this should merge declared styles as well as specific in-line style like background. |
What is the preferred way to do it today? |
You can use the spread operator style={{...styles.box, ...styles.bigBox}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As proposed in React Future, it would be nice to support a list of style objects in the style property. The objects would be automatically merged (in order, with the last object overriding the previous one).
The text was updated successfully, but these errors were encountered: