Skip to content

style prop warning - can be either object or array#976

Closed
andreigec wants to merge 1 commit intoJedWatson:masterfrom
andreigec:propwarning
Closed

style prop warning - can be either object or array#976
andreigec wants to merge 1 commit intoJedWatson:masterfrom
andreigec:propwarning

Conversation

@andreigec
Copy link

had warnings with the style prop type

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 90.812% when pulling ac81101 on andreigec:propwarning into aa57a93 on JedWatson:master.

@gwyneplaine
Copy link
Collaborator

@andreigec, just wanted to check in with this PR and clarify its use, as React still doesn't support an array in style props as of React 16

@JedWatson
Copy link
Owner

JedWatson commented Oct 27, 2017

Looking further into this, react-dom doesn't support arrays for styles - see facebook/react#2196

So I don't think it's a good idea to support the propType array here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants