I am doing React Native and trying to just display the image library image at the url. When I run this, all that is shown is the text "React Native", but no image. What am I doing wrong?
'use strict'; var React = require('react-native'); var { AppRegistry, StyleSheet, Image, Text, View, } = React; var AwesomeProject = React.createClass({ render: function() { return ( <View style={styles.container}> <Text style={styles.welcome}> React Native </Text> <Image source={{uri: 'http://facebook.imtqy.com/react/img/logo_og.png'}} /> </View> ); } });
source share