反应本机获取。 CertPathValidatorException 错误

React-native fetch. CertPathValidatorException error

完整错误

java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

我的目标平台是Android。我想问题出在后端的自签名 ssl 证书中。而我无法改变它。所以问题。有什么方法可以将此证书安装到我的设备(相信它)以便我可以发出获取请求吗?

问题已通过 https://www.npmjs.com/package/react-native-pinch 包解决。