title: How can i download file from a url in react-native for iOS
body: <p>I am unable to download images form url in react-native , i am using 'react-native-fetch-blob' it's working fine for android but not iOS.
  let PictureDir = fs.dirs.PictureDir;
  Here is PicureDir is undefined for iOS.</p>
  
  <p>Here is the code : </p>
  
  <pre><code>const { config, fs } = RNFetchBlob;
  
  let PictureDir = Platform.OS === 'ios' ? fs.dirs.DocumentDir : fs.dirs.PictureDir;
  let options = {
    fileCache: true,
    addAndroidDownloads : {
      useDownloadManager : true, // setting it to true will use the device's native download manager and will be shown in the notification bar.
      notification : false,
      path:  PictureDir + "/me_"+Math.floor(date.getTime() + date.getSeconds() / 2), // this is the path where your downloaded file will live in
      description : 'Downloading image.'
    }
  }
  
  config(options).fetch('GET', "https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?cs=srgb&amp;dl=beauty-bloom-blue-67636.jpg&amp;fm=jpg").then((res) =&gt; {
  }) ;
  </code></pre>