-
Notifications
You must be signed in to change notification settings - Fork 46.8k
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
Automatically Object.assign when styles
receives an Array
#3081
Comments
See also #2196. (We do want to get to a consistent story for all of these things, but we're obviously not there yet.) |
Thanks @spicyj. I thought I searched before posting. Maybe I forgot to remove the |
+1 I am developing in both React Native and React DOM and find the React Native way of merging styles very convenient. It would be great if you could give this a higher priority. Thanks! |
Why is it available in react-native and not react ? |
An RFC would be appropriate here since this is a feature request that will likely require significant review and discussion. If someone would like to pursue that please do so at https://github.com/reactjs/rfcs |
In React Native, these two styles are automatically composed:
Currently, trying a similar technique in React DOM produces this:
Following the principles of "Learn Once, Write Everywhere", the style prop should behave similarly across implementations.
The text was updated successfully, but these errors were encountered: