diff --git a/Libraries/Image/Image.android.js b/Libraries/Image/Image.android.js index 7adbe13c2..d2e1a177c 100644 --- a/Libraries/Image/Image.android.js +++ b/Libraries/Image/Image.android.js @@ -161,6 +161,10 @@ var Image = React.createClass({ console.warn('source.uri should not be an empty string'); } + if (this.props.src) { + console.warn('The component requires a `source` property rather than `src`.'); + } + if (source && source.uri) { var {width, height} = source; var style = flattenStyle([{width, height}, styles.base, this.props.style]); diff --git a/Libraries/Image/Image.ios.js b/Libraries/Image/Image.ios.js index 43f694b43..785c9f083 100644 --- a/Libraries/Image/Image.ios.js +++ b/Libraries/Image/Image.ios.js @@ -210,6 +210,10 @@ var Image = React.createClass({ RawImage = RCTImageView; } + if (this.props.src) { + console.warn('The component requires a `source` property rather than `src`.'); + } + if (this.context.isInAParentText) { RawImage = RCTVirtualImage; if (!width || !height) {