Reputation: 1714
In React-Native version 30 certain images are not loading.
this is working
<Image style={styles.messageImage}
source={{uri:'https://facebook.github.io/react/img/logo_og.png'}}/>
This doesn't work
<Image style={styles.messageImage}
source={{uri:'http://i.imgur.com/lDz3wVn.png'}}/>
Looks like images with https
link are working while those with http
link are not working. Is anyone else facing this issue?
Thanks.
Upvotes: 3
Views: 4383
Reputation: 9300
Allow Arbitrary Loads
Boolean
and set it to Yes
Xcode by default blocks all the http request and only allows https request. Because it is the right thing to do.
Here is a blog post about App Transport Security: https://ste.vn/2015/06/10/configuring-app-transport-security-ios-9-osx-10-11/
Upvotes: 16