title: Swift bridging header not exporting React Native types
body: <p>I'm trying to create a native (iOS) module for a React Native app using Swift. I want to expose a method on the module that returns a promise, using functions of type <code>RCTPromiseResolveBlock</code> and <code>RCTPromiseRejectBlock</code>, both of which are declared in React Native's <code>RCTBridgeModule.h</code> header. However, my build fails with the message "Use of undeclared type..." for both of these types.</p>
  
  <p>I had already created a bridging header (automatically using Xcode) for another purpose, so I believe importing <code>React/RCTBridgeModule.h</code> is all that I'd need to supply the types mentioned above. Presumably I've misconfigured something, as this doesn't fix the issue. I've tried setting up a fresh project and everything works as expected there, but I can't seem to find a difference that would cause my project's build to fail. </p>
  
  <p>Some relevant configuration details:</p>
  
  <ul>
  <li>Bridging header named <code>&lt;ProjectName&gt;-Bridging-Header.h</code> and stored in my source directory. I moved it around to confirm that Xcode is finding it (the build fails differently when it's not in the right place).</li>
  <li>The contents of the bridging header is simply: <code>#import &lt;React/RCTBridgeModule.h&gt;</code></li>
  <li>In my project build settings:
  
  <ul>
  <li><code>&lt;ProjectName&gt;-Bridging-Header.h</code> is configured as the "Objective-C Bridging Header"</li>
  <li>"Install Objective-C Compatibility Header" is set to "Yes"</li>
  <li>"Precompile Bridging Header" is set to "Yes"</li>
  </ul></li>
  <li>When I type alias the missing types the project builds and runs as expected</li>
  <li>I have some third-party Swift libraries installed (one using <code>react-native link</code> and one using a Git submodule)</li>
  <li>I've tried cleaning the build folder, reinstalling <code>node_modules</code> and deleting Xcode derived data, all to no effect.</li>
  </ul>
  
  <p>Is my project misconfigured or have I otherwise missed something important?</p>