title: Display a PDF in react-native-webview after fetch. iOS only
body: <p>I'm trying to display a downloaded pdf inside a WebView. I'm using <code>react-native-webview</code> (<a href="https://github.com/react-native-community/react-native-webview" rel="nofollow noreferrer">https://github.com/react-native-community/react-native-webview</a>) and <code>rn-fetch-blob</code> to download it.</p>
  
  <p>Basically i have a render that's just a WebView component:</p>
  
  <pre><code>if(this.state.path)
      return
          &lt;WebView
              source={{ uri: this.state.path }}
              style={{ flex: 1 }}
          /&gt;
  else return &lt;Loader /&gt;
  </code></pre>
  
  <p>This component won't get rendered until the PDF is downloaded. After the download is complete i save the path into the state and show the WebView.</p>
  
  <p>The PDF is downloaded correctly, i can manually go to the path i get in the state and open the PDF.</p>
  
  <p>If i put the URL where i download the pdf from inside the uri like this (as example this is the google policy):</p>
  
  <pre><code>source = {{ uri : "https://static.googleusercontent.com/media/www.google.com/it//intl/it/policies/privacy/google_privacy_policy_it.pdf" }}
  </code></pre>
  
  <p>It works correctly and displays the pdf inside the <code>WebView</code>.</p>
  
  <p>If i put my path to the pdf doing :</p>
  
  <pre><code>source = {{ uri : path/to/file.pdf}}
  </code></pre>
  
  <p>I get a blank screen. </p>
  
  <p>Is there a way to display a file system pdf into the <code>WebView</code> ?</p>
  
  <p>Note that i need to use the <code>WebView</code>, <code>react-native-pdf</code> and <code>react-native-pdf-view</code> are not the solution</p>