0
我用图像,这样的:未示出阵营天然http请求
<Image source={{uri: 'http://exmple.url/image.png'}}
style={{
width: 60 ,
height: 60 ,
}}
resizeMode={"contain"} />
图像。但是,如果我粘贴任何HTTPS URL图像显示。怎么了?
我用图像,这样的:未示出阵营天然http请求
<Image source={{uri: 'http://exmple.url/image.png'}}
style={{
width: 60 ,
height: 60 ,
}}
resizeMode={"contain"} />
图像。但是,如果我粘贴任何HTTPS URL图像显示。怎么了?
您需要在您的ios项目的info.plist中启用任意加载。默认情况下,ios不允许http请求。看我以前的类似answer
谢谢。我加入info.plist ' NSAllowsArbitraryLoads ' 但是不行。也许需要重建项目?但它是如何制造的? –
Wheelie
您将需要从xcode重建项目。 – while1
对不起,但...不工作 我在xcode中建立项目_Product => Build_ And _build and run_。 在xcode我看到NSAllowsArbitraryLoads值_true_ – Wheelie