Permalink
Browse files

Refined type for `display` style property

Reviewed By: javache

Differential Revision: D5185158

fbshipit-source-id: 02fef3862e20e9a5023bfe57601c3cf92ac273e5
  • Loading branch information...
shergin authored and facebook-github-bot committed Jun 21, 2017
1 parent a04322f commit b1e64a448a0be358f3cd97452ec306e455c6fb49
Showing with 4 additions and 1 deletion.
  1. +4 −1 Libraries/StyleSheet/LayoutPropTypes.js
@@ -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.
*

0 comments on commit b1e64a4

Please sign in to comment.