title: RN fetch blob download docx or pdf from URL in IOS
body: <p><strong>What is done</strong>:</p>
  
  <p>Implemented in Android and its getting downloaded in specific <code>DCIM directory</code> in android.
  In ios using <code>DocumentDir</code> to download the pdf or docx file. Using  <code>"rn-fetch-blob": "^0.12.0"</code>;</p>
  
  <p><strong>Error</strong>:</p>
  
  <p>In IOS it says the message in console :</p>
  
  <blockquote>
    <p>The file saved to 
    /var/mobile/Containers/Data/Application/E6FDC2DD-7FCA-44DC-85C4-A275078F8825/Documents/wow13.pdf</p>
  </blockquote>
  
  <p>The code to download is something like this :</p>
  
  <pre><code>downloadFileOnSuccess = async () =&gt; {
      let dirs =
        Platform.OS == 'ios'
          ? RNFetchBlob.fs.dirs.DocumentDir
          : RNFetchBlob.fs.dirs.DCIMDir;
      console.log(dirs, 'document path');
      RNFetchBlob.config({
        // response data will be saved to this path if it has access right.
  
        fileCache: true,
        path: dirs + `/wow13.pdf`,
      })
        .fetch(
          'GET',
          'https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf',
          {
            //some headers ..
          },
        )
        .then(res =&gt; {
          // the path should be dirs.DocumentDir + 'path-to-file.anything'
          console.log('The file saved to ', res.path());
        });
    };
  </code></pre>
  
  <p>But i cannot get where the file is downloaded in my iphone 7 real device. Is there any permission i'm missing in IOS? Havent added any permission for IOS. </p>