brigand / brigand/react-style-proptype

Support for arrays

Open
#2 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
59
Forks
11
PR merge metrics
No merged PRs in 30d

Description

It would be nice if module will support also arrays of styles e.g. [ myStyle, {width: 345}] which are pretty usual imho and are interpreted as a single style afterwards.

Currently, I'm using following format:

style: React.PropTypes.oneOfType([
React.PropTypes.arrayOf(stylePropType),
stylePropType
]).isRequired

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.