the image is not displayed on the mobile device in native switch

1

this is the code of the app.js file:

    import React, { Component } from 'react';
    import {
      Platform,
      StyleSheet,
      Text,
      View,
      Image
    } from 'react-native';

    export default class App extends Component<{}> {
     render() {
     const image ='https://i.imgur.com/E2PbxmA.jpg'
     return (
     <View style={{width: 200, height: 200}}>
       <Image
         style={{width: 150, height: 150}}
         source={{uri: image}}
       />
      </View>
      );
     }
    }

    const styles = StyleSheet.create({
      container: {
        flex: 1,
        justifyContent: 'center',
        alignItems: 'center',
        backgroundColor: '#F5FCFF',
      },

     });

The problem is that the image is not displayed on the device

    
asked by Jean Pier Alcalde Garrido 22.10.2017 в 01:25
source

0 answers