title: React Native - Is it possible to download multiple assets using rn-fetch-blob?
body: <p>Is there a way to download an array of objects (of .mp4, .jpg, etc...) using rn-fetch-blob? Right now this code is grabbing a single .mp4 url, but what if I have an array of .mp4 mixed in with some .jpg? How would I do such a thing?</p>
  
  <p>say I have data:</p>
  
  <pre><code>const data = [
    {media: url.jpg}, 
    {media: url.mp4}, 
    {media: url.mp4}, 
    {media: url.jpg}
  ]
  </code></pre>
  
  <p>How do I setup my fetch so it will loop through data, and I can do something after CameraRoll?</p>
  
  <pre><code>RNFetchBlob.config({
    fileCache: true,
    appendExt: 'mp4',
  }).fetch(
      'GET',
      'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4',
    )
    .then(res =&gt; {
      CameraRoll.saveToCameraRoll(res.path())
        .then(async () =&gt; {
          // works
        })
        .catch(err =&gt; console.log('err:', err));
    });
  </code></pre>
  
  <p>Thanks in advance for the help!</p>
  
  <hr>
  
  <p>Edit: I haven't tested this, but just looking at what I wrote, is this going to be an issue?</p>
  
  <pre><code>for ( let foo of data ) {
  
    // write out some code to see if the url has .mp4 or .jpg extension?
  
    RNFetchBlob.config({
      fileCache: true,
      appendExt: 'mp4', // variable of the correct extension
    }).fetch(
        'GET',
        foo.media, // from the data object?
      )
      .then(res =&gt; {
        CameraRoll.saveToCameraRoll(res.path())
          .then(async () =&gt; {
            // works
          })
          .catch(err =&gt; console.log('err:', err));
      });
  }
  </code></pre>
  
  <p>Or is there a much simpler way of doing this?</p>