Add 'center' to the allowed values in Android Image.resizeMode proptype

Reviewed By: foghina

Differential Revision: D3703258

fbshipit-source-id: fc2546a8c2e595ec51416f3453a12d087cc68515
This commit is contained in:
Alon Schwarz
2016-08-16 04:01:39 -07:00
committed by Facebook Github Bot 0
parent dd6370fed2
commit 862b6570ee

View File

@@ -144,8 +144,12 @@ var Image = React.createClass({
*
* 'stretch': Scale width and height independently, This may change the
* aspect ratio of the src.
*
* 'center': Scale the image down so that it is completely visible,
* if bigger than the area of the view.
* The image will not be scaled up.
*/
resizeMode: PropTypes.oneOf(['cover', 'contain', 'stretch']),
resizeMode: PropTypes.oneOf(['cover', 'contain', 'stretch', 'center']),
},
statics: {