title: See swift stdout for a react-native application
body: <p>Say I have the following React Native code:</p>
  
  <pre><code>import { NativeModules, Platform } from 'react-native'
  
  if (Platform.OS === 'ios') {
    NativeModules.ExampleThing.exampleMethod('example')
  }
  </code></pre>
  
  <p>The following Swift class:</p>
  
  <pre><code>@objc(ExampleThing)
  class ExampleThing: NSObject {
    private override init() {
      print('init')
    }
  
    @objc func exampleMethod(_ message: String) -&gt; Void {
      print(message)
      //do more complex thing
    }
  }
  </code></pre>
  
  <p>and the following bridging header:</p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  #import &lt;React/RCTBridgeModule.h&gt;
  
  @interface RCT_EXTERN_MODULE(ExampleThing, NSObject)
  
  RCT_EXTERN_METHOD(exampleMethod:(NSString *)message)
  @end
  </code></pre>
  
  <p>When I run <code>react-native run-ios</code>, the app starts in the simulator just fine, e.g: the effect of <code>exampleMethod</code> (send a message to Segment.IO) occurs, ergo <code>exampleMethod</code> is quite clearly getting called correctly. However, for the life of me, I can not find where the print command is printing to. I've also tried os_log</p>