title: How to show pdf file in react.js
body: <p>i just try to sample application for ios, android and web using react-native-web. Here i have to download a pdf file from server and while click the showpdf button the downloaded file need to open in both android application as well as windows browser also. for browser download i have used the following code </p>
  
  <pre><code> fetch('http://www.pdf995.com/samples/pdf.pdf',{ 
        method: 'GET', 
        mode: 'no-cors',
        responseType: 'blob', // important
      headers: {       
        'Content-Type': 'application/json',
      },})
              .then(response =&gt; {
          const url = window.URL.createObjectURL(new Blob([response.data]));
          const link = document.createElement('a');
          link.href = url;
          link.setAttribute('download', item.pdfFileName);
          document.body.appendChild(link);
          link.click();
          this.setState({
            pdf_url:url
          });
  </code></pre>
  
  <p>after download i need to open this pdf file. please help if anyone know this. thanks. </p>