Refined type for display style property

Reviewed By: javache

Differential Revision: D5185158

fbshipit-source-id: 02fef3862e20e9a5023bfe57601c3cf92ac273e5
This commit is contained in:
Valentin Shergin authored and Facebook Github Bot committed 2017-06-20 17:16:46 -07:00
1 parent a04322fa1b
commit b1e64a448a
1 file changed
+4 -1
+4 -1
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.
*