0

I use image, like this:

<Image source={{uri: 'http://exmple.url/image.png'}}
       style={{
           width:  60 ,
           height:  60 ,
       }}
       resizeMode={"contain"} />

Image is not shown. But if I paste any HTTPS URL Image is shown. What's wrong?

Alex M
  • 2,756
  • 7
  • 29
  • 35

1 Answers1

1

You will need to enable arbitrary load in info.plist of your ios project. By default ios don't allow http requests. See my earlier similar answer

Community
  • 1
  • 1
while1
  • 3,320
  • 19
  • 12
  • Thanks. I added in info.plist `NSAllowsArbitraryLoads ` But not work. Maybe need rebuild project? But how it make? – Wheelie Aug 14 '16 at 11:15
  • Sorry, but... not work I build project in xcode _Product => Build_ And _build and run_ . In xcode i see NSAllowsArbitraryLoads with value _true_ – Wheelie Aug 14 '16 at 11:42
  • @Wheelie can you try to render the image at the root of the app and see if that works? ( with NSAllows.. thing set to true, of course.) – nabn Aug 14 '16 at 14:18