【发布时间】:2017-08-28 07:28:03
【问题描述】:
我想显示来自外部 url 的照片:
<Image
style={styles /* Some React Native styling */}
source={{uri: 'http://facebook.github.io/react/img/logo_og.png'}}
/>
但我收到以下错误:
XMLHttpRequest 无法加载...
【问题讨论】:
-
你的
Image组件是什么样的? -
@PaulFitzgerald 是原生 react-vr Image 组件,以上代码为 react-vr 文档示例。但它不起作用
-
抱歉,刚刚注意到。尝试在网址中将
http替换为https -
我猜普通的
<img src='https://...' />不行,对吧? -
@lumio 这不是 JSX。这是 react-vr!
标签: javascript reactjs react-native react-360