expo-image 3.1.0-canary-20251008-6acbc1c → 3.1.0-canary-20251008-f2d1b4a

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 (47) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/android/build.gradle +1 -1
  3. package/android/src/main/java/expo/modules/image/events/GlideRequestListener.kt +20 -12
  4. package/expo-module.config.json +1 -1
  5. package/local-maven-repo/BareExpo/expo.modules.image/{3.1.0-canary-20251008-6acbc1c/expo.modules.image-3.1.0-canary-20251008-6acbc1c-sources.jar → 3.1.0-canary-20251008-f2d1b4a/expo.modules.image-3.1.0-canary-20251008-f2d1b4a-sources.jar} +0 -0
  6. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-f2d1b4a/expo.modules.image-3.1.0-canary-20251008-f2d1b4a-sources.jar.md5 +1 -0
  7. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-f2d1b4a/expo.modules.image-3.1.0-canary-20251008-f2d1b4a-sources.jar.sha1 +1 -0
  8. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-f2d1b4a/expo.modules.image-3.1.0-canary-20251008-f2d1b4a-sources.jar.sha256 +1 -0
  9. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-f2d1b4a/expo.modules.image-3.1.0-canary-20251008-f2d1b4a-sources.jar.sha512 +1 -0
  10. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-f2d1b4a/expo.modules.image-3.1.0-canary-20251008-f2d1b4a.aar +0 -0
  11. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-f2d1b4a/expo.modules.image-3.1.0-canary-20251008-f2d1b4a.aar.md5 +1 -0
  12. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-f2d1b4a/expo.modules.image-3.1.0-canary-20251008-f2d1b4a.aar.sha1 +1 -0
  13. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-f2d1b4a/expo.modules.image-3.1.0-canary-20251008-f2d1b4a.aar.sha256 +1 -0
  14. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-f2d1b4a/expo.modules.image-3.1.0-canary-20251008-f2d1b4a.aar.sha512 +1 -0
  15. package/local-maven-repo/BareExpo/expo.modules.image/{3.1.0-canary-20251008-6acbc1c/expo.modules.image-3.1.0-canary-20251008-6acbc1c.module → 3.1.0-canary-20251008-f2d1b4a/expo.modules.image-3.1.0-canary-20251008-f2d1b4a.module} +22 -22
  16. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-f2d1b4a/expo.modules.image-3.1.0-canary-20251008-f2d1b4a.module.md5 +1 -0
  17. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-f2d1b4a/expo.modules.image-3.1.0-canary-20251008-f2d1b4a.module.sha1 +1 -0
  18. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-f2d1b4a/expo.modules.image-3.1.0-canary-20251008-f2d1b4a.module.sha256 +1 -0
  19. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-f2d1b4a/expo.modules.image-3.1.0-canary-20251008-f2d1b4a.module.sha512 +1 -0
  20. package/local-maven-repo/BareExpo/expo.modules.image/{3.1.0-canary-20251008-6acbc1c/expo.modules.image-3.1.0-canary-20251008-6acbc1c.pom → 3.1.0-canary-20251008-f2d1b4a/expo.modules.image-3.1.0-canary-20251008-f2d1b4a.pom} +1 -1
  21. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-f2d1b4a/expo.modules.image-3.1.0-canary-20251008-f2d1b4a.pom.md5 +1 -0
  22. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-f2d1b4a/expo.modules.image-3.1.0-canary-20251008-f2d1b4a.pom.sha1 +1 -0
  23. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-f2d1b4a/expo.modules.image-3.1.0-canary-20251008-f2d1b4a.pom.sha256 +1 -0
  24. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-f2d1b4a/expo.modules.image-3.1.0-canary-20251008-f2d1b4a.pom.sha512 +1 -0
  25. package/local-maven-repo/BareExpo/expo.modules.image/maven-metadata.xml +4 -4
  26. package/local-maven-repo/BareExpo/expo.modules.image/maven-metadata.xml.md5 +1 -1
  27. package/local-maven-repo/BareExpo/expo.modules.image/maven-metadata.xml.sha1 +1 -1
  28. package/local-maven-repo/BareExpo/expo.modules.image/maven-metadata.xml.sha256 +1 -1
  29. package/local-maven-repo/BareExpo/expo.modules.image/maven-metadata.xml.sha512 +1 -1
  30. package/package.json +3 -3
  31. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-6acbc1c/expo.modules.image-3.1.0-canary-20251008-6acbc1c-sources.jar.md5 +0 -1
  32. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-6acbc1c/expo.modules.image-3.1.0-canary-20251008-6acbc1c-sources.jar.sha1 +0 -1
  33. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-6acbc1c/expo.modules.image-3.1.0-canary-20251008-6acbc1c-sources.jar.sha256 +0 -1
  34. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-6acbc1c/expo.modules.image-3.1.0-canary-20251008-6acbc1c-sources.jar.sha512 +0 -1
  35. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-6acbc1c/expo.modules.image-3.1.0-canary-20251008-6acbc1c.aar +0 -0
  36. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-6acbc1c/expo.modules.image-3.1.0-canary-20251008-6acbc1c.aar.md5 +0 -1
  37. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-6acbc1c/expo.modules.image-3.1.0-canary-20251008-6acbc1c.aar.sha1 +0 -1
  38. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-6acbc1c/expo.modules.image-3.1.0-canary-20251008-6acbc1c.aar.sha256 +0 -1
  39. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-6acbc1c/expo.modules.image-3.1.0-canary-20251008-6acbc1c.aar.sha512 +0 -1
  40. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-6acbc1c/expo.modules.image-3.1.0-canary-20251008-6acbc1c.module.md5 +0 -1
  41. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-6acbc1c/expo.modules.image-3.1.0-canary-20251008-6acbc1c.module.sha1 +0 -1
  42. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-6acbc1c/expo.modules.image-3.1.0-canary-20251008-6acbc1c.module.sha256 +0 -1
  43. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-6acbc1c/expo.modules.image-3.1.0-canary-20251008-6acbc1c.module.sha512 +0 -1
  44. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-6acbc1c/expo.modules.image-3.1.0-canary-20251008-6acbc1c.pom.md5 +0 -1
  45. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-6acbc1c/expo.modules.image-3.1.0-canary-20251008-6acbc1c.pom.sha1 +0 -1
  46. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-6acbc1c/expo.modules.image-3.1.0-canary-20251008-6acbc1c.pom.sha256 +0 -1
  47. package/local-maven-repo/BareExpo/expo.modules.image/3.1.0-canary-20251008-6acbc1c/expo.modules.image-3.1.0-canary-20251008-6acbc1c.pom.sha512 +0 -1
package/CHANGELOG.md CHANGED
@@ -10,6 +10,8 @@
10
10
 
11
11
  ### 🐛 Bug fixes
12
12
 
13
+ - [Android] Fixed `You can't start or clear loads in RequestListener or Target callbacks`. ([#40212](https://github.com/expo/expo/pull/40212) by [@lukmccall](https://github.com/lukmccall))
14
+
13
15
  ### 💡 Others
14
16
 
15
17
  ## 3.0.8 — 2025-09-11
@@ -16,7 +16,7 @@ android {
16
16
  namespace "expo.modules.image"
17
17
  defaultConfig {
18
18
  versionCode 1
19
- versionName "3.1.0-canary-20251008-6acbc1c"
19
+ versionName "3.1.0-canary-20251008-f2d1b4a"
20
20
  consumerProguardFiles("proguard-rules.pro")
21
21
 
22
22
  buildConfigField("boolean", "ALLOW_GLIDE_LOGS", project.properties.get("EXPO_ALLOW_GLIDE_LOGS", "false"))
@@ -13,6 +13,7 @@ import expo.modules.image.records.ImageErrorEvent
13
13
  import expo.modules.image.records.ImageLoadEvent
14
14
  import expo.modules.image.records.ImageSource
15
15
  import expo.modules.image.svg.SVGPictureDrawable
16
+ import kotlinx.coroutines.launch
16
17
  import java.lang.ref.WeakReference
17
18
  import java.util.Locale
18
19
 
@@ -49,20 +50,27 @@ class GlideRequestListener(
49
50
  dataSource: DataSource,
50
51
  isFirstResource: Boolean
51
52
  ): Boolean {
52
- val intrinsicWidth = (resource as? SVGPictureDrawable)?.svgIntrinsicWidth ?: resource.intrinsicWidth
53
- val intrinsicHeight = (resource as? SVGPictureDrawable)?.svgIntrinsicHeight ?: resource.intrinsicHeight
54
- expoImageViewWrapper.get()?.onLoad?.invoke(
55
- ImageLoadEvent(
56
- cacheType = ImageCacheType.fromNativeValue(dataSource).name.lowercase(Locale.getDefault()),
57
- source = ImageSource(
58
- url = model.toString(),
59
- width = intrinsicWidth,
60
- height = intrinsicHeight,
61
- mediaType = null, // TODO(@lukmccall): add mediaType
62
- isAnimated = resource is Animatable
53
+ val intrinsicWidth = (resource as? SVGPictureDrawable)?.svgIntrinsicWidth
54
+ ?: resource.intrinsicWidth
55
+ val intrinsicHeight = (resource as? SVGPictureDrawable)?.svgIntrinsicHeight
56
+ ?: resource.intrinsicHeight
57
+
58
+ val imageWrapper = expoImageViewWrapper.get() ?: return false
59
+ val appContext = imageWrapper.appContext
60
+ appContext.mainQueue.launch {
61
+ imageWrapper.onLoad.invoke(
62
+ ImageLoadEvent(
63
+ cacheType = ImageCacheType.fromNativeValue(dataSource).name.lowercase(Locale.getDefault()),
64
+ source = ImageSource(
65
+ url = model.toString(),
66
+ width = intrinsicWidth,
67
+ height = intrinsicHeight,
68
+ mediaType = null, // TODO(@lukmccall): add mediaType
69
+ isAnimated = resource is Animatable
70
+ )
63
71
  )
64
72
  )
65
- )
73
+ }
66
74
 
67
75
  return false
68
76
  }
@@ -8,7 +8,7 @@
8
8
  "publication": {
9
9
  "groupId": "BareExpo",
10
10
  "artifactId": "expo.modules.image",
11
- "version": "3.1.0-canary-20251008-6acbc1c",
11
+ "version": "3.1.0-canary-20251008-f2d1b4a",
12
12
  "repository": "local-maven-repo"
13
13
  }
14
14
  }
@@ -0,0 +1 @@
1
+ 25203611ac6f6af3891ed91c3e2f494097a01d6146e81dc9ca6aa75a1d8b1ae2d4c5507949165048322cc7236355697636cc7b93e4a2483e4dc9a52fb9fc9251
@@ -0,0 +1 @@
1
+ 182104a1c340160f7771fd11c22a4a9a8423029fc6afb66456272845fa0f3304718ed0eebf1113a51d7f1f8fa386b42483668e54609d0e3feefb11ce648b9cd7
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "BareExpo",
5
5
  "module": "expo.modules.image",
6
- "version": "3.1.0-canary-20251008-6acbc1c",
6
+ "version": "3.1.0-canary-20251008-f2d1b4a",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
@@ -54,13 +54,13 @@
54
54
  ],
55
55
  "files": [
56
56
  {
57
- "name": "expo.modules.image-3.1.0-canary-20251008-6acbc1c.aar",
58
- "url": "expo.modules.image-3.1.0-canary-20251008-6acbc1c.aar",
59
- "size": 288265,
60
- "sha512": "89145721503c4b11e37ce632dddfaf7bca70965c6c8e4d98fbe57ac59ebf190177dd653cf95309decdd838213df6bca271c00403276f8bd626a29905c577f852",
61
- "sha256": "72e8ad72de1085e1f788ab37e716f0120d673c3410926712471176a8f3671e53",
62
- "sha1": "7feca34002eb36f01cbdf354395d3f83336fe339",
63
- "md5": "672b81042c157f02ea7c5277f22ad813"
57
+ "name": "expo.modules.image-3.1.0-canary-20251008-f2d1b4a.aar",
58
+ "url": "expo.modules.image-3.1.0-canary-20251008-f2d1b4a.aar",
59
+ "size": 290113,
60
+ "sha512": "182104a1c340160f7771fd11c22a4a9a8423029fc6afb66456272845fa0f3304718ed0eebf1113a51d7f1f8fa386b42483668e54609d0e3feefb11ce648b9cd7",
61
+ "sha256": "a9b800ea55f968b7fae4ce667ac768187b1cda260c1734b6b238b793953d7697",
62
+ "sha1": "83977b00c6a95654c2b628a5af2607801dfe0413",
63
+ "md5": "9c3c1b816ed9bf182c7a41419c6770bf"
64
64
  }
65
65
  ]
66
66
  },
@@ -143,13 +143,13 @@
143
143
  ],
144
144
  "files": [
145
145
  {
146
- "name": "expo.modules.image-3.1.0-canary-20251008-6acbc1c.aar",
147
- "url": "expo.modules.image-3.1.0-canary-20251008-6acbc1c.aar",
148
- "size": 288265,
149
- "sha512": "89145721503c4b11e37ce632dddfaf7bca70965c6c8e4d98fbe57ac59ebf190177dd653cf95309decdd838213df6bca271c00403276f8bd626a29905c577f852",
150
- "sha256": "72e8ad72de1085e1f788ab37e716f0120d673c3410926712471176a8f3671e53",
151
- "sha1": "7feca34002eb36f01cbdf354395d3f83336fe339",
152
- "md5": "672b81042c157f02ea7c5277f22ad813"
146
+ "name": "expo.modules.image-3.1.0-canary-20251008-f2d1b4a.aar",
147
+ "url": "expo.modules.image-3.1.0-canary-20251008-f2d1b4a.aar",
148
+ "size": 290113,
149
+ "sha512": "182104a1c340160f7771fd11c22a4a9a8423029fc6afb66456272845fa0f3304718ed0eebf1113a51d7f1f8fa386b42483668e54609d0e3feefb11ce648b9cd7",
150
+ "sha256": "a9b800ea55f968b7fae4ce667ac768187b1cda260c1734b6b238b793953d7697",
151
+ "sha1": "83977b00c6a95654c2b628a5af2607801dfe0413",
152
+ "md5": "9c3c1b816ed9bf182c7a41419c6770bf"
153
153
  }
154
154
  ]
155
155
  },
@@ -163,13 +163,13 @@
163
163
  },
164
164
  "files": [
165
165
  {
166
- "name": "expo.modules.image-3.1.0-canary-20251008-6acbc1c-sources.jar",
167
- "url": "expo.modules.image-3.1.0-canary-20251008-6acbc1c-sources.jar",
168
- "size": 58949,
169
- "sha512": "4ebf4b8e53329eab04a9e0311bf5d3b59398c8ce5da86c5177115d2d89035e981d7a136543eb1a7f445371f9655cda5532b003741e79097612eeb5f434b841cc",
170
- "sha256": "780572de062fff31902d0b163c3c12bc7df7757c127297cc4e0f8059a08cc2a4",
171
- "sha1": "93c83fb7dffded6e43319fdecfb269808f8dc4ed",
172
- "md5": "6a4e067677b775d612c8f29565d38f63"
166
+ "name": "expo.modules.image-3.1.0-canary-20251008-f2d1b4a-sources.jar",
167
+ "url": "expo.modules.image-3.1.0-canary-20251008-f2d1b4a-sources.jar",
168
+ "size": 59013,
169
+ "sha512": "25203611ac6f6af3891ed91c3e2f494097a01d6146e81dc9ca6aa75a1d8b1ae2d4c5507949165048322cc7236355697636cc7b93e4a2483e4dc9a52fb9fc9251",
170
+ "sha256": "a889dd83c5c21e88cae922b14c82113597b078650e0f122e4ab5259b39581a8c",
171
+ "sha1": "3a35cc6fe1f53a8dd8399f6cf6c06fecc6140348",
172
+ "md5": "e4298a0f2f51a90d9f30c6706f227222"
173
173
  }
174
174
  ]
175
175
  }
@@ -0,0 +1 @@
1
+ 52fd9beedd394f47ad91f1bdbd121e7bd2c71e7b7f0eb05d42cfb0ff90415066aaf01aa0891df5acf6c7b528f9bc45235e5f01da7441d9ef17aa6e7cb645dbc6
@@ -9,7 +9,7 @@
9
9
  <modelVersion>4.0.0</modelVersion>
10
10
  <groupId>BareExpo</groupId>
11
11
  <artifactId>expo.modules.image</artifactId>
12
- <version>3.1.0-canary-20251008-6acbc1c</version>
12
+ <version>3.1.0-canary-20251008-f2d1b4a</version>
13
13
  <packaging>aar</packaging>
14
14
  <name>expo.modules.image</name>
15
15
  <url>https://github.com/expo/expo</url>
@@ -0,0 +1 @@
1
+ c176b40b2c877fb17c2658ee262cfdb276bf4aa856c05a17c3656b654d9b7b8ffb8a2bbe1a972eae93cda0d5e375807a8b8fb61ed82ba42b99a8b79ae891199f
@@ -3,11 +3,11 @@
3
3
  <groupId>BareExpo</groupId>
4
4
  <artifactId>expo.modules.image</artifactId>
5
5
  <versioning>
6
- <latest>3.1.0-canary-20251008-6acbc1c</latest>
7
- <release>3.1.0-canary-20251008-6acbc1c</release>
6
+ <latest>3.1.0-canary-20251008-f2d1b4a</latest>
7
+ <release>3.1.0-canary-20251008-f2d1b4a</release>
8
8
  <versions>
9
- <version>3.1.0-canary-20251008-6acbc1c</version>
9
+ <version>3.1.0-canary-20251008-f2d1b4a</version>
10
10
  </versions>
11
- <lastUpdated>20251008132030</lastUpdated>
11
+ <lastUpdated>20251008205641</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- d75b89f9080b7ac070508ac700e17e85
1
+ 08ba3ef629ab139861c86e52ef8b0a02
@@ -1 +1 @@
1
- 028a42c2981568a4b5b0a526a40d5f1ec759e177
1
+ b10f1fa2c03028b7d4fa73ed287a86cf5c75c68c
@@ -1 +1 @@
1
- 5fd67905d60b20eb9135e056747bdc7c06b0b750541225db491f493b8f122e13
1
+ 48a95e8e1704d3a0b6295b0d8064e3929a9c9a8e3cd72f09be91f7ba1d3eaf73
@@ -1 +1 @@
1
- 6d0604a982eca7de7c2d70fe8122834cde38018b4ef5a15fed0c4e5ee34cdf7eded2f425a1ec4dacee45906a01a542bbceb9698ad80da9de167cfedbba6d00d4
1
+ 1c2b030de97ef12753ec6335e8fc6d04d553b990b0c102de11153c46329b1677bc51a07af2be36e805cb8ed455d431065315b6e0fca8124dbbbb85f7b4d9a886
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "expo-image",
3
3
  "title": "Expo Image",
4
- "version": "3.1.0-canary-20251008-6acbc1c",
4
+ "version": "3.1.0-canary-20251008-f2d1b4a",
5
5
  "description": "A cross-platform, performant image component for React Native and Expo with Web support",
6
6
  "main": "src/index.ts",
7
7
  "types": "build/index.d.ts",
@@ -29,10 +29,10 @@
29
29
  "license": "MIT",
30
30
  "dependencies": {},
31
31
  "devDependencies": {
32
- "expo-module-scripts": "5.0.8-canary-20251008-6acbc1c"
32
+ "expo-module-scripts": "5.0.8-canary-20251008-f2d1b4a"
33
33
  },
34
34
  "peerDependencies": {
35
- "expo": "55.0.0-canary-20251008-6acbc1c",
35
+ "expo": "55.0.0-canary-20251008-f2d1b4a",
36
36
  "react": "*",
37
37
  "react-native": "*",
38
38
  "react-native-web": "*"
@@ -1 +0,0 @@
1
- 4ebf4b8e53329eab04a9e0311bf5d3b59398c8ce5da86c5177115d2d89035e981d7a136543eb1a7f445371f9655cda5532b003741e79097612eeb5f434b841cc
@@ -1 +0,0 @@
1
- 72e8ad72de1085e1f788ab37e716f0120d673c3410926712471176a8f3671e53
@@ -1 +0,0 @@
1
- 89145721503c4b11e37ce632dddfaf7bca70965c6c8e4d98fbe57ac59ebf190177dd653cf95309decdd838213df6bca271c00403276f8bd626a29905c577f852
@@ -1 +0,0 @@
1
- 85c347a61b8238a1cd1e1fcbd80bed1484ebfc7374814fb385db3b670a4b9ef7971b943e23a5e8259179eb542051a7e8ae227bc6ea673886bef35b4622a4c8aa
@@ -1 +0,0 @@
1
- bf4f5cf8b42e2d6dda58cd17db492f0d67890804bb23b7847fb89a55d92a0aff
@@ -1 +0,0 @@
1
- a905ee30af6d4c3b37124e4d3e58abd39e9df76601f618308d3dbc4f101345b15de0478126fd58b1e91962df8db96ffa767d824ef71a1b7ba1fcc64799dc7af6