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