@sphereon/ui-components.credential-branding 0.2.1-unstable.31 → 0.2.1-unstable.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,15 +37,28 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  exports.__esModule = true;
39
39
  exports.ReactNativeImagePreloader = void 0;
40
- var FastImage = require('react-native-fast-image');
41
40
  var ReactNativeImagePreloader = (function () {
42
41
  function ReactNativeImagePreloader() {
43
42
  }
44
43
  ReactNativeImagePreloader.prototype.preload = function (sources) {
45
44
  return __awaiter(this, void 0, void 0, function () {
45
+ var promises;
46
46
  return __generator(this, function (_a) {
47
- FastImage.preload(sources);
48
- return [2];
47
+ switch (_a.label) {
48
+ case 0:
49
+ promises = sources.map(function (source) {
50
+ return new Promise(function (resolve, reject) {
51
+ var img = new Image();
52
+ img.src = source.uri;
53
+ img.onload = function () { return resolve(); };
54
+ img.onerror = function (error) { return reject(error); };
55
+ });
56
+ });
57
+ return [4, Promise.all(promises)];
58
+ case 1:
59
+ _a.sent();
60
+ return [2];
61
+ }
49
62
  });
50
63
  });
51
64
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sphereon/ui-components.credential-branding",
3
3
  "private": false,
4
- "version": "0.2.1-unstable.31+5f7746b",
4
+ "version": "0.2.1-unstable.32+552a747",
5
5
  "description": "SSI UI components credential Branding",
6
6
  "repository": "git@github.com:Sphereon-Opensource/UI-Components.git",
7
7
  "author": "Sphereon <dev@sphereon.com>",
@@ -31,7 +31,7 @@
31
31
  "@sphereon/ssi-sdk.core": "0.23.5-unstable.74+9c3c2083",
32
32
  "@sphereon/ssi-sdk.data-store": "0.23.5-unstable.74+9c3c2083",
33
33
  "@sphereon/ssi-types": "0.23.5-unstable.74+9c3c2083",
34
- "@sphereon/ui-components.core": "0.2.1-unstable.31+5f7746b",
34
+ "@sphereon/ui-components.core": "0.2.1-unstable.32+552a747",
35
35
  "@veramo/core": "4.2.0",
36
36
  "@veramo/utils": "4.2.0",
37
37
  "i18n-js": "^3.8.0",
@@ -48,5 +48,5 @@
48
48
  "peerDependencies": {
49
49
  "react": ">= 18"
50
50
  },
51
- "gitHead": "5f7746b335cc357bbd00aaa845223cf3702b3d1a"
51
+ "gitHead": "552a747128c30a8e71f27a05c7d8a4da4e021789"
52
52
  }