RN提示服务器连接不上。
其中的原因之一有可能是在代码中用到了http访问服务器,而在iOS 9之后如果要用http访问就必须在info.plist
文件里面添加一下内容
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>localhost</key>
<dict>
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>