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.