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:
Brian Solon 2017-11-09 22:18:02 -08:00 committed by Facebook Github Bot
parent a329e968fc
commit 58c3bc4901
2 changed files with 2 additions and 2 deletions

View File

@ -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))) {

View File

@ -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 (