expo-image 1.12.0 → 1.12.1

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,10 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 1.12.1 — 2024-04-19
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
13
17
  ## 1.12.0 — 2024-04-18
14
18
 
15
19
  ### 🎉 New features
@@ -19,6 +23,7 @@
19
23
 
20
24
  ### 🐛 Bug fixes
21
25
 
26
+ - [iOS] Fixed an issue where data URIs caused crashes on iOS16+. ([#28320](https://github.com/expo/expo/pull/28320) by [@aleqsio](https://github.com/aleqsio))
22
27
  - Refactor web implementations of `useSourceSelection` to avoid unnecessary rerenders. ([#27569](https://github.com/expo/expo/pull/27569) by [@aleqsio](https://github.com/aleqsio))
23
28
  - Fixed an issue where `isBlurhashString` always returned `true` .([#27251](https://github.com/expo/expo/pull/27251) by [@alanjhughes](https://github.com/alanjhughes))
24
29
  - Fix #available check to account for tvOS. ([#27272](https://github.com/expo/expo/pull/27272) by [@alanjhughes](https://github.com/alanjhughes))
@@ -18,7 +18,7 @@ android {
18
18
  namespace "expo.modules.image"
19
19
  defaultConfig {
20
20
  versionCode 1
21
- versionName "1.12.0"
21
+ versionName "1.12.1"
22
22
  consumerProguardFiles("proguard-rules.pro")
23
23
 
24
24
  buildConfigField("boolean", "ALLOW_GLIDE_LOGS", project.properties.get("EXPO_ALLOW_GLIDE_LOGS", "false"))
@@ -256,19 +256,8 @@ public final class ImageView: ExpoView {
256
256
 
257
257
  private func maybeRenderLocalAsset(from source: ImageSource) -> Bool {
258
258
  let path: String? = {
259
- if #available(iOS 16.0, tvOS 16.0, *) {
260
- // .path() on iOS 16 will remove the leading slash
261
- #if os(tvOS)
262
- // but it doesn't on tvOS 16 🙃
263
- if let path = source.uri?.path() {
264
- return String(path.dropFirst())
265
- }
266
- return nil
267
- #else
268
- return source.uri?.path()
269
- #endif
270
- }
271
-
259
+ // .path() on iOS 16 would remove the leading slash, but it doesn't on tvOS 16 🙃
260
+ // It also crashes with EXC_BREAKPOINT when parsing data:image uris
272
261
  // manually drop the leading slash below iOS 16
273
262
  if let path = source.uri?.path {
274
263
  return String(path.dropFirst())
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "expo-image",
3
3
  "title": "Expo Image",
4
- "version": "1.12.0",
4
+ "version": "1.12.1",
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",
@@ -35,5 +35,5 @@
35
35
  "peerDependencies": {
36
36
  "expo": "*"
37
37
  },
38
- "gitHead": "4165b8d72e1b9a1889c2767534cc619e21468110"
38
+ "gitHead": "75658dcbae535ec32cbb296de1c811eba059e03a"
39
39
  }