expo-image 1.3.4 → 1.3.5
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
CHANGED
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 1.3.5 — 2023-11-01
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- [Android] fix crash when loading local image files with no file extension ([#24201](https://github.com/expo/expo/pull/25032) by [@kadikraman](https://github.com/kadikraman))
|
|
18
|
+
|
|
13
19
|
## 1.3.4 — 2023-09-28
|
|
14
20
|
|
|
15
21
|
### 🐛 Bug fixes
|
package/android/build.gradle
CHANGED
|
@@ -38,6 +38,15 @@ data class SourceMap(
|
|
|
38
38
|
|
|
39
39
|
private fun isLocalFileUri() = parsedUri?.scheme?.startsWith("file") ?: false
|
|
40
40
|
|
|
41
|
+
private fun isSvg(): Boolean {
|
|
42
|
+
var lastDotIndex = parsedUri?.toString()?.lastIndexOf('.')
|
|
43
|
+
// if the path has no file extension and no . at all (e.g. file://path/to/file) return false
|
|
44
|
+
if (lastDotIndex == -1 || lastDotIndex == null) {
|
|
45
|
+
return false
|
|
46
|
+
}
|
|
47
|
+
return parsedUri?.toString()?.substring(lastDotIndex)?.startsWith(".svg") ?: false
|
|
48
|
+
}
|
|
49
|
+
|
|
41
50
|
fun isBlurhash() = parsedUri?.scheme?.startsWith("blurhash") ?: false
|
|
42
51
|
|
|
43
52
|
fun isThumbhash() = parsedUri?.scheme?.startsWith("thumbhash") ?: false
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-image",
|
|
3
3
|
"title": "Expo Image",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.5",
|
|
5
5
|
"description": "A cross-platform, performant image component for React Native and Expo with Web support",
|
|
6
6
|
"main": "build/index.js",
|
|
7
7
|
"types": "build/index.d.ts",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"expo": "*"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "09b1852f53279138ba17222be62aa860ec8790f2"
|
|
37
37
|
}
|