use_http_links_in_react_native.mo
Owner: Julien Nassar
Sponsor: Alexandre Moureaux
Prerequisites (~ 2 minutes)
Context
Using HTTP links (in image sources for example) will not work on iOS devices/emulators. By default, the HTTP protocol is disabled. API calls and Image sources using HTTP protocol will not work on iOS, and no errors will be displayed.
Steps (~ 2 minutes)
Using the default configuration, the images in this page will not be displayed:
The source uri uses the HTTP protocol
how to display these images:
By default iOS forbids calls using http protocol. Normally you should use secured http protocol (https), if you don't have that opportunity, you have to allow the domain using http protocol by modifying the <Project>/ios/<Project>/info.plist
:
in the NSExceptionDomains section, add your domain name and permission
Last updated