@artsy/palette-mobile 22.1.0--canary.424.5068.0 → 22.1.0--canary.425.5080.0
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.
|
@@ -3,7 +3,8 @@ import FastImage from "@d11/react-native-fast-image";
|
|
|
3
3
|
import { memo, useState } from "react";
|
|
4
4
|
// @ts-expect-error
|
|
5
5
|
import { Blurhash } from "react-native-blurhash";
|
|
6
|
-
import Animated, {
|
|
6
|
+
import Animated, { useAnimatedStyle, useSharedValue, withSpring } from "react-native-reanimated";
|
|
7
|
+
import { scheduleOnRN } from "react-native-worklets";
|
|
7
8
|
import { getImageURL } from "./helpers/getImageURL";
|
|
8
9
|
import { DEFAULT_ANIMATION_DURATION } from "../../constants";
|
|
9
10
|
import { useColor } from "../../utils/hooks";
|
|
@@ -17,7 +18,7 @@ export const Image = memo(({ aspectRatio, width, height, performResize = true, s
|
|
|
17
18
|
const color = useColor();
|
|
18
19
|
const onLoadEnd = () => {
|
|
19
20
|
opacity.value = withSpring(0, { duration: DEFAULT_ANIMATION_DURATION }, () => {
|
|
20
|
-
|
|
21
|
+
scheduleOnRN(setIsLoading, false);
|
|
21
22
|
});
|
|
22
23
|
};
|
|
23
24
|
const skeletonStyle = useAnimatedStyle(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artsy/palette-mobile",
|
|
3
|
-
"version": "22.1.0--canary.
|
|
3
|
+
"version": "22.1.0--canary.425.5080.0",
|
|
4
4
|
"description": "Artsy's design system for React Native",
|
|
5
5
|
"workspaces": [
|
|
6
6
|
"Example"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@artsy/palette-tokens": "7.0.0",
|
|
46
46
|
"@d11/react-native-fast-image": "8.12.0",
|
|
47
47
|
"@react-spring/native": "^10.0.3",
|
|
48
|
-
"@shopify/flash-list": "
|
|
48
|
+
"@shopify/flash-list": "2.2.0",
|
|
49
49
|
"@styled-system/theme-get": "^5.1.2",
|
|
50
50
|
"events": "^3.3.0",
|
|
51
51
|
"lodash": "^4.17.21",
|
|
@@ -124,9 +124,10 @@
|
|
|
124
124
|
"react-native": "0.81.5",
|
|
125
125
|
"react-native-haptic-feedback": "1.14.0",
|
|
126
126
|
"react-native-linear-gradient": "2.6.2",
|
|
127
|
-
"react-native-reanimated": "
|
|
127
|
+
"react-native-reanimated": "4.1.5",
|
|
128
128
|
"react-native-safe-area-context": "5.6.0",
|
|
129
129
|
"react-native-svg": "15.12.1",
|
|
130
|
+
"react-native-worklets": "0.6.1",
|
|
130
131
|
"react-test-renderer": "19.1.0",
|
|
131
132
|
"rimraf": "4.1.2",
|
|
132
133
|
"styled-components": "6.1.19",
|