diff --git a/Libraries/StyleSheet/LayoutPropTypes.js b/Libraries/StyleSheet/LayoutPropTypes.js index 5da924e9563dea..e4ed43875c4abd 100644 --- a/Libraries/StyleSheet/LayoutPropTypes.js +++ b/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. *