When i am doing XMLHttpRequest to https server with not valid certificate React Native throws exception \"The operation couldn’t be completed. (NSURLErrorDomain error -1202.)\"<
That's happening because of the new App Transport Security (ATS) feature in iOS 9 (and 8.4 too). ATS was put in place make sure that your app comforms to the best practices for secure connections. If you are hitting this error it means that you are not using a secure connection and you should really do something about this.
However, you can override the default behavior by editing the Info.plist file of your application.
There are many different flags that you can set and they are all described in an Apple official technote.
The simplest modification that will let you turn off ATS all together is the following one:
Open as > Source Code
tagYou should really really really not leave this here if you plan on releasing your app.
NSAppTransportSecurity
NSAllowsArbitraryLoads