React-native 0.40+ fetch againts自签名证书 [英] React-native 0.40+ fetch againts self-signed certificate
问题描述
我找到了这个答案但添加:
$(SRCROOT)/../ node_modules / react-native / Libraries / Network
作为递归类型的可见性 RCTHTTPRequestHandler.h。
或者你可以添加 $(SRCROOT)/../ node_modules / react-native / Libraries
查看子项目中的所有文件。
I found this answer https://stackoverflow.com/a/41703745/1646117 but I am not able to make it work with React-native 0.40.
They changed the way how headers are imported and now "RCTHTTPRequestHandler.h" is not visible from user source code. Is there a way to make this work permanently? (we can do it with changing react-native code but the change goes away after adding new module).
Added images:
What I need to accomplish
Here's the problem
You can see that at the bottom of the build phases copy headers phase there is the RCTBridgeModule.h header and so no error when importing it. But there is not RCTHTTPRequestHandler.h header so my code cant import it.
Follow this but add:
$(SRCROOT)/../node_modules/react-native/Libraries/Network
as recursive type for visibility RCTHTTPRequestHandler.h.
Or you may add $(SRCROOT)/../node_modules/react-native/Libraries
for visibility all files in subprojects.
这篇关于React-native 0.40+ fetch againts自签名证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!