'React-Native - Image not showing in Android emulator
Why the image doesn't render on Android emulator?
I have only 2 files:
Index.js
import { AppRegistry } from 'react-native';
import App from './src/App';
AppRegistry.registerComponent('FirstApp', () => App);
App.js
import React, { Component } from 'react';
import {View, Image, Text} from 'react-native';
export default class App extends Component<{}> {
render() {
return (
<View>
<Image source={{uri: "https://upload.wikimedia.org/wikipedia/commons/d/de/Bananavarieties.jpg"}}
style={{width: 193, height: 110}}/>
<Text>Some text here..</Text>
</View>
);
}
}
Android emulator:
Android device:
Solution 1:[1]
I found this video useful to turn on internet in android emulator for mac machine https://youtu.be/OfGjE8njmC0
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Ankit Tiwari |


