expo-asset 58.0.12 → 58.0.13

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.
Files changed (44) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/android/build.gradle +2 -2
  3. package/build/Asset.fx.js +1 -1
  4. package/build/Asset.fx.js.map +1 -1
  5. package/build/AssetSourceResolver.native.d.ts +1 -2
  6. package/build/AssetSourceResolver.native.js +1 -2
  7. package/build/AssetSourceResolver.native.js.map +1 -1
  8. package/build/resolveAssetSource.native.d.ts +3 -3
  9. package/build/resolveAssetSource.native.js +2 -3
  10. package/build/resolveAssetSource.native.js.map +1 -1
  11. package/build/ts-declarations/react-native-assets.d.ts +0 -43
  12. package/local-maven-repo/expo/modules/asset/expo.modules.asset/{58.0.12/expo.modules.asset-58.0.12.module → 58.0.13/expo.modules.asset-58.0.13.module} +7 -7
  13. package/local-maven-repo/expo/modules/asset/expo.modules.asset/58.0.13/expo.modules.asset-58.0.13.module.md5 +1 -0
  14. package/local-maven-repo/expo/modules/asset/expo.modules.asset/58.0.13/expo.modules.asset-58.0.13.module.sha1 +1 -0
  15. package/local-maven-repo/expo/modules/asset/expo.modules.asset/58.0.13/expo.modules.asset-58.0.13.module.sha256 +1 -0
  16. package/local-maven-repo/expo/modules/asset/expo.modules.asset/58.0.13/expo.modules.asset-58.0.13.module.sha512 +1 -0
  17. package/local-maven-repo/expo/modules/asset/expo.modules.asset/{58.0.12/expo.modules.asset-58.0.12.pom → 58.0.13/expo.modules.asset-58.0.13.pom} +1 -1
  18. package/local-maven-repo/expo/modules/asset/expo.modules.asset/58.0.13/expo.modules.asset-58.0.13.pom.md5 +1 -0
  19. package/local-maven-repo/expo/modules/asset/expo.modules.asset/58.0.13/expo.modules.asset-58.0.13.pom.sha1 +1 -0
  20. package/local-maven-repo/expo/modules/asset/expo.modules.asset/58.0.13/expo.modules.asset-58.0.13.pom.sha256 +1 -0
  21. package/local-maven-repo/expo/modules/asset/expo.modules.asset/58.0.13/expo.modules.asset-58.0.13.pom.sha512 +1 -0
  22. package/package.json +2 -2
  23. package/src/Asset.fx.ts +2 -2
  24. package/src/AssetSourceResolver.native.ts +2 -2
  25. package/src/resolveAssetSource.native.ts +3 -3
  26. package/src/ts-declarations/react-native-assets.d.ts +0 -43
  27. package/local-maven-repo/expo/modules/asset/expo.modules.asset/58.0.12/expo.modules.asset-58.0.12.module.md5 +0 -1
  28. package/local-maven-repo/expo/modules/asset/expo.modules.asset/58.0.12/expo.modules.asset-58.0.12.module.sha1 +0 -1
  29. package/local-maven-repo/expo/modules/asset/expo.modules.asset/58.0.12/expo.modules.asset-58.0.12.module.sha256 +0 -1
  30. package/local-maven-repo/expo/modules/asset/expo.modules.asset/58.0.12/expo.modules.asset-58.0.12.module.sha512 +0 -1
  31. package/local-maven-repo/expo/modules/asset/expo.modules.asset/58.0.12/expo.modules.asset-58.0.12.pom.md5 +0 -1
  32. package/local-maven-repo/expo/modules/asset/expo.modules.asset/58.0.12/expo.modules.asset-58.0.12.pom.sha1 +0 -1
  33. package/local-maven-repo/expo/modules/asset/expo.modules.asset/58.0.12/expo.modules.asset-58.0.12.pom.sha256 +0 -1
  34. package/local-maven-repo/expo/modules/asset/expo.modules.asset/58.0.12/expo.modules.asset-58.0.12.pom.sha512 +0 -1
  35. /package/local-maven-repo/expo/modules/asset/expo.modules.asset/{58.0.12/expo.modules.asset-58.0.12-sources.jar → 58.0.13/expo.modules.asset-58.0.13-sources.jar} +0 -0
  36. /package/local-maven-repo/expo/modules/asset/expo.modules.asset/{58.0.12/expo.modules.asset-58.0.12-sources.jar.md5 → 58.0.13/expo.modules.asset-58.0.13-sources.jar.md5} +0 -0
  37. /package/local-maven-repo/expo/modules/asset/expo.modules.asset/{58.0.12/expo.modules.asset-58.0.12-sources.jar.sha1 → 58.0.13/expo.modules.asset-58.0.13-sources.jar.sha1} +0 -0
  38. /package/local-maven-repo/expo/modules/asset/expo.modules.asset/{58.0.12/expo.modules.asset-58.0.12-sources.jar.sha256 → 58.0.13/expo.modules.asset-58.0.13-sources.jar.sha256} +0 -0
  39. /package/local-maven-repo/expo/modules/asset/expo.modules.asset/{58.0.12/expo.modules.asset-58.0.12-sources.jar.sha512 → 58.0.13/expo.modules.asset-58.0.13-sources.jar.sha512} +0 -0
  40. /package/local-maven-repo/expo/modules/asset/expo.modules.asset/{58.0.12/expo.modules.asset-58.0.12.aar → 58.0.13/expo.modules.asset-58.0.13.aar} +0 -0
  41. /package/local-maven-repo/expo/modules/asset/expo.modules.asset/{58.0.12/expo.modules.asset-58.0.12.aar.md5 → 58.0.13/expo.modules.asset-58.0.13.aar.md5} +0 -0
  42. /package/local-maven-repo/expo/modules/asset/expo.modules.asset/{58.0.12/expo.modules.asset-58.0.12.aar.sha1 → 58.0.13/expo.modules.asset-58.0.13.aar.sha1} +0 -0
  43. /package/local-maven-repo/expo/modules/asset/expo.modules.asset/{58.0.12/expo.modules.asset-58.0.12.aar.sha256 → 58.0.13/expo.modules.asset-58.0.13.aar.sha256} +0 -0
  44. /package/local-maven-repo/expo/modules/asset/expo.modules.asset/{58.0.12/expo.modules.asset-58.0.12.aar.sha512 → 58.0.13/expo.modules.asset-58.0.13.aar.sha512} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 58.0.13
4
+
5
+ ### Patch Changes
6
+
7
+ - [Internal] Use `Image.resolveAssetSource` from `react-native` instead of the `Libraries/Image/resolveAssetSource` deep import. ([#51092](https://github.com/expo/expo/pull/51092) by [@huntie](https://github.com/huntie))
8
+ - [Internal] Import React Native internals from `react-native/unstable-internals-do-not-use`. ([#50860](https://github.com/expo/expo/pull/50860) by [@huntie](https://github.com/huntie))
9
+
3
10
  ## 58.0.12
4
11
 
5
12
  ### Patch Changes
@@ -4,13 +4,13 @@ plugins {
4
4
  }
5
5
 
6
6
  group = 'expo.modules.asset'
7
- version = '58.0.12'
7
+ version = '58.0.13'
8
8
 
9
9
  android {
10
10
  namespace "expo.modules.asset"
11
11
  defaultConfig {
12
12
  versionCode 1
13
- versionName "58.0.12"
13
+ versionName "58.0.13"
14
14
  }
15
15
  }
16
16
 
package/build/Asset.fx.js CHANGED
@@ -12,7 +12,7 @@ if (IS_ENV_WITH_LOCAL_ASSETS) {
12
12
  if (asset.uri.startsWith(ANDROID_EMBEDDED_URL_BASE_RESOURCE)) {
13
13
  // TODO(@kitten): See https://github.com/expo/expo/commit/ec940b57a87d99ab4f1d06d87126e662c3f04f04#r155340943
14
14
  // It's unclear whether this is sound since this may be our own AssetSourceResolver, which doesn't have this method
15
- // Please compare `AssetSourceResolver` type from `react-native/Libraries/Image/AssetSourceResolver` against `./AssetSourceResolver`
15
+ // Please compare `AssetSourceResolver` type from `react-native/unstable-internals-do-not-use` against `./AssetSourceResolver`
16
16
  return resolver.resourceIdentifierWithoutScale();
17
17
  }
18
18
  return resolver.fromSource(asset.downloaded ? asset.localUri : asset.uri);
@@ -1 +1 @@
1
- {"version":3,"sources":["Asset.fx.ts"],"sourcesContent":[null],"names":["Asset","ANDROID_EMBEDDED_URL_BASE_RESOURCE","IS_ENV_WITH_LOCAL_ASSETS","resolveAssetSource","setCustomSourceTransformer","setTransformer","expoAssetTransformer","resolver","asset","fileHashes","fromMetadata","uri","startsWith","resourceIdentifierWithoutScale","fromSource","downloaded","localUri","defaultAsset"],"mappings":"AAEA,SAASA,KAAK,EAAEC,kCAAkC,QAAQ,UAAU;AACpE,SAASC,wBAAwB,QAAQ,kBAAkB;AAC3D,OAAOC,sBAAsBC,0BAA0B,QAAQ,uBAAuB;AAEtF,+FAA+F;AAC/F,IAAIF,0BAA0B;IAC5B,MAAMG,iBACJF,mBAAmBC,0BAA0B,IAAIA;IACnDC,eAAe,SAASC,qBAAqBC,QAAQ;QACnD,IAAI;YACF,2FAA2F;YAC3F,IAAI,gBAAgBA,SAASC,KAAK,IAAID,SAASC,KAAK,CAACC,UAAU,EAAE;gBAC/D,MAAMD,QAAQR,MAAMU,YAAY,CAACH,SAASC,KAAK;gBAC/C,IAAIA,MAAMG,GAAG,CAACC,UAAU,CAACX,qCAAqC;oBAC5D,6GAA6G;oBAC7G,mHAAmH;oBACnH,oIAAoI;oBACpI,OAAO,AACLM,SACAM,8BAA8B;gBAClC;gBACA,OAAON,SAASO,UAAU,CAACN,MAAMO,UAAU,GAAGP,MAAMQ,QAAQ,GAAIR,MAAMG,GAAG;YAC3E,OAAO;gBACL,OAAOJ,SAASU,YAAY;YAC9B;QACF,EAAE,OAAM;YACN,OAAOV,SAASU,YAAY;QAC9B;IACF;AACF"}
1
+ {"version":3,"sources":["Asset.fx.ts"],"sourcesContent":[null],"names":["Asset","ANDROID_EMBEDDED_URL_BASE_RESOURCE","IS_ENV_WITH_LOCAL_ASSETS","resolveAssetSource","setCustomSourceTransformer","setTransformer","expoAssetTransformer","resolver","asset","fileHashes","fromMetadata","uri","startsWith","resourceIdentifierWithoutScale","fromSource","downloaded","localUri","defaultAsset"],"mappings":"AAEA,SAASA,KAAK,EAAEC,kCAAkC,QAAQ,UAAU;AACpE,SAASC,wBAAwB,QAAQ,kBAAkB;AAC3D,OAAOC,sBAAsBC,0BAA0B,QAAQ,uBAAuB;AAEtF,+FAA+F;AAC/F,IAAIF,0BAA0B;IAC5B,MAAMG,iBACJF,mBAAmBC,0BAA0B,IAAIA;IACnDC,eAAe,SAASC,qBAAqBC,QAAQ;QACnD,IAAI;YACF,2FAA2F;YAC3F,IAAI,gBAAgBA,SAASC,KAAK,IAAID,SAASC,KAAK,CAACC,UAAU,EAAE;gBAC/D,MAAMD,QAAQR,MAAMU,YAAY,CAACH,SAASC,KAAK;gBAC/C,IAAIA,MAAMG,GAAG,CAACC,UAAU,CAACX,qCAAqC;oBAC5D,6GAA6G;oBAC7G,mHAAmH;oBACnH,8HAA8H;oBAC9H,OAAO,AACLM,SACAM,8BAA8B;gBAClC;gBACA,OAAON,SAASO,UAAU,CAACN,MAAMO,UAAU,GAAGP,MAAMQ,QAAQ,GAAIR,MAAMG,GAAG;YAC3E,OAAO;gBACL,OAAOJ,SAASU,YAAY;YAC9B;QACF,EAAE,OAAM;YACN,OAAOV,SAASU,YAAY;QAC9B;IACF;AACF"}
@@ -1,3 +1,2 @@
1
- import AssetSourceResolver from 'react-native/Libraries/Image/AssetSourceResolver';
1
+ import { AssetSourceResolver } from 'react-native/unstable-internals-do-not-use';
2
2
  export default AssetSourceResolver;
3
- export * from 'react-native/Libraries/Image/AssetSourceResolver';
@@ -1,5 +1,4 @@
1
- import AssetSourceResolver from 'react-native/Libraries/Image/AssetSourceResolver';
1
+ import { AssetSourceResolver } from 'react-native/unstable-internals-do-not-use';
2
2
  export default AssetSourceResolver;
3
- export * from 'react-native/Libraries/Image/AssetSourceResolver';
4
3
 
5
4
  //# sourceMappingURL=AssetSourceResolver.native.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["AssetSourceResolver.native.ts"],"sourcesContent":[null],"names":["AssetSourceResolver"],"mappings":"AAAA,OAAOA,yBAAyB,mDAAmD;AACnF,eAAeA,oBAAoB;AACnC,cAAc,mDAAmD"}
1
+ {"version":3,"sources":["AssetSourceResolver.native.ts"],"sourcesContent":[null],"names":["AssetSourceResolver"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,6CAA6C;AAEjF,eAAeA,oBAAoB"}
@@ -1,3 +1,3 @@
1
- import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource';
2
- export default resolveAssetSource;
3
- export * from 'react-native/Libraries/Image/resolveAssetSource';
1
+ import { Image } from 'react-native';
2
+ declare const _default: typeof Image.resolveAssetSource;
3
+ export default _default;
@@ -1,5 +1,4 @@
1
- import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource';
2
- export default resolveAssetSource;
3
- export * from 'react-native/Libraries/Image/resolveAssetSource';
1
+ import { Image } from 'react-native';
2
+ export default Image.resolveAssetSource;
4
3
 
5
4
  //# sourceMappingURL=resolveAssetSource.native.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["resolveAssetSource.native.ts"],"sourcesContent":[null],"names":["resolveAssetSource"],"mappings":"AAAA,OAAOA,wBAAwB,kDAAkD;AACjF,eAAeA,mBAAmB;AAClC,cAAc,kDAAkD"}
1
+ {"version":3,"sources":["resolveAssetSource.native.ts"],"sourcesContent":[null],"names":["Image","resolveAssetSource"],"mappings":"AAAA,SAASA,KAAK,QAAQ,eAAe;AAErC,eAAeA,MAAMC,kBAAkB,CAAC"}
@@ -1,46 +1,3 @@
1
- declare module 'react-native/Libraries/Image/AssetSourceResolver' {
2
- import type { PackagerAsset } from 'react-native/asset-registry';
3
-
4
- export type ResolvedAssetSource = {
5
- __packager_asset: boolean;
6
- width?: number | null;
7
- height?: number | null;
8
- uri: string;
9
- scale: number;
10
- };
11
-
12
- export default class AssetSourceResolver {
13
- serverUrl: string | null;
14
- jsbundleUrl: string | null;
15
- asset: PackagerAsset & { fileHashes?: string[] };
16
-
17
- constructor(serverUrl: string | null, jsbundleUrl: string | null, asset: PackagerAsset);
18
-
19
- isLoadedFromServer(): boolean;
20
- isLoadedFromFileSystem(): boolean;
21
- defaultAsset(): ResolvedAssetSource;
22
- assetServerURL(): ResolvedAssetSource;
23
- scaledAssetPath(): ResolvedAssetSource;
24
- scaledAssetURLNearBundle(): ResolvedAssetSource;
25
- resourceIdentifierWithoutScale(): ResolvedAssetSource;
26
- drawableFolderInBundle(): ResolvedAssetSource;
27
- fromSource(source: string): ResolvedAssetSource;
28
-
29
- static pickScale(scales: number[], deviceScale: number): number;
30
- }
31
- }
32
-
33
- declare module 'react-native/Libraries/Image/resolveAssetSource' {
34
- import type { ResolvedAssetSource } from 'react-native/Libraries/Image/AssetSourceResolver';
35
- import type AssetSourceResolver from 'react-native/Libraries/Image/AssetSourceResolver';
36
-
37
- export default function resolveAssetSource(source: any): ResolvedAssetSource | null;
38
-
39
- export function setCustomSourceTransformer(
40
- transformer: (resolver: AssetSourceResolver) => ResolvedAssetSource
41
- ): void;
42
- }
43
-
44
1
  // The `react-native/asset-registry` build entry point ships untyped. Its exports are the
45
2
  // `AssetRegistry` API from `react-native`, which Expo's Metro resolver serves on every platform.
46
3
  declare module 'react-native/asset-registry' {
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "expo.modules.asset",
5
5
  "module": "expo.modules.asset",
6
- "version": "58.0.12",
6
+ "version": "58.0.13",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "files": [
26
26
  {
27
- "name": "expo.modules.asset-58.0.12.aar",
28
- "url": "expo.modules.asset-58.0.12.aar",
27
+ "name": "expo.modules.asset-58.0.13.aar",
28
+ "url": "expo.modules.asset-58.0.13.aar",
29
29
  "size": 30506,
30
30
  "sha512": "488b36ee63485a81f93ea026c034315250fc970aa635148fc231019b4123ba5718bfe342a019e2d492224857da29bbbbbd1c74490113e2992f3ec155d5d2b7aa",
31
31
  "sha256": "6638572bc255e7dd1653db31deff0bc5150b52a04b0fc4e9d9db5ac63e7cbbf8",
@@ -78,8 +78,8 @@
78
78
  ],
79
79
  "files": [
80
80
  {
81
- "name": "expo.modules.asset-58.0.12.aar",
82
- "url": "expo.modules.asset-58.0.12.aar",
81
+ "name": "expo.modules.asset-58.0.13.aar",
82
+ "url": "expo.modules.asset-58.0.13.aar",
83
83
  "size": 30506,
84
84
  "sha512": "488b36ee63485a81f93ea026c034315250fc970aa635148fc231019b4123ba5718bfe342a019e2d492224857da29bbbbbd1c74490113e2992f3ec155d5d2b7aa",
85
85
  "sha256": "6638572bc255e7dd1653db31deff0bc5150b52a04b0fc4e9d9db5ac63e7cbbf8",
@@ -98,8 +98,8 @@
98
98
  },
99
99
  "files": [
100
100
  {
101
- "name": "expo.modules.asset-58.0.12-sources.jar",
102
- "url": "expo.modules.asset-58.0.12-sources.jar",
101
+ "name": "expo.modules.asset-58.0.13-sources.jar",
102
+ "url": "expo.modules.asset-58.0.13-sources.jar",
103
103
  "size": 4034,
104
104
  "sha512": "9a481faff8f2de1bf629dd0f4a66db1685a5dd4455cc881deb2adbc04471ee8dd096b8c65d2b0ff1460c39011cb9ee9f24eb4273a08496a8ae5e683a8da0b099",
105
105
  "sha256": "7088014d29ebd4efb4c3911b5d21ea193a7b935c494abf052ada90f00e914f55",
@@ -0,0 +1 @@
1
+ 95287d37936f575200b7698e0d3efb24b10ca39c53f62233b99b7718665609a2
@@ -0,0 +1 @@
1
+ 586459ca76a53047216001ccbe605393de676a90f6e7a42ce5d997b6d712e4225d7d173ed522c4f38b6cfc349721d1d57821e80a8cbc3df23733405c150876bb
@@ -9,7 +9,7 @@
9
9
  <modelVersion>4.0.0</modelVersion>
10
10
  <groupId>expo.modules.asset</groupId>
11
11
  <artifactId>expo.modules.asset</artifactId>
12
- <version>58.0.12</version>
12
+ <version>58.0.13</version>
13
13
  <packaging>aar</packaging>
14
14
  <name>expo.modules.asset</name>
15
15
  <url>https://github.com/expo/expo</url>
@@ -0,0 +1 @@
1
+ 69b753b85e06b6ca68f9f4857e5961554f393312e6e4fbc00c1c48e1bb644e8e
@@ -0,0 +1 @@
1
+ 9711ad4d7a378d4955cf35b1f423f851873d20012eeabf1d8ca7efc97f8349c14d2c65c61f92251dd01a87706d9dbda00ebdce764fe7e6455b091b6a2c6b37de
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-asset",
3
- "version": "58.0.12",
3
+ "version": "58.0.13",
4
4
  "description": "An Expo universal module to download assets and pass them into other APIs",
5
5
  "keywords": [
6
6
  "asset",
@@ -57,7 +57,7 @@
57
57
  "@types/node": "^22.14.0",
58
58
  "@types/react": "~19.3.0",
59
59
  "@types/react-native__assets": "^1.0.3",
60
- "expo-module-scripts": "56.0.7"
60
+ "expo-module-scripts": "56.0.8"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "expo": "*",
package/src/Asset.fx.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { default as AssetSourceResolver } from 'react-native/Libraries/Image/AssetSourceResolver';
1
+ import type { AssetSourceResolver } from 'react-native/unstable-internals-do-not-use';
2
2
 
3
3
  import { Asset, ANDROID_EMBEDDED_URL_BASE_RESOURCE } from './Asset';
4
4
  import { IS_ENV_WITH_LOCAL_ASSETS } from './PlatformUtils';
@@ -16,7 +16,7 @@ if (IS_ENV_WITH_LOCAL_ASSETS) {
16
16
  if (asset.uri.startsWith(ANDROID_EMBEDDED_URL_BASE_RESOURCE)) {
17
17
  // TODO(@kitten): See https://github.com/expo/expo/commit/ec940b57a87d99ab4f1d06d87126e662c3f04f04#r155340943
18
18
  // It's unclear whether this is sound since this may be our own AssetSourceResolver, which doesn't have this method
19
- // Please compare `AssetSourceResolver` type from `react-native/Libraries/Image/AssetSourceResolver` against `./AssetSourceResolver`
19
+ // Please compare `AssetSourceResolver` type from `react-native/unstable-internals-do-not-use` against `./AssetSourceResolver`
20
20
  return (
21
21
  resolver as unknown as AssetSourceResolver
22
22
  ).resourceIdentifierWithoutScale() as any;
@@ -1,3 +1,3 @@
1
- import AssetSourceResolver from 'react-native/Libraries/Image/AssetSourceResolver';
1
+ import { AssetSourceResolver } from 'react-native/unstable-internals-do-not-use';
2
+
2
3
  export default AssetSourceResolver;
3
- export * from 'react-native/Libraries/Image/AssetSourceResolver';
@@ -1,3 +1,3 @@
1
- import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource';
2
- export default resolveAssetSource;
3
- export * from 'react-native/Libraries/Image/resolveAssetSource';
1
+ import { Image } from 'react-native';
2
+
3
+ export default Image.resolveAssetSource;
@@ -1,46 +1,3 @@
1
- declare module 'react-native/Libraries/Image/AssetSourceResolver' {
2
- import type { PackagerAsset } from 'react-native/asset-registry';
3
-
4
- export type ResolvedAssetSource = {
5
- __packager_asset: boolean;
6
- width?: number | null;
7
- height?: number | null;
8
- uri: string;
9
- scale: number;
10
- };
11
-
12
- export default class AssetSourceResolver {
13
- serverUrl: string | null;
14
- jsbundleUrl: string | null;
15
- asset: PackagerAsset & { fileHashes?: string[] };
16
-
17
- constructor(serverUrl: string | null, jsbundleUrl: string | null, asset: PackagerAsset);
18
-
19
- isLoadedFromServer(): boolean;
20
- isLoadedFromFileSystem(): boolean;
21
- defaultAsset(): ResolvedAssetSource;
22
- assetServerURL(): ResolvedAssetSource;
23
- scaledAssetPath(): ResolvedAssetSource;
24
- scaledAssetURLNearBundle(): ResolvedAssetSource;
25
- resourceIdentifierWithoutScale(): ResolvedAssetSource;
26
- drawableFolderInBundle(): ResolvedAssetSource;
27
- fromSource(source: string): ResolvedAssetSource;
28
-
29
- static pickScale(scales: number[], deviceScale: number): number;
30
- }
31
- }
32
-
33
- declare module 'react-native/Libraries/Image/resolveAssetSource' {
34
- import type { ResolvedAssetSource } from 'react-native/Libraries/Image/AssetSourceResolver';
35
- import type AssetSourceResolver from 'react-native/Libraries/Image/AssetSourceResolver';
36
-
37
- export default function resolveAssetSource(source: any): ResolvedAssetSource | null;
38
-
39
- export function setCustomSourceTransformer(
40
- transformer: (resolver: AssetSourceResolver) => ResolvedAssetSource
41
- ): void;
42
- }
43
-
44
1
  // The `react-native/asset-registry` build entry point ships untyped. Its exports are the
45
2
  // `AssetRegistry` API from `react-native`, which Expo's Metro resolver serves on every platform.
46
3
  declare module 'react-native/asset-registry' {
@@ -1 +0,0 @@
1
- ba0ee668a9f6ea86f9c60e16e87bf4a40109500b979273b3f502c88e4e2bc575
@@ -1 +0,0 @@
1
- a7f3cf02eb10cae31361d861876d2f5be7af01415a275c0f991f5d1ae25047358aa854b2318edf6288ee950f9b95fe4eecad5cfe7a099982aedb30c5773e0cb9
@@ -1 +0,0 @@
1
- 1641feff0280f1712b29521964e3530067159ca8
@@ -1 +0,0 @@
1
- ec2c53399fb5bd29661e31ff08d5d666f7c758ffd614d82a5b15c593d323691e
@@ -1 +0,0 @@
1
- 7a0e18bcd58570afcdae48048323aa166128fe9273494b2e632ac2666e4b0648e89cfdab3d09fac25e0733bdd47a4e76240e3fc1ae5614d17dd163133b7b5cc6