Fix attributes checking for Image.android.js

Reviewed By: sahrens

Differential Revision: D2975018

fb-gh-sync-id: 226f2d3d3dcb538f0c3967346a9b226960c1d15c
shipit-source-id: 226f2d3d3dcb538f0c3967346a9b226960c1d15c
This commit is contained in:
Rui Chen 2016-02-29 18:02:11 -08:00 committed by Facebook Github Bot 2
parent 9be1216c7f
commit 7e3266d7de

View File

@ -121,14 +121,14 @@ var Image = React.createClass({
*/
viewConfig: {
uiViewClassName: 'RCTView',
validAttributes: ReactNativeViewAttributes.RKView
validAttributes: ReactNativeViewAttributes.RCTView,
},
_updateViewConfig: function(props) {
if (props.children) {
this.viewConfig = {
uiViewClassName: 'RCTView',
validAttributes: ReactNativeViewAttributes.RKView,
validAttributes: ReactNativeViewAttributes.RCTView,
};
} else {
this.viewConfig = {