@tamagui/animations-reanimated 1.26.0 → 1.27.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.
- package/package.json +5 -5
- package/dist/esm/createAnimations.mjs +0 -289
- package/dist/esm/createAnimations.mjs.map +0 -6
- package/dist/esm/index.mjs +0 -4
- package/dist/esm/index.mjs.map +0 -6
- package/dist/esm/polyfill.mjs +0 -4
- package/dist/esm/polyfill.mjs.map +0 -6
- package/dist/esm/useAnimatedNumber.mjs +0 -11
- package/dist/esm/useAnimatedNumber.mjs.map +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/animations-reanimated",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.27.0",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"sideEffects": true,
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"dist"
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@tamagui/animations-react-native": "1.
|
|
17
|
-
"@tamagui/use-presence": "1.
|
|
18
|
-
"@tamagui/web": "1.
|
|
16
|
+
"@tamagui/animations-react-native": "1.27.0",
|
|
17
|
+
"@tamagui/use-presence": "1.27.0",
|
|
18
|
+
"@tamagui/web": "1.27.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@tamagui/build": "1.
|
|
21
|
+
"@tamagui/build": "1.27.0",
|
|
22
22
|
"react-native-reanimated": "^2.14.4"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
var _a;
|
|
2
|
-
import { usePresence } from "@tamagui/use-presence";
|
|
3
|
-
import { useEvent } from "@tamagui/web";
|
|
4
|
-
import { useMemo } from "react";
|
|
5
|
-
import { FlatList, Animated as RNAnimated } from "react-native";
|
|
6
|
-
import Animated, {
|
|
7
|
-
runOnJS,
|
|
8
|
-
useAnimatedStyle,
|
|
9
|
-
withDecay,
|
|
10
|
-
withDelay,
|
|
11
|
-
withRepeat,
|
|
12
|
-
withSpring,
|
|
13
|
-
withTiming
|
|
14
|
-
} from "react-native-reanimated";
|
|
15
|
-
import {
|
|
16
|
-
useAnimatedNumber,
|
|
17
|
-
useAnimatedNumberReaction,
|
|
18
|
-
useAnimatedNumberStyle
|
|
19
|
-
} from "./useAnimatedNumber";
|
|
20
|
-
if (process.env.NODE_ENV === "development") {
|
|
21
|
-
if ((_a = FlatList) == null ? void 0 : _a["_isProxyWorm"]) {
|
|
22
|
-
console.warn(
|
|
23
|
-
`Using reanimated with excludeReactNativeWebExports including FlatList, adjust your next.config.js, reanimated currently doesn't support tree-shaking and needs *List components around.`
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
const animatedStyleKey = {
|
|
28
|
-
transform: true,
|
|
29
|
-
opacity: true
|
|
30
|
-
// backgroundColor: true,
|
|
31
|
-
// color: true,
|
|
32
|
-
};
|
|
33
|
-
function createAnimations(animations) {
|
|
34
|
-
const AnimatedView = Animated.View;
|
|
35
|
-
const AnimatedText = Animated.Text;
|
|
36
|
-
AnimatedView["displayName"] = "AnimatedView";
|
|
37
|
-
AnimatedText["displayName"] = "AnimatedText";
|
|
38
|
-
return {
|
|
39
|
-
isReactNative: true,
|
|
40
|
-
animations,
|
|
41
|
-
View: AnimatedView,
|
|
42
|
-
Text: AnimatedText,
|
|
43
|
-
// temp
|
|
44
|
-
// @ts-ignore
|
|
45
|
-
NumberView: RNAnimated.View,
|
|
46
|
-
useAnimatedNumber,
|
|
47
|
-
useAnimatedNumberReaction,
|
|
48
|
-
useAnimatedNumberStyle,
|
|
49
|
-
usePresence,
|
|
50
|
-
useAnimations: ({ props, style, presence, pseudos, onDidAnimate }) => {
|
|
51
|
-
const isExiting = (presence == null ? void 0 : presence[0]) === false;
|
|
52
|
-
const sendExitComplete = presence == null ? void 0 : presence[1];
|
|
53
|
-
const reanimatedOnDidAnimated = useEvent(
|
|
54
|
-
(...args) => {
|
|
55
|
-
onDidAnimate == null ? void 0 : onDidAnimate(...args);
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
const all = style;
|
|
59
|
-
const [animatedStyles, nonAnimatedStyle] = [{}, {}];
|
|
60
|
-
for (const key2 of Object.keys(all)) {
|
|
61
|
-
if (animatedStyleKey[key2]) {
|
|
62
|
-
animatedStyles[key2] = all[key2];
|
|
63
|
-
} else {
|
|
64
|
-
nonAnimatedStyle[key2] = all[key2];
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
const animatedString = JSON.stringify(animatedStyles);
|
|
68
|
-
const key = animatedString;
|
|
69
|
-
const callback = (isExiting2, exitingStyleProps, key2, value) => {
|
|
70
|
-
"worklet";
|
|
71
|
-
return (completed, current) => {
|
|
72
|
-
"worklet";
|
|
73
|
-
runOnJS(reanimatedOnDidAnimated)(key2, completed, current, {
|
|
74
|
-
attemptedValue: value
|
|
75
|
-
});
|
|
76
|
-
if (isExiting2) {
|
|
77
|
-
exitingStyleProps[key2] = false;
|
|
78
|
-
const areStylesExiting = Object.values(exitingStyleProps).some(Boolean);
|
|
79
|
-
if (!areStylesExiting) {
|
|
80
|
-
if (sendExitComplete) {
|
|
81
|
-
runOnJS(sendExitComplete)();
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
const animatedStyle = useAnimatedStyle(() => {
|
|
88
|
-
"worklet";
|
|
89
|
-
const style2 = JSON.parse(animatedString);
|
|
90
|
-
const final = {
|
|
91
|
-
transform: []
|
|
92
|
-
};
|
|
93
|
-
const exitingStyleProps = {};
|
|
94
|
-
if (pseudos == null ? void 0 : pseudos.exitStyle) {
|
|
95
|
-
for (const key2 in pseudos.exitStyle) {
|
|
96
|
-
if (key2 === "transform") {
|
|
97
|
-
const val = pseudos.exitStyle[key2];
|
|
98
|
-
if (val) {
|
|
99
|
-
for (const attr of val) {
|
|
100
|
-
const tkey = Object.keys(attr)[0];
|
|
101
|
-
exitingStyleProps[tkey] = true;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
} else {
|
|
105
|
-
exitingStyleProps[key2] = true;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
for (const key2 in style2) {
|
|
110
|
-
const value = style2[key2];
|
|
111
|
-
const animationConfig = getAnimationConfig(key2, animations, props.animation);
|
|
112
|
-
const { animation, config, shouldRepeat, repeatCount, repeatReverse } = getAnimation(key2, animationConfig, props.animateOnly);
|
|
113
|
-
const { delay = null } = animationDelay(key2, animationConfig);
|
|
114
|
-
if (!animation) {
|
|
115
|
-
console.warn("No animation for", key2, "in", style2);
|
|
116
|
-
continue;
|
|
117
|
-
}
|
|
118
|
-
if (!config) {
|
|
119
|
-
console.warn("No animation config for", key2, "in", style2);
|
|
120
|
-
continue;
|
|
121
|
-
}
|
|
122
|
-
if (key2 === "transform") {
|
|
123
|
-
if (!Array.isArray(value)) {
|
|
124
|
-
console.error(`Invalid transform value. Needs to be an array.`);
|
|
125
|
-
continue;
|
|
126
|
-
}
|
|
127
|
-
for (const transformObject of value) {
|
|
128
|
-
const key3 = Object.keys(transformObject)[0];
|
|
129
|
-
const transformValue = transformObject[key3];
|
|
130
|
-
let finalValue2 = animation(
|
|
131
|
-
transformValue,
|
|
132
|
-
config,
|
|
133
|
-
callback(isExiting, exitingStyleProps, key3, value)
|
|
134
|
-
);
|
|
135
|
-
if (shouldRepeat) {
|
|
136
|
-
finalValue2 = withRepeat(finalValue2, repeatCount, repeatReverse);
|
|
137
|
-
}
|
|
138
|
-
final["transform"].push({
|
|
139
|
-
[key3]: finalValue2
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
continue;
|
|
143
|
-
}
|
|
144
|
-
if (typeof value === "object") {
|
|
145
|
-
final[key2] = {};
|
|
146
|
-
for (const innerStyleKey of Object.keys(value || {})) {
|
|
147
|
-
let finalValue2 = animation(
|
|
148
|
-
value,
|
|
149
|
-
config,
|
|
150
|
-
callback(isExiting, exitingStyleProps, key2, value)
|
|
151
|
-
);
|
|
152
|
-
if (shouldRepeat) {
|
|
153
|
-
finalValue2 = withRepeat(finalValue2, repeatCount, repeatReverse);
|
|
154
|
-
}
|
|
155
|
-
if (delay != null) {
|
|
156
|
-
final[key2][innerStyleKey] = withDelay(delay, finalValue2);
|
|
157
|
-
} else {
|
|
158
|
-
final[key2][innerStyleKey] = finalValue2;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
continue;
|
|
162
|
-
}
|
|
163
|
-
let finalValue = animation(
|
|
164
|
-
value,
|
|
165
|
-
config,
|
|
166
|
-
callback(isExiting, exitingStyleProps, key2, value)
|
|
167
|
-
);
|
|
168
|
-
if (shouldRepeat) {
|
|
169
|
-
finalValue = withRepeat(finalValue, repeatCount, repeatReverse);
|
|
170
|
-
}
|
|
171
|
-
if (delay != null && typeof delay === "number") {
|
|
172
|
-
final[key2] = withDelay(delay, finalValue);
|
|
173
|
-
} else {
|
|
174
|
-
final[key2] = finalValue;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
return final;
|
|
178
|
-
}, [key]);
|
|
179
|
-
return useMemo(() => {
|
|
180
|
-
return {
|
|
181
|
-
style: [nonAnimatedStyle, animatedStyle]
|
|
182
|
-
};
|
|
183
|
-
}, [key]);
|
|
184
|
-
}
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
function getAnimationConfig(key, animations, animation) {
|
|
188
|
-
"worklet";
|
|
189
|
-
if (typeof animation === "string") {
|
|
190
|
-
return animations[animation];
|
|
191
|
-
}
|
|
192
|
-
let type = "";
|
|
193
|
-
let extraConf;
|
|
194
|
-
if (Array.isArray(animation)) {
|
|
195
|
-
type = animation[0];
|
|
196
|
-
const conf = animation[1] && animation[1][key];
|
|
197
|
-
if (conf) {
|
|
198
|
-
if (typeof conf === "string") {
|
|
199
|
-
type = conf;
|
|
200
|
-
} else {
|
|
201
|
-
type = conf.type || type;
|
|
202
|
-
extraConf = conf;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
} else {
|
|
206
|
-
const val = animation == null ? void 0 : animation[key];
|
|
207
|
-
type = val == null ? void 0 : val.type;
|
|
208
|
-
extraConf = val;
|
|
209
|
-
}
|
|
210
|
-
const found = animations[type];
|
|
211
|
-
if (!found) {
|
|
212
|
-
throw new Error(`No animation of type "${type}" for key "${key}"`);
|
|
213
|
-
}
|
|
214
|
-
return {
|
|
215
|
-
...found,
|
|
216
|
-
...extraConf,
|
|
217
|
-
type: found.type
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
|
-
function animationDelay(key, animation) {
|
|
221
|
-
"worklet";
|
|
222
|
-
if (!animation || !animation[key] || animation[key].delay === void 0 || animation[key].delay === null) {
|
|
223
|
-
return {
|
|
224
|
-
delay: null
|
|
225
|
-
};
|
|
226
|
-
}
|
|
227
|
-
return {
|
|
228
|
-
delay: animation[key].delay
|
|
229
|
-
};
|
|
230
|
-
}
|
|
231
|
-
const isColor = (styleKey) => {
|
|
232
|
-
"worklet";
|
|
233
|
-
return [
|
|
234
|
-
"backgroundColor",
|
|
235
|
-
"borderBottomColor",
|
|
236
|
-
"borderColor",
|
|
237
|
-
"borderEndColor",
|
|
238
|
-
"borderLeftColor",
|
|
239
|
-
"borderRightColor",
|
|
240
|
-
"borderStartColor",
|
|
241
|
-
"borderTopColor",
|
|
242
|
-
"color"
|
|
243
|
-
].includes(styleKey);
|
|
244
|
-
};
|
|
245
|
-
function getAnimation(key, animationConfig, animateOnly) {
|
|
246
|
-
"worklet";
|
|
247
|
-
if (!animationConfig || animateOnly && !animateOnly.includes(key)) {
|
|
248
|
-
return {};
|
|
249
|
-
}
|
|
250
|
-
let repeatCount = 0;
|
|
251
|
-
const repeatReverse = animationConfig.repeatReverse || false;
|
|
252
|
-
let animationType = (animationConfig == null ? void 0 : animationConfig.type) || "spring";
|
|
253
|
-
if (isColor(key) || key === "opacity") {
|
|
254
|
-
animationType = "timing";
|
|
255
|
-
}
|
|
256
|
-
if ("repeat" in animationConfig) {
|
|
257
|
-
repeatCount = animationConfig.repeat || 0;
|
|
258
|
-
} else {
|
|
259
|
-
if (animationConfig.loop) {
|
|
260
|
-
repeatCount = animationConfig.loop ? -1 : 0;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
let config = animationConfig;
|
|
264
|
-
let animation;
|
|
265
|
-
if (animationType === "timing") {
|
|
266
|
-
animation = withTiming;
|
|
267
|
-
} else if (animationType === "spring") {
|
|
268
|
-
animation = withSpring;
|
|
269
|
-
} else if (animationType === "decay") {
|
|
270
|
-
animation = withDecay;
|
|
271
|
-
config = config || {
|
|
272
|
-
velocity: 2,
|
|
273
|
-
deceleration: 2
|
|
274
|
-
};
|
|
275
|
-
} else {
|
|
276
|
-
animation = withSpring;
|
|
277
|
-
}
|
|
278
|
-
return {
|
|
279
|
-
animation,
|
|
280
|
-
config,
|
|
281
|
-
repeatReverse,
|
|
282
|
-
repeatCount,
|
|
283
|
-
shouldRepeat: !!repeatCount
|
|
284
|
-
};
|
|
285
|
-
}
|
|
286
|
-
export {
|
|
287
|
-
createAnimations
|
|
288
|
-
};
|
|
289
|
-
//# sourceMappingURL=createAnimations.mjs.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/createAnimations.tsx"],
|
|
4
|
-
"mappings": "AAAA;AAAA,SAA0B,mBAAmB;AAC7C,SAAyC,gBAAgB;AACzD,SAAqB,eAAe;AAEpC,SAAS,UAAU,YAAY,kBAAkB;AACjD,OAAO;AAAA,EAIL;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAGP,IAAI,QAAQ,IAAI,aAAa,eAAe;AAC1C,OAAI,qC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A,IACA;AAAA,EACF,EAAE,SAAS,QAAQ;AACrB;AAEA,SAAS,aACP,KACA,iBACA,aACA;AACA;AACA,MAAI,CAAC,mBAAoB,eAAe,CAAC,YAAY,SAAS,GAAG,GAAI;AACnE,WAAO,CAAC;AAAA,EACV;AAEA,MAAI,cAAc;AAClB,QAAM,gBAAgB,gBAAgB,iBAAiB;AACvD,MAAI,iBACF,mDAAiB,SAAQ;AAE3B,MAAI,QAAQ,GAAG,KAAK,QAAQ,WAAW;AACrC,oBAAgB;AAAA,EAClB;AAEA,MAAI,YAAY,iBAAiB;AAC/B,kBAAc,gBAAgB,UAAU;AAAA,EAC1C,OAAO;AACL,QAAI,gBAAgB,MAAM;AACxB,oBAAc,gBAAgB,OAAO,KAAK;AAAA,IAC5C;AAAA,EACF;AAEA,MAAI,SAAS;AACb,MAAI;AAEJ,MAAI,kBAAkB,UAAU;AAC9B,gBAAY;AAAA,EACd,WAAW,kBAAkB,UAAU;AACrC,gBAAY;AAAA,EACd,WAAW,kBAAkB,SAAS;AACpC,gBAAY;AACZ,aAAS,UAAU;AAAA,MACjB,UAAU;AAAA,MACV,cAAc;AAAA,IAChB;AAAA,EACF,OAAO;AACL,gBAAY;AAAA,EACd;AAEA,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,cAAc,CAAC,CAAC;AAAA,EAClB;AACF;",
|
|
5
|
-
"names": ["key", "isExiting", "style", "finalValue"]
|
|
6
|
-
}
|
package/dist/esm/index.mjs
DELETED
package/dist/esm/index.mjs.map
DELETED
package/dist/esm/polyfill.mjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useAnimatedNumber,
|
|
3
|
-
useAnimatedNumberStyle,
|
|
4
|
-
useAnimatedNumberReaction
|
|
5
|
-
} from "@tamagui/animations-react-native";
|
|
6
|
-
export {
|
|
7
|
-
useAnimatedNumber,
|
|
8
|
-
useAnimatedNumberReaction,
|
|
9
|
-
useAnimatedNumberStyle
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=useAnimatedNumber.mjs.map
|