title: View a PDF in React Native
body: <p>Can anyone please provide sample code for displaying a PDF in React Native?  iOS and Android.</p>
  
  <p>This is what I've tried:</p>
  
  <pre><code>  render: function() {
      return &lt;WebView
        source={require('./my.pdf')}
        /&gt;
    }
  </code></pre>
  
  <p>^ This results in a Red Screen of Death with the "Unable to resolve module" error.</p>
  
  <pre><code>  render: function() {
      return &lt;WebView
        source={{uri: 'my.pdf'}}
        /&gt;
    }
  </code></pre>
  
  <p>^ This gives an "Error Loading Page" message in the WebView.  "The requested URL was not found on this server"</p>
  
  <p>I know iOS is capable of showing a PDF in a UIWebView. I assume Android can do the same.  There must be something in how the source is specified that I'm missing.</p>