mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 01:40:08 +00:00
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:
parent
9be1216c7f
commit
7e3266d7de
@ -121,14 +121,14 @@ var Image = React.createClass({
|
|||||||
*/
|
*/
|
||||||
viewConfig: {
|
viewConfig: {
|
||||||
uiViewClassName: 'RCTView',
|
uiViewClassName: 'RCTView',
|
||||||
validAttributes: ReactNativeViewAttributes.RKView
|
validAttributes: ReactNativeViewAttributes.RCTView,
|
||||||
},
|
},
|
||||||
|
|
||||||
_updateViewConfig: function(props) {
|
_updateViewConfig: function(props) {
|
||||||
if (props.children) {
|
if (props.children) {
|
||||||
this.viewConfig = {
|
this.viewConfig = {
|
||||||
uiViewClassName: 'RCTView',
|
uiViewClassName: 'RCTView',
|
||||||
validAttributes: ReactNativeViewAttributes.RKView,
|
validAttributes: ReactNativeViewAttributes.RCTView,
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
this.viewConfig = {
|
this.viewConfig = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user