expo-image 2.1.0-canary-20250221-ef26fed → 3.0.0-canary-20250303-4dba60e
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
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
### 🛠 Breaking changes
|
|
6
6
|
|
|
7
|
+
- upgrade RN to 0.78 ([#35050](https://github.com/expo/expo/pull/35050) by [@vonovak](https://github.com/vonovak))
|
|
8
|
+
|
|
7
9
|
### 🎉 New features
|
|
8
10
|
|
|
9
11
|
- type-compatibility with react-native 0.77 ([#34027](https://github.com/expo/expo/pull/34027) by [@vonovak](https://github.com/vonovak))
|
|
@@ -11,14 +13,28 @@
|
|
|
11
13
|
### 🐛 Bug fixes
|
|
12
14
|
|
|
13
15
|
- Fixed `tintColor="currentColor"` conflicts on web. ([#34604](https://github.com/expo/expo/pull/34604) by [@bradleyayers](https://github.com/bradleyayers))
|
|
14
|
-
- [Android] Add headers to `loadAsync` requests. ([#34767](https://github.com/expo/expo/pull/34767) by [@alanjhughes](https://github.com/alanjhughes))
|
|
15
|
-
- [Android] Fixes a regression in `loadAsync` from [#34767](https://github.com/expo/expo/pull/34767). ([#34965](https://github.com/expo/expo/pull/34965) by [@alanjhughes](https://github.com/alanjhughes))
|
|
16
16
|
|
|
17
17
|
### 💡 Others
|
|
18
18
|
|
|
19
19
|
- Update `ImageProps` type so `children` are omitted. ([#33210](https://github.com/expo/expo/pull/33210) by [@ashaller2017](https://github.com/ashaller2017))
|
|
20
20
|
- [Android] Started using expo modules gradle plugin. ([#34176](https://github.com/expo/expo/pull/34176) by [@lukmccall](https://github.com/lukmccall))
|
|
21
21
|
|
|
22
|
+
## 2.0.6 - 2025-02-19
|
|
23
|
+
|
|
24
|
+
### 🐛 Bug fixes
|
|
25
|
+
|
|
26
|
+
- [Android] Fixes a regression in `loadAsync` from [#34767](https://github.com/expo/expo/pull/34767). ([#34965](https://github.com/expo/expo/pull/34965) by [@alanjhughes](https://github.com/alanjhughes)) ([#34767](https://github.com/expo/expo/pull/34767), [#34965](https://github.com/expo/expo/pull/34965) by [@alanjhughes](https://github.com/alanjhughes))
|
|
27
|
+
|
|
28
|
+
## 2.0.5 - 2025-02-10
|
|
29
|
+
|
|
30
|
+
### 🐛 Bug fixes
|
|
31
|
+
|
|
32
|
+
- [Android] Add headers to `loadAsync` requests. ([#34767](https://github.com/expo/expo/pull/34767) by [@alanjhughes](https://github.com/alanjhughes))
|
|
33
|
+
|
|
34
|
+
## 2.0.4 - 2025-01-10
|
|
35
|
+
|
|
36
|
+
_This version does not introduce any user-facing changes._
|
|
37
|
+
|
|
22
38
|
## 2.0.3 - 2024-11-29
|
|
23
39
|
|
|
24
40
|
### 🐛 Bug fixes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpoImage.web.d.ts","sourceRoot":"","sources":["../src/ExpoImage.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,gBAAgB,EAA6C,MAAM,eAAe,CAAC;AAsDjG,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,MAAM,EACN,WAAW,EACX,UAAU,EACV,eAAe,EACf,qBAAqB,EACrB,WAAW,EACX,MAAM,EACN,UAAU,EACV,OAAO,EACP,gBAAgB,EAChB,SAAS,EACT,SAAS,EACT,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,KAAK,EACL,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,gBAAgB,EAChB,GAAG,KAAK,EACT,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ExpoImage.web.d.ts","sourceRoot":"","sources":["../src/ExpoImage.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,gBAAgB,EAA6C,MAAM,eAAe,CAAC;AAsDjG,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,MAAM,EACN,WAAW,EACX,UAAU,EACV,eAAe,EACf,qBAAqB,EACrB,WAAW,EACX,MAAM,EACN,UAAU,EACV,OAAO,EACP,gBAAgB,EAChB,SAAS,EACT,SAAS,EACT,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,KAAK,EACL,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,gBAAgB,EAChB,GAAG,KAAK,EACT,EAAE,gBAAgB,qBAqFlB"}
|
|
@@ -7,5 +7,5 @@ export interface SrcSetSource extends ImageSource {
|
|
|
7
7
|
uri: string;
|
|
8
8
|
type: 'srcset';
|
|
9
9
|
}
|
|
10
|
-
export default function useSourceSelection(sources: ImageSource[] | SharedRefType<'image'> | undefined, responsivePolicy: "live" | "initial" | "static" | undefined, containerRef: React.
|
|
10
|
+
export default function useSourceSelection(sources: ImageSource[] | SharedRefType<'image'> | undefined, responsivePolicy: "live" | "initial" | "static" | undefined, containerRef: React.RefObject<HTMLDivElement | null>, measurementCallback?: ((target: HTMLElement, size: DOMRect) => void) | null): ImageSource | SrcSetSource | SharedRefType<'image'> | null;
|
|
11
11
|
//# sourceMappingURL=useSourceSelection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSourceSelection.d.ts","sourceRoot":"","sources":["../../src/web/useSourceSelection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAc,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAqCzD,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IAEd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,QAAQ,CAAC;CAChB;AAmDD,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,OAAO,EAAE,WAAW,EAAE,GAAG,aAAa,CAAC,OAAO,CAAC,GAAG,SAAS,EAC3D,gBAAgB,2CAA2C,EAC3D,YAAY,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"useSourceSelection.d.ts","sourceRoot":"","sources":["../../src/web/useSourceSelection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAc,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAqCzD,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IAEd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,QAAQ,CAAC;CAChB;AAmDD,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,OAAO,EAAE,WAAW,EAAE,GAAG,aAAa,CAAC,OAAO,CAAC,GAAG,SAAS,EAC3D,gBAAgB,2CAA2C,EAC3D,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,EACpD,mBAAmB,GAAE,CAAC,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,IAAW,GAChF,WAAW,GAAG,YAAY,GAAG,aAAa,CAAC,OAAO,CAAC,GAAG,IAAI,CA+B5D"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-image",
|
|
3
3
|
"title": "Expo Image",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.0.0-canary-20250303-4dba60e",
|
|
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",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"dependencies": {},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"expo-module-scripts": "4.0.5-canary-
|
|
31
|
+
"expo-module-scripts": "4.0.5-canary-20250303-4dba60e"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"expo": "53.0.0-canary-
|
|
34
|
+
"expo": "53.0.0-canary-20250303-4dba60e",
|
|
35
35
|
"react": "*",
|
|
36
36
|
"react-native": "*",
|
|
37
37
|
"react-native-web": "*"
|
|
@@ -40,5 +40,6 @@
|
|
|
40
40
|
"react-native-web": {
|
|
41
41
|
"optional": true
|
|
42
42
|
}
|
|
43
|
-
}
|
|
43
|
+
},
|
|
44
|
+
"gitHead": "4dba60e10b5d44b453073aa4968e9dbf312dea6c"
|
|
44
45
|
}
|
package/src/ExpoImage.web.tsx
CHANGED
|
@@ -85,7 +85,8 @@ export default function ExpoImage({
|
|
|
85
85
|
const selectedSource = useSourceSelection(
|
|
86
86
|
source,
|
|
87
87
|
responsivePolicy,
|
|
88
|
-
|
|
88
|
+
// @ts-expect-error: vonovak this cast is a workaround
|
|
89
|
+
containerViewRef as React.RefObject<HTMLDivElement | null>,
|
|
89
90
|
isFlipTransition(transition) ? setCssVariablesForFlipTransitions : null
|
|
90
91
|
);
|
|
91
92
|
|
|
@@ -98,7 +98,7 @@ function selectSource(
|
|
|
98
98
|
export default function useSourceSelection(
|
|
99
99
|
sources: ImageSource[] | SharedRefType<'image'> | undefined,
|
|
100
100
|
responsivePolicy: ImageProps['responsivePolicy'] = 'static',
|
|
101
|
-
containerRef: React.
|
|
101
|
+
containerRef: React.RefObject<HTMLDivElement | null>,
|
|
102
102
|
measurementCallback: ((target: HTMLElement, size: DOMRect) => void) | null = null
|
|
103
103
|
): ImageSource | SrcSetSource | SharedRefType<'image'> | null {
|
|
104
104
|
const hasMoreThanOneSource = (Array.isArray(sources) ? sources.length : 0) > 1;
|