title: Javascript console.log() in a React Native WebView
body: <p>I have a WebView in my React Native app, and I need to show the logs from the Javascript that is executed within the WebView inside my React Native app.</p>
  
  <p>I think that I need to play around with WebView's <code>nativeConfig</code> prop to achieve this, but I don't know how to make it work.</p>
  
  <p>Here is my latest attempt:</p>
  
  <pre><code> &lt;WebView
      nativeConfig={{
        props: {
          webContentsDebuggingEnabled: true,
          console: new MyLogger()
        }
      }}
     ...
  
  class MyLogger {
    log = message =&gt; {
      console.log(message); // Print in RN logs for now...
    };   
  } 
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>