forked from
jollywhoppers.com/witchsky.app
Bluesky app fork with some witchin' additions 馃挮
1diff --git a/node_modules/expo-image/build/Image.types.d.ts b/node_modules/expo-image/build/Image.types.d.ts
2index 022ae48..416504f 100644
3--- a/node_modules/expo-image/build/Image.types.d.ts
4+++ b/node_modules/expo-image/build/Image.types.d.ts
5@@ -152,6 +152,16 @@ export interface ImageProps extends Omit<ViewProps, 'style' | 'children'> {
6 * @default 'normal'
7 */
8 priority?: 'low' | 'normal' | 'high' | null;
9+ /**
10+ * The loading behavior for the image. Maps to the native HTML `loading` attribute on web.
11+ *
12+ * - `'lazy'` - Defers loading until the image is near the viewport.
13+ * - `'eager'` - Loads the image immediately.
14+ *
15+ * @default undefined
16+ * @platform web
17+ */
18+ loading?: 'lazy' | 'eager' | null;
19 /**
20 * Determines whether to cache the image and where: on the disk, in the memory or both.
21 *
22diff --git a/node_modules/expo-image/src/ExpoImage.web.tsx b/node_modules/expo-image/src/ExpoImage.web.tsx
23index 2a49ff0..1c3de93 100644
24--- a/node_modules/expo-image/src/ExpoImage.web.tsx
25+++ b/node_modules/expo-image/src/ExpoImage.web.tsx
26@@ -70,6 +70,7 @@ export default function ExpoImage({
27 onLoadEnd,
28 onDisplay,
29 priority,
30+ loading,
31 blurRadius,
32 recyclingKey,
33 style,
34@@ -118,6 +119,7 @@ export default function ExpoImage({
35 accessibilityLabel={accessibilityLabel ?? alt}
36 cachePolicy={cachePolicy}
37 priority={priority}
38+ loading={loading}
39 tintColor={tintColor}
40 />
41 ),
42@@ -149,6 +151,7 @@ export default function ExpoImage({
43 className={className}
44 cachePolicy={cachePolicy}
45 priority={priority}
46+ loading={loading}
47 contentPosition={selectedSource ? contentPosition : { top: '50%', left: '50%' }}
48 hashPlaceholderContentPosition={contentPosition}
49 hashPlaceholderStyle={imageHashStyle}
50diff --git a/node_modules/expo-image/src/Image.types.ts b/node_modules/expo-image/src/Image.types.ts
51index 9dec0e7..61c1621 100644
52--- a/node_modules/expo-image/src/Image.types.ts
53+++ b/node_modules/expo-image/src/Image.types.ts
54@@ -178,6 +178,17 @@ export interface ImageProps extends Omit<ViewProps, 'style' | 'children'> {
55 */
56 priority?: 'low' | 'normal' | 'high' | null;
57
58+ /**
59+ * The loading behavior for the image. Maps to the native HTML `loading` attribute on web.
60+ *
61+ * - `'lazy'` - Defers loading until the image is near the viewport.
62+ * - `'eager'` - Loads the image immediately.
63+ *
64+ * @default undefined
65+ * @platform web
66+ */
67+ loading?: 'lazy' | 'eager' | null;
68+
69 /**
70 * Determines whether to cache the image and where: on the disk, in the memory or both.
71 *
72diff --git a/node_modules/expo-image/src/web/ImageWrapper.tsx b/node_modules/expo-image/src/web/ImageWrapper.tsx
73index e8f891d..89a5cb1 100644
74--- a/node_modules/expo-image/src/web/ImageWrapper.tsx
75+++ b/node_modules/expo-image/src/web/ImageWrapper.tsx
76@@ -30,6 +30,7 @@ const ImageWrapper = React.forwardRef(
77 contentPosition,
78 hashPlaceholderContentPosition,
79 priority,
80+ loading,
81 style,
82 hashPlaceholderStyle,
83 tintColor,
84@@ -82,6 +83,7 @@ const ImageWrapper = React.forwardRef(
85 // @ts-ignore
86 // eslint-disable-next-line react/no-unknown-property
87 fetchPriority={getFetchPriorityFromImagePriority(priority || 'normal')}
88+ loading={loading || undefined}
89 {...getImageWrapperEventHandler(events, sourceWithHeaders)}
90 {...getImgPropsFromSource(source)}
91 {...props}
92diff --git a/node_modules/expo-image/src/web/ImageWrapper.types.ts b/node_modules/expo-image/src/web/ImageWrapper.types.ts
93index 19bbe2f..179837f 100644
94--- a/node_modules/expo-image/src/web/ImageWrapper.types.ts
95+++ b/node_modules/expo-image/src/web/ImageWrapper.types.ts
96@@ -29,6 +29,7 @@ export type ImageWrapperProps = {
97 contentPosition?: ImageContentPositionObject;
98 hashPlaceholderContentPosition?: ImageContentPositionObject;
99 priority?: string | null;
100+ loading?: 'lazy' | 'eager' | null;
101 style: CSSProperties;
102 tintColor?: string | null;
103 hashPlaceholderStyle?: CSSProperties;