mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-29 07:48:17 +08:00
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:
committed by
Facebook Github Bot 0
parent
dd6370fed2
commit
862b6570ee
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user