mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-22 03:14:42 +08:00
[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:
@@ -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}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user