mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-06-08 19:56:43 +08:00
Refined type for display style property
Reviewed By: javache Differential Revision: D5185158 fbshipit-source-id: 02fef3862e20e9a5023bfe57601c3cf92ac273e5
This commit is contained in:
committed by
Facebook Github Bot
parent
a04322fa1b
commit
b1e64a448a
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user