Fix typo in Image.android.js & Image.ios.js
Summary: Fixing a typo. N/A [IOS] [MINOR] [Image] - Fixed a typo in an error message [ANDROID] [MINOR] [Image] - Fixed a typo in an error message Closes https://github.com/facebook/react-native/pull/16777 Differential Revision: D6295564 Pulled By: shergin fbshipit-source-id: eb6274701b6406f26b9eda1c35632cb2ce0392d7
This commit is contained in:
parent
a329e968fc
commit
58c3bc4901
|
@ -274,7 +274,7 @@ var Image = createReactClass({
|
|||
}
|
||||
|
||||
if (this.props.children) {
|
||||
throw new Error('The <Image> component cannot contain children. If you want to render content on top of the image, consider using aboslute positioning.');
|
||||
throw new Error('The <Image> component cannot contain children. If you want to render content on top of the image, consider using absolute positioning.');
|
||||
}
|
||||
|
||||
if (source && (source.uri || Array.isArray(source))) {
|
||||
|
|
|
@ -374,7 +374,7 @@ const Image = createReactClass({
|
|||
}
|
||||
|
||||
if (this.props.children) {
|
||||
throw new Error('The <Image> component cannot contain children. If you want to render content on top of the image, consider using aboslute positioning.');
|
||||
throw new Error('The <Image> component cannot contain children. If you want to render content on top of the image, consider using absolute positioning.');
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
Loading…
Reference in New Issue