Specify width and height for Image(remote source)

Summary: Closes https://github.com/facebook/react-native/pull/8486

Differential Revision: D3496850

Pulled By: javache

fbshipit-source-id: f2456b914c420089558484fb87e3d92ed2c923af
This commit is contained in:
sunnylqm 2016-06-29 05:00:47 -07:00 committed by Facebook Github Bot 8
parent f0f2645ec7
commit 6b2a49e73e
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class Bananas extends Component {
uri: 'https://upload.wikimedia.org/wikipedia/commons/d/de/Bananavarieties.jpg'
};
return (
<Image source={pic} />
<Image source={pic} style={{width: 193, height: 110}}/>
);
}
}