@tamagui/animations-react-native 1.0.10 → 1.0.12
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/animations-react-native",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"./polyfill.js"
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@tamagui/core": "^1.0.
|
|
19
|
-
"@tamagui/use-presence": "^1.0.
|
|
18
|
+
"@tamagui/core": "^1.0.12",
|
|
19
|
+
"@tamagui/use-presence": "^1.0.12"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@tamagui/build": "^1.0.
|
|
22
|
+
"@tamagui/build": "^1.0.12",
|
|
23
23
|
"react": "^18.2.0",
|
|
24
24
|
"react-dom": "^18.2.0",
|
|
25
25
|
"react-native": "*"
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import { PresenceContext, usePresence } from "@tamagui/animate-presence";
|
|
2
|
-
import { isWeb, useIsomorphicLayoutEffect } from "@tamagui/core";
|
|
3
|
-
import { useContext, useMemo, useRef } from "react";
|
|
4
|
-
import { Animated } from "react-native";
|
|
5
|
-
const animatedStyleKey = {
|
|
6
|
-
transform: true,
|
|
7
|
-
opacity: true
|
|
8
|
-
};
|
|
9
|
-
function createAnimations(animations) {
|
|
10
|
-
const AnimatedView = Animated.View;
|
|
11
|
-
const AnimatedText = Animated.Text;
|
|
12
|
-
AnimatedView["displayName"] = "AnimatedView";
|
|
13
|
-
AnimatedText["displayName"] = "AnimatedText";
|
|
14
|
-
return {
|
|
15
|
-
avoidClasses: true,
|
|
16
|
-
animations,
|
|
17
|
-
View: AnimatedView,
|
|
18
|
-
Text: AnimatedText,
|
|
19
|
-
useAnimations: (props, helpers) => {
|
|
20
|
-
var _a;
|
|
21
|
-
const { onDidAnimate, delay, getStyle, state } = helpers;
|
|
22
|
-
const [isPresent, sendExitComplete] = usePresence();
|
|
23
|
-
const presence = useContext(PresenceContext);
|
|
24
|
-
const isExiting = isPresent === false;
|
|
25
|
-
const isEntering = !state.mounted;
|
|
26
|
-
const all = getStyle({
|
|
27
|
-
isExiting,
|
|
28
|
-
isEntering,
|
|
29
|
-
exitVariant: presence == null ? void 0 : presence.exitVariant,
|
|
30
|
-
enterVariant: presence == null ? void 0 : presence.enterVariant
|
|
31
|
-
});
|
|
32
|
-
const animateStyles = useRef({});
|
|
33
|
-
const animatedTranforms = useRef([]);
|
|
34
|
-
const interpolations = useRef(/* @__PURE__ */ new WeakMap());
|
|
35
|
-
const runners = [];
|
|
36
|
-
const completions = [];
|
|
37
|
-
function update(key, animated, valIn) {
|
|
38
|
-
const [val, type] = getValue(valIn);
|
|
39
|
-
const value = animated || new Animated.Value(val);
|
|
40
|
-
if (type) {
|
|
41
|
-
interpolations.current.set(value, getInterpolated(value, type, val));
|
|
42
|
-
}
|
|
43
|
-
if (animated) {
|
|
44
|
-
const animationConfig = getAnimationConfig(key, animations, props.animation);
|
|
45
|
-
let resolve;
|
|
46
|
-
const promise = new Promise((res) => {
|
|
47
|
-
resolve = res;
|
|
48
|
-
});
|
|
49
|
-
completions.push(promise);
|
|
50
|
-
runners.push(() => {
|
|
51
|
-
Animated.spring(animated, {
|
|
52
|
-
toValue: val,
|
|
53
|
-
useNativeDriver: !isWeb,
|
|
54
|
-
...animationConfig
|
|
55
|
-
}).start(({ finished }) => {
|
|
56
|
-
if (finished) {
|
|
57
|
-
resolve();
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
return value;
|
|
63
|
-
}
|
|
64
|
-
function getValue(input) {
|
|
65
|
-
var _a2;
|
|
66
|
-
if (typeof input !== "string") {
|
|
67
|
-
return [input];
|
|
68
|
-
}
|
|
69
|
-
const neg = input[0] === "-";
|
|
70
|
-
if (neg)
|
|
71
|
-
input = input.slice(1);
|
|
72
|
-
const [_, number, after] = (_a2 = input.match(/([-0-9]+)(deg|%)/)) != null ? _a2 : [];
|
|
73
|
-
return [+number * (neg ? -1 : 1), after];
|
|
74
|
-
}
|
|
75
|
-
function getInterpolated(val, postfix, next) {
|
|
76
|
-
const cur = val["_value"];
|
|
77
|
-
const inputRange = [cur, next];
|
|
78
|
-
const outputRange = [`${cur}deg`, `${next}deg`];
|
|
79
|
-
if (next < cur) {
|
|
80
|
-
inputRange.reverse();
|
|
81
|
-
outputRange.reverse();
|
|
82
|
-
}
|
|
83
|
-
return val.interpolate({
|
|
84
|
-
inputRange,
|
|
85
|
-
outputRange
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
const nonAnimatedStyle = {};
|
|
89
|
-
for (const key of Object.keys(all)) {
|
|
90
|
-
const val = all[key];
|
|
91
|
-
if (animatedStyleKey[key]) {
|
|
92
|
-
if (key === "transform") {
|
|
93
|
-
if (val) {
|
|
94
|
-
for (const [index, transform] of val.entries()) {
|
|
95
|
-
if (!transform)
|
|
96
|
-
continue;
|
|
97
|
-
const tkey = Object.keys(transform)[0];
|
|
98
|
-
animatedTranforms.current[index] = {
|
|
99
|
-
[tkey]: update(tkey, (_a = animatedTranforms.current[index]) == null ? void 0 : _a[tkey], transform[tkey])
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
} else {
|
|
104
|
-
animateStyles.current[key] = update(key, animateStyles.current[key], val);
|
|
105
|
-
}
|
|
106
|
-
} else {
|
|
107
|
-
nonAnimatedStyle[key] = val;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
const animatedStyle = {
|
|
111
|
-
...Object.fromEntries(Object.entries({
|
|
112
|
-
...animateStyles.current
|
|
113
|
-
}).map(([k, v]) => [k, interpolations.current.get(v) || v])),
|
|
114
|
-
transform: animatedTranforms.current.map((r) => {
|
|
115
|
-
const key = Object.keys(r)[0];
|
|
116
|
-
const val = interpolations.current.get(r[key]) || r[key];
|
|
117
|
-
return { [key]: val };
|
|
118
|
-
})
|
|
119
|
-
};
|
|
120
|
-
const args = [
|
|
121
|
-
JSON.stringify(all),
|
|
122
|
-
state.mounted,
|
|
123
|
-
state.hover,
|
|
124
|
-
state.press,
|
|
125
|
-
state.pressIn,
|
|
126
|
-
state.focus,
|
|
127
|
-
delay,
|
|
128
|
-
isPresent,
|
|
129
|
-
onDidAnimate,
|
|
130
|
-
presence == null ? void 0 : presence.exitVariant,
|
|
131
|
-
presence == null ? void 0 : presence.enterVariant
|
|
132
|
-
];
|
|
133
|
-
useIsomorphicLayoutEffect(() => {
|
|
134
|
-
for (const runner of runners) {
|
|
135
|
-
runner();
|
|
136
|
-
}
|
|
137
|
-
Promise.all(completions).then(() => {
|
|
138
|
-
onDidAnimate == null ? void 0 : onDidAnimate();
|
|
139
|
-
if (isExiting) {
|
|
140
|
-
sendExitComplete == null ? void 0 : sendExitComplete();
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
}, args);
|
|
144
|
-
return useMemo(() => {
|
|
145
|
-
return {
|
|
146
|
-
style: [nonAnimatedStyle, animatedStyle]
|
|
147
|
-
};
|
|
148
|
-
}, args);
|
|
149
|
-
}
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
function getAnimationConfig(key, animations, animation) {
|
|
153
|
-
if (typeof animation === "string") {
|
|
154
|
-
return animations[animation];
|
|
155
|
-
}
|
|
156
|
-
let type = "";
|
|
157
|
-
let extraConf;
|
|
158
|
-
if (Array.isArray(animation)) {
|
|
159
|
-
type = animation[0];
|
|
160
|
-
const conf = animation[1] && animation[1][key];
|
|
161
|
-
if (conf) {
|
|
162
|
-
if (typeof conf === "string") {
|
|
163
|
-
type = conf;
|
|
164
|
-
} else {
|
|
165
|
-
type = conf.type || type;
|
|
166
|
-
extraConf = conf;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
} else {
|
|
170
|
-
const val = animation == null ? void 0 : animation[key];
|
|
171
|
-
type = val == null ? void 0 : val.type;
|
|
172
|
-
extraConf = val;
|
|
173
|
-
}
|
|
174
|
-
const found = animations[type];
|
|
175
|
-
if (!found) {
|
|
176
|
-
throw new Error(`No animation of type "${type}" for key "${key}"`);
|
|
177
|
-
}
|
|
178
|
-
return {
|
|
179
|
-
...found,
|
|
180
|
-
...extraConf
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
|
-
export {
|
|
184
|
-
createAnimations
|
|
185
|
-
};
|
|
186
|
-
//# sourceMappingURL=createAnimations.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/createAnimations.tsx"],
|
|
4
|
-
"sourcesContent": ["import { PresenceContext, usePresence } from '@tamagui/animate-presence'\nimport { AnimationDriver, AnimationProp, isWeb, useIsomorphicLayoutEffect } from '@tamagui/core'\nimport { useContext, useMemo, useRef } from 'react'\nimport { Animated } from 'react-native'\n\ntype AnimationsConfig<A extends Object = any> = {\n [Key in keyof A]: AnimationConfig\n}\n\ntype AnimationConfig = Partial<\n Pick<\n Animated.SpringAnimationConfig,\n | 'delay'\n | 'bounciness'\n | 'damping'\n | 'friction'\n | 'mass'\n | 'overshootClamping'\n | 'speed'\n | 'stiffness'\n | 'tension'\n | 'velocity'\n >\n>\n\nconst animatedStyleKey = {\n transform: true,\n opacity: true,\n}\n\nexport function createAnimations<A extends AnimationsConfig>(animations: A): AnimationDriver<A> {\n const AnimatedView = Animated.View\n const AnimatedText = Animated.Text\n\n AnimatedView['displayName'] = 'AnimatedView'\n AnimatedText['displayName'] = 'AnimatedText'\n\n return {\n avoidClasses: true,\n animations,\n View: AnimatedView,\n Text: AnimatedText,\n useAnimations: (props, helpers) => {\n const { onDidAnimate, delay, getStyle, state } = helpers\n const [isPresent, sendExitComplete] = usePresence()\n const presence = useContext(PresenceContext)\n\n // const exitStyle = presence?.exitVariant\n // ? staticConfig.variantsParsed?.[presence.exitVariant]?.true || pseudos.exitStyle\n // : pseudos.exitStyle\n\n const isExiting = isPresent === false\n const isEntering = !state.mounted\n\n const all = getStyle({\n isExiting,\n isEntering,\n exitVariant: presence?.exitVariant,\n enterVariant: presence?.enterVariant,\n })\n\n const animateStyles = useRef<Record<string, Animated.Value>>({})\n const animatedTranforms = useRef<{ [key: string]: Animated.Value }[]>([])\n const interpolations = useRef(new WeakMap<Animated.Value, Animated.AnimatedInterpolation>())\n\n // TODO loop and create values, run them if they change\n\n const runners: Function[] = []\n const completions: Promise<void>[] = []\n\n function update(key: string, animated: Animated.Value | undefined, valIn: string | number) {\n const [val, type] = getValue(valIn)\n const value = animated || new Animated.Value(val)\n if (type) {\n interpolations.current.set(value, getInterpolated(value, type, val))\n }\n if (animated) {\n const animationConfig = getAnimationConfig(key, animations, props.animation)\n\n let resolve\n const promise = new Promise<void>((res) => {\n resolve = res\n })\n completions.push(promise)\n\n runners.push(() => {\n Animated.spring(animated, {\n toValue: val,\n useNativeDriver: !isWeb,\n ...animationConfig,\n }).start(({ finished }) => {\n if (finished) {\n resolve()\n }\n })\n })\n }\n return value\n }\n\n function getValue(input: number | string) {\n if (typeof input !== 'string') {\n return [input] as const\n }\n const neg = input[0] === '-'\n if (neg) input = input.slice(1)\n const [_, number, after] = input.match(/([-0-9]+)(deg|%)/) ?? []\n return [+number * (neg ? -1 : 1), after] as const\n }\n\n function getInterpolated(val: Animated.Value, postfix: string, next: number) {\n const cur = val['_value'] as number\n const inputRange = [cur, next]\n const outputRange = [`${cur}deg`, `${next}deg`]\n if (next < cur) {\n inputRange.reverse()\n outputRange.reverse()\n }\n return val.interpolate({\n inputRange,\n outputRange,\n })\n }\n\n const nonAnimatedStyle = {}\n for (const key of Object.keys(all)) {\n const val = all[key]\n if (animatedStyleKey[key]) {\n if (key === 'transform') {\n // for now just support one transform key\n if (val) {\n for (const [index, transform] of val.entries()) {\n if (!transform) continue\n const tkey = Object.keys(transform)[0]\n animatedTranforms.current[index] = {\n [tkey]: update(tkey, animatedTranforms.current[index]?.[tkey], transform[tkey]),\n }\n }\n }\n } else {\n animateStyles.current[key] = update(key, animateStyles.current[key], val)\n }\n } else {\n nonAnimatedStyle[key] = val\n }\n }\n\n const animatedStyle = {\n ...Object.fromEntries(\n Object.entries({\n ...animateStyles.current,\n }).map(([k, v]) => [k, interpolations.current.get(v) || v])\n ),\n transform: animatedTranforms.current.map((r) => {\n const key = Object.keys(r)[0]\n const val = interpolations.current.get(r[key]) || r[key]\n return { [key]: val }\n }),\n }\n\n const args = [\n JSON.stringify(all),\n state.mounted,\n state.hover,\n state.press,\n state.pressIn,\n state.focus,\n delay,\n isPresent,\n onDidAnimate,\n presence?.exitVariant,\n presence?.enterVariant,\n ]\n\n useIsomorphicLayoutEffect(() => {\n //\n for (const runner of runners) {\n runner()\n }\n Promise.all(completions).then(() => {\n onDidAnimate?.()\n if (isExiting) {\n sendExitComplete?.()\n }\n })\n }, args)\n\n return useMemo(() => {\n return {\n style: [nonAnimatedStyle, animatedStyle],\n }\n }, args)\n },\n }\n}\n\nfunction getAnimationConfig(key: string, animations: AnimationsConfig, animation?: AnimationProp) {\n if (typeof animation === 'string') {\n return animations[animation]\n }\n let type = ''\n let extraConf: any\n if (Array.isArray(animation)) {\n type = animation[0] as string\n const conf = animation[1] && animation[1][key]\n if (conf) {\n if (typeof conf === 'string') {\n type = conf\n } else {\n type = (conf as any).type || type\n extraConf = conf\n }\n }\n } else {\n const val = animation?.[key]\n type = val?.type\n extraConf = val\n }\n const found = animations[type]\n if (!found) {\n throw new Error(`No animation of type \"${type}\" for key \"${key}\"`)\n }\n return {\n ...found,\n ...extraConf,\n }\n}\n"],
|
|
5
|
-
"mappings": "AAAA;AACA;AACA;AACA;AAsBA,MAAM,mBAAmB;AAAA,EACvB,WAAW;AAAA,EACX,SAAS;AACX;AAEO,0BAAsD,YAAmC;AAC9F,QAA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jB,UAAM,OAAO,UAAU,MAAM,UAAU,GAAG;AAC1C,QAAI,MAAM;AACR,UAAI,OAAO,SAAS,UAAU;AAC5B,eAAO;AAAA,MACT,OAAO;AACL,eAAQ,KAAa,QAAQ;AAC7B,oBAAY;AAAA,MACd;AAAA,IACF;AAAA,EACF,OAAO;AACL,UAAM,MAAM,uCAAY;AACxB,WAAO,2BAAK;AACZ,gBAAY;AAAA,EACd;AACA,QAAM,QAAQ,WAAW;AACzB,MAAI,CAAC,OAAO;AACV,UAAM,IAAI,MAAM,yBAAyB,kBAAkB,MAAM;AAAA,EACnE;AACA,SAAO;AAAA,IACL,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AACF;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/dist/jsx/index.js
DELETED
package/dist/jsx/index.js.map
DELETED
package/dist/jsx/polyfill.js
DELETED
package/dist/jsx/polyfill.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/polyfill.ts"],
|
|
4
|
-
"sourcesContent": ["// for SSR\nif (typeof requestAnimationFrame === 'undefined') {\n globalThis['requestAnimationFrame'] = setImmediate\n}\n"],
|
|
5
|
-
"mappings": "AACA,IAAI,OAAO,0BAA0B,aAAa;AAChD,aAAW,2BAA2B;AACxC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|