"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = require("react");
var _reactNative = require("react-native");
/**
 * Copyright (c) JOB TODAY S.A. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 */

const useImagePrefetch = images => {
  (0, _react.useEffect)(() => {
    images.forEach(image => {
      //@ts-ignore
      if (image.uri) {
        //@ts-ignore
        return _reactNative.Image.prefetch(image.uri);
      }
    });
  }, []);
};
var _default = exports.default = useImagePrefetch;
//# sourceMappingURL=useImagePrefetch.js.map