Skip to content

Commit

Permalink
Refined type for display style property
Browse files Browse the repository at this point in the history
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 b1e64a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Libraries/StyleSheet/LayoutPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit b1e64a4

Please sign in to comment.