[change] Image 'source' dimensions and RN layout

Adds support for 'width' and 'height' set via the 'source' property.
Emulates RN image layout (i.e., no dimensions by default).

Fix #10
This commit is contained in:
Nicolas Gallagher
2016-10-23 15:21:47 -07:00
parent c9d401f09a
commit 0af6dc00fc
3 changed files with 54 additions and 18 deletions

View File

@@ -218,7 +218,7 @@ const examples = [
render: function() {
return (
<Image
source={{uri: 'http://facebook.github.io/react/img/logo_og.png'}}
source={{ uri: 'http://facebook.github.io/react/img/logo_og.png', width: 1200, height: 630 }}
style={styles.base}
/>
);