我想在iPhone模擬器在HTTP URI作爲源加載圖像。但是屏幕上沒有顯示任何可以與檢查員看到的線框。 如果你在Android中加載相同的代碼,它工作正常,如果你使用https URI而不是http,它也可以正常工作。通過https陣營本地加載形象工程,而HTTP不起作用
示例代碼:
render() {
return (
<View>
<Image
source={{uri:https://facebook.github.io/react/img/logo_og.png'}} // works
// source={{uri: http://facebook.github.io/react/img/logo_og.png'}} // doesn't work
style={{width: 400, height: 400}}
/>
</View>
);
}