title: Cache full images folder on apploading (React Native Expo)
body: <p>I want to cache hundreds of images while the splash-screen is displayed.</p>
  
  <p>Following the guide from : <a href="https://docs.expo.io/versions/latest/sdk/app-loading#__next" rel="noreferrer">https://docs.expo.io/versions/latest/sdk/app-loading#__next</a></p>
  
  <p>I dont want to type one by one like :</p>
  
  <pre><code> async _cacheResourcesAsync() {
      const images = [
        require('./assets/images/image1.png'),
        require('./assets/images/image2.png'),
        require('./assets/images/image3.png'),
        require('./assets/images/image4.png'),
        require('./assets/images/image5.png'),
        require('./assets/images/image6.png'),
        ...
      ];
  
      const cacheImages = images.map((image) =&gt; {
        return Asset.fromModule(image).downloadAsync();
      });
      return Promise.all(cacheImages)
  
    }
  </code></pre>
  
  <p>I'v noticed that I cannot do something like (./assets/images/*) :</p>
  
  <pre><code>async _cacheResourcesAsync() {
          const images = [
            require('./assets/images/*')
            ...
          ];
  }
  </code></pre>
  
  <p>Is there a way to reference the full folder on _cacheResourcesAsync() ?</p>