答案 0 :(得分:4)
尝试一下,希望对您有帮助
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>
);
}
}
答案 1 :(得分:0)
检查2件事可能解决了问题
1:Internet权限已添加到android / app / src / main / AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET" />
2:互联网是否正在模拟器上运行?尝试签入模拟器的浏览器。