Refined type for display style property

Reviewed By: javache

Differential Revision: D5185158

fbshipit-source-id: 02fef3862e20e9a5023bfe57601c3cf92ac273e5
This commit is contained in:
Valentin Shergin
2017-06-20 17:12:54 -07:00
committed by Facebook Github Bot
parent a04322fa1b
commit b1e64a448a

View File

@@ -32,7 +32,10 @@ var LayoutPropTypes = {
* It works similarly to `display` in CSS, but only support 'flex' and 'none'.
* 'flex' is the default.
*/
display: ReactPropTypes.string,
display: ReactPropTypes.oneOf([
'none',
'flex',
]),
/** `width` sets the width of this component.
*