expo-image 56.0.4 → 56.0.6
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.
- package/CHANGELOG.md +13 -0
- package/android/build.gradle +2 -2
- package/android/src/main/java/expo/modules/image/ImageLoadTask.kt +2 -5
- package/android/src/main/java/expo/modules/image/records/ImageLoadOptions.kt +1 -2
- package/build/Image.d.ts.map +1 -1
- package/expo-module.config.json +1 -1
- package/ios/ImageView.swift +25 -11
- package/local-maven-repo/expo/modules/image/expo.modules.image/{56.0.4/expo.modules.image-56.0.4-sources.jar → 56.0.6/expo.modules.image-56.0.6-sources.jar} +0 -0
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.6/expo.modules.image-56.0.6-sources.jar.md5 +1 -0
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.6/expo.modules.image-56.0.6-sources.jar.sha1 +1 -0
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.6/expo.modules.image-56.0.6-sources.jar.sha256 +1 -0
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.6/expo.modules.image-56.0.6-sources.jar.sha512 +1 -0
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.6/expo.modules.image-56.0.6.aar +0 -0
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.6/expo.modules.image-56.0.6.aar.md5 +1 -0
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.6/expo.modules.image-56.0.6.aar.sha1 +1 -0
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.6/expo.modules.image-56.0.6.aar.sha256 +1 -0
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.6/expo.modules.image-56.0.6.aar.sha512 +1 -0
- package/local-maven-repo/expo/modules/image/expo.modules.image/{56.0.4/expo.modules.image-56.0.4.module → 56.0.6/expo.modules.image-56.0.6.module} +22 -22
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.6/expo.modules.image-56.0.6.module.md5 +1 -0
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.6/expo.modules.image-56.0.6.module.sha1 +1 -0
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.6/expo.modules.image-56.0.6.module.sha256 +1 -0
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.6/expo.modules.image-56.0.6.module.sha512 +1 -0
- package/local-maven-repo/expo/modules/image/expo.modules.image/{56.0.4/expo.modules.image-56.0.4.pom → 56.0.6/expo.modules.image-56.0.6.pom} +1 -1
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.6/expo.modules.image-56.0.6.pom.md5 +1 -0
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.6/expo.modules.image-56.0.6.pom.sha1 +1 -0
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.6/expo.modules.image-56.0.6.pom.sha256 +1 -0
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.6/expo.modules.image-56.0.6.pom.sha512 +1 -0
- package/local-maven-repo/expo/modules/image/expo.modules.image/maven-metadata.xml +4 -4
- package/local-maven-repo/expo/modules/image/expo.modules.image/maven-metadata.xml.md5 +1 -1
- package/local-maven-repo/expo/modules/image/expo.modules.image/maven-metadata.xml.sha1 +1 -1
- package/local-maven-repo/expo/modules/image/expo.modules.image/maven-metadata.xml.sha256 +1 -1
- package/local-maven-repo/expo/modules/image/expo.modules.image/maven-metadata.xml.sha512 +1 -1
- package/package.json +3 -3
- package/prebuilds/output/debug/xcframeworks/ExpoImage.tar.gz +0 -0
- package/prebuilds/output/release/xcframeworks/ExpoImage.tar.gz +0 -0
- package/src/Image.tsx +5 -2
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.4/expo.modules.image-56.0.4-sources.jar.md5 +0 -1
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.4/expo.modules.image-56.0.4-sources.jar.sha1 +0 -1
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.4/expo.modules.image-56.0.4-sources.jar.sha256 +0 -1
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.4/expo.modules.image-56.0.4-sources.jar.sha512 +0 -1
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.4/expo.modules.image-56.0.4.aar +0 -0
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.4/expo.modules.image-56.0.4.aar.md5 +0 -1
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.4/expo.modules.image-56.0.4.aar.sha1 +0 -1
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.4/expo.modules.image-56.0.4.aar.sha256 +0 -1
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.4/expo.modules.image-56.0.4.aar.sha512 +0 -1
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.4/expo.modules.image-56.0.4.module.md5 +0 -1
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.4/expo.modules.image-56.0.4.module.sha1 +0 -1
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.4/expo.modules.image-56.0.4.module.sha256 +0 -1
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.4/expo.modules.image-56.0.4.module.sha512 +0 -1
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.4/expo.modules.image-56.0.4.pom.md5 +0 -1
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.4/expo.modules.image-56.0.4.pom.sha1 +0 -1
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.4/expo.modules.image-56.0.4.pom.sha256 +0 -1
- package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.4/expo.modules.image-56.0.4.pom.sha512 +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,19 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 56.0.6 — 2026-05-20
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- [Android] Fixed `tintColor` in `loadAsync`/`useImage` requiring API 26. ([#45981](https://github.com/expo/expo/pull/45981) by [@lukmccall](https://github.com/lukmccall))
|
|
18
|
+
|
|
19
|
+
## 56.0.5 — 2026-05-19
|
|
20
|
+
|
|
21
|
+
### 🐛 Bug fixes
|
|
22
|
+
|
|
23
|
+
- [iOS] Fixed `recyclingKey` not clearing cached `placeholderImage`, causing stale blurhash placeholders in recycled list cells. ([#44762](https://github.com/expo/expo/pull/44762) by [@simonronec](https://github.com/simonronec))
|
|
24
|
+
- [iOS] Fixed loading Xcode asset catalog images by resource name. ([#45686](https://github.com/expo/expo/pull/45686) by [@mvincentong](https://github.com/mvincentong))
|
|
25
|
+
|
|
13
26
|
## 56.0.4 — 2026-05-06
|
|
14
27
|
|
|
15
28
|
_This version does not introduce any user-facing changes._
|
package/android/build.gradle
CHANGED
|
@@ -13,13 +13,13 @@ plugins {
|
|
|
13
13
|
apply plugin: 'com.google.devtools.ksp'
|
|
14
14
|
|
|
15
15
|
group = 'expo.modules.image'
|
|
16
|
-
version = '56.0.
|
|
16
|
+
version = '56.0.6'
|
|
17
17
|
|
|
18
18
|
android {
|
|
19
19
|
namespace "expo.modules.image"
|
|
20
20
|
defaultConfig {
|
|
21
21
|
versionCode 1
|
|
22
|
-
versionName "56.0.
|
|
22
|
+
versionName "56.0.6"
|
|
23
23
|
consumerProguardFiles("proguard-rules.pro")
|
|
24
24
|
|
|
25
25
|
buildConfigField("boolean", "ALLOW_GLIDE_LOGS", project.properties.get("EXPO_ALLOW_GLIDE_LOGS", "false"))
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
package expo.modules.image
|
|
2
2
|
|
|
3
3
|
import android.graphics.drawable.BitmapDrawable
|
|
4
|
-
import android.os.Build
|
|
5
|
-
import androidx.annotation.RequiresApi
|
|
6
4
|
import com.bumptech.glide.request.RequestOptions
|
|
7
5
|
import com.bumptech.glide.Glide
|
|
8
6
|
import expo.modules.image.records.ImageLoadOptions
|
|
@@ -17,7 +15,6 @@ open class ImageLoadTask(
|
|
|
17
15
|
private val source: SourceMap,
|
|
18
16
|
private val options: ImageLoadOptions
|
|
19
17
|
) {
|
|
20
|
-
@RequiresApi(Build.VERSION_CODES.O)
|
|
21
18
|
suspend fun load(): Image {
|
|
22
19
|
val context =
|
|
23
20
|
this@ImageLoadTask.appContext.reactContext ?: throw Exceptions.ReactContextLost()
|
|
@@ -33,14 +30,14 @@ open class ImageLoadTask(
|
|
|
33
30
|
.load(model)
|
|
34
31
|
.centerInside()
|
|
35
32
|
.customize(options.tintColor) {
|
|
36
|
-
apply(RequestOptions().set(CustomOptions.tintColor, it
|
|
33
|
+
apply(RequestOptions().set(CustomOptions.tintColor, it))
|
|
37
34
|
}
|
|
38
35
|
.submit(options.maxWidth, options.maxHeight)
|
|
39
36
|
.get()
|
|
40
37
|
}
|
|
41
38
|
|
|
42
39
|
if (drawable is BitmapDrawable && options.tintColor != null) {
|
|
43
|
-
drawable.setTint(options.tintColor
|
|
40
|
+
drawable.setTint(options.tintColor)
|
|
44
41
|
}
|
|
45
42
|
|
|
46
43
|
return Image(drawable)
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
package expo.modules.image.records
|
|
2
2
|
|
|
3
|
-
import android.graphics.Color
|
|
4
3
|
import com.bumptech.glide.request.target.Target.SIZE_ORIGINAL
|
|
5
4
|
import expo.modules.kotlin.records.Field
|
|
6
5
|
import expo.modules.kotlin.records.Record
|
|
@@ -13,5 +12,5 @@ data class ImageLoadOptions(
|
|
|
13
12
|
@Field
|
|
14
13
|
val maxHeight: Int = SIZE_ORIGINAL,
|
|
15
14
|
@Field
|
|
16
|
-
val tintColor:
|
|
15
|
+
val tintColor: Int? = null
|
|
17
16
|
) : Record
|
package/build/Image.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../src/Image.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../src/Image.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAA6D,KAAK,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpG,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,UAAU,EACV,QAAQ,EACR,WAAW,EAGZ,MAAM,eAAe,CAAC;AA+BvB,qBAAa,KAAM,SAAQ,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC;IACxD,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IACjD,gBAAgB,EAAE,KAAK,CAAC,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;gBAEnC,KAAK,EAAE,UAAU;IAO7B,gBAAgB,2BAMd;IAEF;;OAEG;IACH,MAAM,CAAC,KAAK,kBAAqB;IAEjC;;;;;;;;;;OAUG;WACU,QAAQ,CACnB,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EACvB,WAAW,CAAC,EAAE,oBAAoB,CAAC,aAAa,CAAC,GAChD,OAAO,CAAC,OAAO,CAAC;IACnB;;;;;;;;;;OAUG;WACU,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC;IAoBhG;;;;;;;OAOG;WACU,gBAAgB,IAAI,OAAO,CAAC,OAAO,CAAC;IAIjD;;;;;;;OAOG;WACU,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC;IAI/C;;;;;;;;;OASG;WACU,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAIxE;;;;OAIG;IACH,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI;IAIrD;;;;;;;;OAQG;WACU,qBAAqB,CAChC,MAAM,EAAE,MAAM,GAAG,QAAQ,EACzB,kBAAkB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GACvE,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAIzB;;;;;;OAMG;WACU,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC;IAI/E;;;;OAIG;IACG,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrC;;;;OAIG;IACG,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAIpC;;;;OAIG;IACG,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAIxC;;;;OAIG;IACG,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IAI1C;;;;OAIG;IACG,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAIlC;;;;;;OAMG;WACU,SAAS,CACpB,MAAM,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,EACrC,OAAO,CAAC,EAAE,gBAAgB,GACzB,OAAO,CAAC,QAAQ,CAAC;IAQpB,MAAM;CA6EP"}
|
package/expo-module.config.json
CHANGED
package/ios/ImageView.swift
CHANGED
|
@@ -67,6 +67,7 @@ public final class ImageView: ExpoView {
|
|
|
67
67
|
didSet {
|
|
68
68
|
if oldValue != nil && recyclingKey != oldValue {
|
|
69
69
|
sdImageView.image = nil
|
|
70
|
+
placeholderImage = nil
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
73
|
}
|
|
@@ -150,7 +151,11 @@ public final class ImageView: ExpoView {
|
|
|
150
151
|
return
|
|
151
152
|
}
|
|
152
153
|
if isViewEmpty {
|
|
153
|
-
|
|
154
|
+
if placeholderImage != nil {
|
|
155
|
+
displayPlaceholderIfNecessary()
|
|
156
|
+
} else {
|
|
157
|
+
loadPlaceholderIfNecessary()
|
|
158
|
+
}
|
|
154
159
|
}
|
|
155
160
|
guard let source = bestSource else {
|
|
156
161
|
displayPlaceholderIfNecessary()
|
|
@@ -347,17 +352,9 @@ public final class ImageView: ExpoView {
|
|
|
347
352
|
}
|
|
348
353
|
|
|
349
354
|
private func maybeRenderLocalAsset(from source: ImageSource) -> Bool {
|
|
350
|
-
let path
|
|
351
|
-
// .path() on iOS 16 would remove the leading slash, but it doesn't on tvOS 16 🙃
|
|
352
|
-
// It also crashes with EXC_BREAKPOINT when parsing data:image uris
|
|
353
|
-
// manually drop the leading slash below iOS 16
|
|
354
|
-
if let path = source.uri?.path {
|
|
355
|
-
return String(path.dropFirst())
|
|
356
|
-
}
|
|
357
|
-
return nil
|
|
358
|
-
}()
|
|
355
|
+
let path = localAssetName(from: source.uri)
|
|
359
356
|
|
|
360
|
-
if let path,
|
|
357
|
+
if let path, let local = UIImage(named: path) {
|
|
361
358
|
renderSourceImage(local)
|
|
362
359
|
return true
|
|
363
360
|
}
|
|
@@ -841,3 +838,20 @@ public final class ImageView: ExpoView {
|
|
|
841
838
|
}
|
|
842
839
|
#endif
|
|
843
840
|
}
|
|
841
|
+
|
|
842
|
+
func localAssetName(from url: URL?) -> String? {
|
|
843
|
+
guard let url, url.scheme == nil else {
|
|
844
|
+
return nil
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
var path = url.path
|
|
848
|
+
guard !path.isEmpty else {
|
|
849
|
+
return nil
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
if path.hasPrefix("/") {
|
|
853
|
+
path.removeFirst()
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
return path.isEmpty ? nil : path
|
|
857
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ca7f78fcf0e762579e236bf839e38c0a
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
8feab2d2adcb6ab59cce09012426b8b8e4aa0f59
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
85620b1726e96bf395205a020283816caf86fdd6e46f063c3c715753d02117a3
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
f92318602df933605da04a05eb09b3bf1e8a9adc9b53090079a4d5a0bfd60278a57de5fcfcc646fd3fd0c868db061cc903485d556004c77368ee358471b3d03e
|
package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.6/expo.modules.image-56.0.6.aar
ADDED
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
346c59f352720de2eabc51ab8b210ba6
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
9c971b6a410f51f0f7c03161d06a0f03b48a2eb3
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
33be9e415818028e7bbdf33a0182cce79eac34013d266e1a656bec9108f6365f
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ac320a8853461554cacb9f77206987b4d8a1a1687bc649f774b8d6c5ec84160f18b4b8e929d943e8c6024e971bf662958d4d538eb3e6207bddb708464bcb75dc
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"component": {
|
|
4
4
|
"group": "expo.modules.image",
|
|
5
5
|
"module": "expo.modules.image",
|
|
6
|
-
"version": "56.0.
|
|
6
|
+
"version": "56.0.6",
|
|
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-56.0.
|
|
58
|
-
"url": "expo.modules.image-56.0.
|
|
59
|
-
"size":
|
|
60
|
-
"sha512": "
|
|
61
|
-
"sha256": "
|
|
62
|
-
"sha1": "
|
|
63
|
-
"md5": "
|
|
57
|
+
"name": "expo.modules.image-56.0.6.aar",
|
|
58
|
+
"url": "expo.modules.image-56.0.6.aar",
|
|
59
|
+
"size": 319677,
|
|
60
|
+
"sha512": "ac320a8853461554cacb9f77206987b4d8a1a1687bc649f774b8d6c5ec84160f18b4b8e929d943e8c6024e971bf662958d4d538eb3e6207bddb708464bcb75dc",
|
|
61
|
+
"sha256": "33be9e415818028e7bbdf33a0182cce79eac34013d266e1a656bec9108f6365f",
|
|
62
|
+
"sha1": "9c971b6a410f51f0f7c03161d06a0f03b48a2eb3",
|
|
63
|
+
"md5": "346c59f352720de2eabc51ab8b210ba6"
|
|
64
64
|
}
|
|
65
65
|
]
|
|
66
66
|
},
|
|
@@ -157,13 +157,13 @@
|
|
|
157
157
|
],
|
|
158
158
|
"files": [
|
|
159
159
|
{
|
|
160
|
-
"name": "expo.modules.image-56.0.
|
|
161
|
-
"url": "expo.modules.image-56.0.
|
|
162
|
-
"size":
|
|
163
|
-
"sha512": "
|
|
164
|
-
"sha256": "
|
|
165
|
-
"sha1": "
|
|
166
|
-
"md5": "
|
|
160
|
+
"name": "expo.modules.image-56.0.6.aar",
|
|
161
|
+
"url": "expo.modules.image-56.0.6.aar",
|
|
162
|
+
"size": 319677,
|
|
163
|
+
"sha512": "ac320a8853461554cacb9f77206987b4d8a1a1687bc649f774b8d6c5ec84160f18b4b8e929d943e8c6024e971bf662958d4d538eb3e6207bddb708464bcb75dc",
|
|
164
|
+
"sha256": "33be9e415818028e7bbdf33a0182cce79eac34013d266e1a656bec9108f6365f",
|
|
165
|
+
"sha1": "9c971b6a410f51f0f7c03161d06a0f03b48a2eb3",
|
|
166
|
+
"md5": "346c59f352720de2eabc51ab8b210ba6"
|
|
167
167
|
}
|
|
168
168
|
]
|
|
169
169
|
},
|
|
@@ -177,13 +177,13 @@
|
|
|
177
177
|
},
|
|
178
178
|
"files": [
|
|
179
179
|
{
|
|
180
|
-
"name": "expo.modules.image-56.0.
|
|
181
|
-
"url": "expo.modules.image-56.0.
|
|
182
|
-
"size":
|
|
183
|
-
"sha512": "
|
|
184
|
-
"sha256": "
|
|
185
|
-
"sha1": "
|
|
186
|
-
"md5": "
|
|
180
|
+
"name": "expo.modules.image-56.0.6-sources.jar",
|
|
181
|
+
"url": "expo.modules.image-56.0.6-sources.jar",
|
|
182
|
+
"size": 59251,
|
|
183
|
+
"sha512": "f92318602df933605da04a05eb09b3bf1e8a9adc9b53090079a4d5a0bfd60278a57de5fcfcc646fd3fd0c868db061cc903485d556004c77368ee358471b3d03e",
|
|
184
|
+
"sha256": "85620b1726e96bf395205a020283816caf86fdd6e46f063c3c715753d02117a3",
|
|
185
|
+
"sha1": "8feab2d2adcb6ab59cce09012426b8b8e4aa0f59",
|
|
186
|
+
"md5": "ca7f78fcf0e762579e236bf839e38c0a"
|
|
187
187
|
}
|
|
188
188
|
]
|
|
189
189
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
feff7fce29b46774c3148ed9651e7e3f
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
82f7ad98ecd2fab118f71a0422160222335a5c32
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
a42bf15bc96c65f38b021180f18b0ad4479ba059237c237d8bfc07822903d56c
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
a58f40a175dbc29508b7f14cddc536c7c63d15b3c4621467442bf298b2980db63a89b767883946a5e2e3c483f2ecad082d8d74d77bba6658796749e91c871799
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<modelVersion>4.0.0</modelVersion>
|
|
10
10
|
<groupId>expo.modules.image</groupId>
|
|
11
11
|
<artifactId>expo.modules.image</artifactId>
|
|
12
|
-
<version>56.0.
|
|
12
|
+
<version>56.0.6</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
|
+
0f82d6e99442a7e2028cf0771e2c0c7a
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2221be43cb143d61348cb63f08b0930ecf315869
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
663b08e6e4a2706aae48b2b84a8fb3c42f51a800ba379d3627f27bb82e612eb2
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0826b1605d7c53391ae9d2b707eb7d2933fb50b202fc30ce07792eab1f04737cbc2eaa8d59e0133c4a54becd4a2f0f962cf8b66052a1c6fd8b425add6fcc4c14
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<groupId>expo.modules.image</groupId>
|
|
4
4
|
<artifactId>expo.modules.image</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>56.0.
|
|
7
|
-
<release>56.0.
|
|
6
|
+
<latest>56.0.6</latest>
|
|
7
|
+
<release>56.0.6</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>56.0.
|
|
9
|
+
<version>56.0.6</version>
|
|
10
10
|
</versions>
|
|
11
|
-
<lastUpdated>
|
|
11
|
+
<lastUpdated>20260520215035</lastUpdated>
|
|
12
12
|
</versioning>
|
|
13
13
|
</metadata>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
ecc9aa53c5475cae9a2ed3a80c55d8ed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
10e1c387843cc1efb71ff8ea6a22a18d99a15a16
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
ac4844c296afb78219b5d5dd9165a43a73b13cb6029c8cec383b7ae4cc9d6f98
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
649b1ca6a8b4da6a5ba853915363cd25ff679bee27968e1dbec54fdc415cc2654ee5dd958c1a6e9583c09a68009a9beaef37457180ade95b93f72461f5f23d1c
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-image",
|
|
3
3
|
"title": "Expo Image",
|
|
4
|
-
"version": "56.0.
|
|
4
|
+
"version": "56.0.6",
|
|
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",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "^22.14.0",
|
|
25
25
|
"@types/react": "~19.2.0",
|
|
26
|
-
"expo": "56.0.0
|
|
26
|
+
"expo": "56.0.0",
|
|
27
27
|
"expo-module-scripts": "56.0.2"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"jest": {
|
|
41
41
|
"preset": "expo-module-scripts"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "c4c9867a0bcbb188e55ecaec4998e38d33108a5d",
|
|
44
44
|
"scripts": {
|
|
45
45
|
"build": "expo-module build",
|
|
46
46
|
"build:plugin": "expo-module build plugin",
|
|
Binary file
|
|
Binary file
|
package/src/Image.tsx
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { Platform, createSnapshotFriendlyRef } from 'expo-modules-core';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { StyleSheet, type ImageStyle, type TextStyle, type View } from 'react-native';
|
|
5
|
+
import { StyleSheet, processColor, type ImageStyle, type TextStyle, type View } from 'react-native';
|
|
6
6
|
|
|
7
7
|
import ExpoImage from './ExpoImage';
|
|
8
8
|
import type {
|
|
@@ -246,7 +246,10 @@ export class Image extends React.PureComponent<ImageProps> {
|
|
|
246
246
|
options?: ImageLoadOptions
|
|
247
247
|
): Promise<ImageRef> {
|
|
248
248
|
const resolvedSource = resolveSource(source) as ImageSource;
|
|
249
|
-
|
|
249
|
+
const resolvedOptions = options?.tintColor
|
|
250
|
+
? { ...options, tintColor: processColor(options.tintColor) as number }
|
|
251
|
+
: options;
|
|
252
|
+
return await ImageModule.loadAsync(resolvedSource, resolvedOptions);
|
|
250
253
|
}
|
|
251
254
|
|
|
252
255
|
render() {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
f3c892cdd0fdea674e9848208f68cd9e
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
a74f31669a2f32e79112f41ab28735642a7fc32c
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
a4f3677c93ebe34be99197c778b7e278142a3065c1e0af33c76759a820fd9537
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
5a717d5d0a895ae3abff303dac9b4aae3003d7e556cb7c4517198496ff65ca8174bc51eedd9f3f2f22f6ce38cd83dae85f4883a8046f4883128375e006b516c6
|
package/local-maven-repo/expo/modules/image/expo.modules.image/56.0.4/expo.modules.image-56.0.4.aar
DELETED
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
9aafd9fe07c9cb88c845c86eaba487ee
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
e199dd9ed7924bb0f64fe041e0988898c8a838da
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
6360fc482c5b71cf4b5a082e49ec204790be89852c951abe5a4d7b547ec8abcb
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
6fe0d7736e95d7bcd0281c123a21561302b46dc86c2460fe83c94fb146fbdf4c681a59df66847eef0ec7bbfe220596d93fdf834e5e07bacb5dd0f8b302017595
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
8f045623e32e199e9dcb529c34576dea
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
c351ffc13d5aaa0346635fab646102e7ee79fc63
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
4bc379d297467e2c2db619fc97c0e58ec54e04746fa214615f1766c9f36311c2
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
6d6f5c52047b6434f9e2a21a169b29e379d837ed5a5fe31899d9221f514d71ecef0954a4c4b43b30ac4495b59fc045106f68d98e9dc5c4ff8baac5d49c882809
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
83087f2d2da01d4032c9ca1d906fa46f
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
a3f6f3690ab45ec7167f317e2a83ebe9f379ebec
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1823038c975ee4626ae1d3c5a3944453178050adc5307fa2465c8d6d428e9698
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ec4b7fa9c43b49d644747d0e20bfeb2512fd0cd7746de1a77e42d02678dbcf35ce14a506cff703d6e32b77321a2e44a3dd8f4a6ac64ff597bef7576d6eec44a8
|