I am currently working on a native movie tutorial ( https://facebook.imtqy.com/react-native/docs/tutorial.html ) and I am using the device to display the results. I used an existing project, staged a view using a storyboard, and correctly subclassed it. For some reason, the image is not displayed, and a red box is displayed instead. Am I doing something wrong? My reagent code:
'use strict'; var React = require('react-native'); var { AppRegistry, Image, StyleSheet, Text, View, } = React; var MOCKED_MOVIES_DATA = [ {title: 'Title', year: '2015', posters: {thumbnail: 'http://i.imgur.com/UePbdph.jpg'}}, ]; var styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }, thumbnail: { width: 53, height: 81, }, }); var Movies = React.createClass({ render: function() { var movie = MOCKED_MOVIES_DATA[0]; return ( <View style={styles.container}> <Text>{movie.title}</Text> <Text>{movie.year}</Text> <Image source={{uri: movie.posters.thumbnail}} style={styles.thumbnail} /> </View> ); } }); React.AppRegistry.registerComponent('Movies', () => Movies);
This is a screenshot of what is displayed on my phone: 
source share