Image tag of react-native is working but image is not showing in the android emulator. Only the card is coming. Screenshot of source code is attached below.
2 Answers
Try this, I hope it will help you
import React, { Component } from 'react';
import { Text, View, StyleSheet , Image} from 'react-native';
import { Constants } from 'expo';
export default class App extends Component {
render() {
let Image_Http_URL ={ uri: 'https://reactnativecode.com/wp-content/uploads/2017/05/react_thumb_install.png'};
return (
<View style={{elevation:10, justifyContent: 'center', flex:1, margin:10}}>
<Image source={Image_Http_URL} style = {{height: 200, resizeMode : 'stretch', padding:5 }} />
</View>
);
}
}
http://develop.fifokart.in/Screen%20Shot%202019-09-12%20at%2011.42.29%20AM.png