@tamagui/animations-react-native 1.110.4 → 1.111.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/dist/cjs/createAnimations.native.js +92 -184
- package/dist/cjs/createAnimations.native.js.map +2 -2
- package/dist/esm/createAnimations.native.js +94 -185
- package/dist/esm/createAnimations.native.js.map +2 -2
- package/dist/esm/createAnimations.native.mjs +327 -0
- package/dist/esm/createAnimations.native.mjs.map +1 -0
- package/dist/esm/index.native.js +1 -1
- package/dist/esm/index.native.mjs +2 -0
- package/dist/esm/index.native.mjs.map +1 -0
- package/dist/esm/polyfill.native.mjs +2 -0
- package/dist/esm/polyfill.native.mjs.map +1 -0
- package/package.json +5 -5
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ResetPresence, usePresence } from "@tamagui/use-presence";
|
|
3
|
+
import { isWeb, useIsomorphicLayoutEffect } from "@tamagui/constants";
|
|
4
|
+
import { useEvent } from "@tamagui/web";
|
|
5
|
+
import { Animated } from "react-native";
|
|
6
|
+
var animatedStyleKey = {
|
|
7
|
+
transform: !0,
|
|
8
|
+
opacity: !0
|
|
9
|
+
},
|
|
10
|
+
colorStyleKey = {
|
|
11
|
+
backgroundColor: !0,
|
|
12
|
+
color: !0,
|
|
13
|
+
borderColor: !0,
|
|
14
|
+
borderLeftColor: !0,
|
|
15
|
+
borderRightColor: !0,
|
|
16
|
+
borderTopColor: !0,
|
|
17
|
+
borderBottomColor: !0
|
|
18
|
+
},
|
|
19
|
+
costlyToAnimateStyleKey = {
|
|
20
|
+
borderRadius: !0,
|
|
21
|
+
borderTopLeftRadius: !0,
|
|
22
|
+
borderTopRightRadius: !0,
|
|
23
|
+
borderBottomLeftRadius: !0,
|
|
24
|
+
borderBottomRightRadius: !0,
|
|
25
|
+
borderWidth: !0,
|
|
26
|
+
borderLeftWidth: !0,
|
|
27
|
+
borderRightWidth: !0,
|
|
28
|
+
borderTopWidth: !0,
|
|
29
|
+
borderBottomWidth: !0,
|
|
30
|
+
...colorStyleKey
|
|
31
|
+
},
|
|
32
|
+
AnimatedView = Animated.View,
|
|
33
|
+
AnimatedText = Animated.Text;
|
|
34
|
+
function useAnimatedNumber(initial) {
|
|
35
|
+
var state = React.useRef(null);
|
|
36
|
+
return state.current || (state.current = {
|
|
37
|
+
composite: null,
|
|
38
|
+
val: new Animated.Value(initial),
|
|
39
|
+
strategy: {
|
|
40
|
+
type: "spring"
|
|
41
|
+
}
|
|
42
|
+
}), {
|
|
43
|
+
getInstance() {
|
|
44
|
+
return state.current.val;
|
|
45
|
+
},
|
|
46
|
+
getValue() {
|
|
47
|
+
return state.current.val._value;
|
|
48
|
+
},
|
|
49
|
+
stop() {
|
|
50
|
+
var _state_current_composite;
|
|
51
|
+
(_state_current_composite = state.current.composite) === null || _state_current_composite === void 0 || _state_current_composite.stop(), state.current.composite = null;
|
|
52
|
+
},
|
|
53
|
+
setValue(next) {
|
|
54
|
+
var {
|
|
55
|
+
type,
|
|
56
|
+
...config
|
|
57
|
+
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
58
|
+
type: "spring"
|
|
59
|
+
},
|
|
60
|
+
onFinish = arguments.length > 2 ? arguments[2] : void 0,
|
|
61
|
+
val = state.current.val,
|
|
62
|
+
handleFinish = onFinish ? function (param) {
|
|
63
|
+
var {
|
|
64
|
+
finished
|
|
65
|
+
} = param;
|
|
66
|
+
return finished ? onFinish() : null;
|
|
67
|
+
} : void 0;
|
|
68
|
+
if (type === "direct") val.setValue(next);else if (type === "spring") {
|
|
69
|
+
var _state_current_composite;
|
|
70
|
+
(_state_current_composite = state.current.composite) === null || _state_current_composite === void 0 || _state_current_composite.stop();
|
|
71
|
+
var composite = Animated.spring(val, {
|
|
72
|
+
...config,
|
|
73
|
+
toValue: next,
|
|
74
|
+
useNativeDriver: !isWeb
|
|
75
|
+
});
|
|
76
|
+
composite.start(handleFinish), state.current.composite = composite;
|
|
77
|
+
} else {
|
|
78
|
+
var _state_current_composite1;
|
|
79
|
+
(_state_current_composite1 = state.current.composite) === null || _state_current_composite1 === void 0 || _state_current_composite1.stop();
|
|
80
|
+
var composite1 = Animated.timing(val, {
|
|
81
|
+
...config,
|
|
82
|
+
toValue: next,
|
|
83
|
+
useNativeDriver: !isWeb
|
|
84
|
+
});
|
|
85
|
+
composite1.start(handleFinish), state.current.composite = composite1;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
function useAnimatedNumberReaction(param, onValue) {
|
|
91
|
+
var {
|
|
92
|
+
value
|
|
93
|
+
} = param,
|
|
94
|
+
onChange = useEvent(function (current) {
|
|
95
|
+
onValue(current.value);
|
|
96
|
+
});
|
|
97
|
+
React.useEffect(function () {
|
|
98
|
+
var id = value.getInstance().addListener(onChange);
|
|
99
|
+
return function () {
|
|
100
|
+
value.getInstance().removeListener(id);
|
|
101
|
+
};
|
|
102
|
+
}, [value, onChange]);
|
|
103
|
+
}
|
|
104
|
+
function useAnimatedNumberStyle(value, getStyle) {
|
|
105
|
+
return getStyle(value.getInstance());
|
|
106
|
+
}
|
|
107
|
+
function createAnimations(animations) {
|
|
108
|
+
return {
|
|
109
|
+
isReactNative: !0,
|
|
110
|
+
animations,
|
|
111
|
+
View: AnimatedView,
|
|
112
|
+
Text: AnimatedText,
|
|
113
|
+
useAnimatedNumber,
|
|
114
|
+
useAnimatedNumberReaction,
|
|
115
|
+
useAnimatedNumberStyle,
|
|
116
|
+
usePresence,
|
|
117
|
+
ResetPresence,
|
|
118
|
+
useAnimations: function (param) {
|
|
119
|
+
var {
|
|
120
|
+
props,
|
|
121
|
+
onDidAnimate,
|
|
122
|
+
style,
|
|
123
|
+
componentState,
|
|
124
|
+
presence
|
|
125
|
+
} = param,
|
|
126
|
+
isExiting = presence?.[0] === !1,
|
|
127
|
+
sendExitComplete = presence?.[1],
|
|
128
|
+
animateStyles = React.useRef({}),
|
|
129
|
+
animatedTranforms = React.useRef([]),
|
|
130
|
+
animationsState = React.useRef(/* @__PURE__ */new WeakMap()),
|
|
131
|
+
animateOnly = props.animateOnly || [],
|
|
132
|
+
hasAnimateOnly = !!props.animateOnly,
|
|
133
|
+
args = [JSON.stringify(style), componentState, isExiting, !!onDidAnimate],
|
|
134
|
+
isThereNoNativeStyleKeys = React.useMemo(function () {
|
|
135
|
+
return isWeb ? !0 : Object.keys(style).some(function (key) {
|
|
136
|
+
return animateOnly.length ? !animatedStyleKey[key] && animateOnly.indexOf(key) === -1 : !animatedStyleKey[key];
|
|
137
|
+
});
|
|
138
|
+
}, args),
|
|
139
|
+
res = React.useMemo(function () {
|
|
140
|
+
var runners = [],
|
|
141
|
+
completions = [],
|
|
142
|
+
nonAnimatedStyle = {};
|
|
143
|
+
for (var key in style) {
|
|
144
|
+
var val = style[key];
|
|
145
|
+
if (animatedStyleKey[key] == null && !costlyToAnimateStyleKey[key]) {
|
|
146
|
+
nonAnimatedStyle[key] = val;
|
|
147
|
+
continue;
|
|
148
|
+
}
|
|
149
|
+
if (hasAnimateOnly && !animateOnly.includes(key)) {
|
|
150
|
+
nonAnimatedStyle[key] = val;
|
|
151
|
+
continue;
|
|
152
|
+
}
|
|
153
|
+
if (key !== "transform") {
|
|
154
|
+
animateStyles.current[key] = update(key, animateStyles.current[key], val);
|
|
155
|
+
continue;
|
|
156
|
+
}
|
|
157
|
+
if (val) {
|
|
158
|
+
if (typeof val == "string") {
|
|
159
|
+
console.warn("Warning: Tamagui can't animate string transforms yet!");
|
|
160
|
+
continue;
|
|
161
|
+
}
|
|
162
|
+
var _iteratorNormalCompletion = !0,
|
|
163
|
+
_didIteratorError = !1,
|
|
164
|
+
_iteratorError = void 0;
|
|
165
|
+
try {
|
|
166
|
+
for (var _iterator = val.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
167
|
+
var [index, transform] = _step.value,
|
|
168
|
+
_animatedTranforms_current_index;
|
|
169
|
+
if (transform) {
|
|
170
|
+
var tkey = Object.keys(transform)[0],
|
|
171
|
+
currentTransform = (_animatedTranforms_current_index = animatedTranforms.current[index]) === null || _animatedTranforms_current_index === void 0 ? void 0 : _animatedTranforms_current_index[tkey];
|
|
172
|
+
animatedTranforms.current[index] = {
|
|
173
|
+
[tkey]: update(tkey, currentTransform, transform[tkey])
|
|
174
|
+
}, animatedTranforms.current = [...animatedTranforms.current];
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
} catch (err) {
|
|
178
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
179
|
+
} finally {
|
|
180
|
+
try {
|
|
181
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
182
|
+
} finally {
|
|
183
|
+
if (_didIteratorError) throw _iteratorError;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
var animatedStyle = {
|
|
189
|
+
...Object.fromEntries(Object.entries(animateStyles.current).map(function (param2) {
|
|
190
|
+
var [k, v] = param2,
|
|
191
|
+
_animationsState_current_get;
|
|
192
|
+
return [k, ((_animationsState_current_get = animationsState.current.get(v)) === null || _animationsState_current_get === void 0 ? void 0 : _animationsState_current_get.interpolation) || v];
|
|
193
|
+
})),
|
|
194
|
+
transform: animatedTranforms.current.map(function (r) {
|
|
195
|
+
var _animationsState_current_get,
|
|
196
|
+
key2 = Object.keys(r)[0],
|
|
197
|
+
val2 = ((_animationsState_current_get = animationsState.current.get(r[key2])) === null || _animationsState_current_get === void 0 ? void 0 : _animationsState_current_get.interpolation) || r[key2];
|
|
198
|
+
return {
|
|
199
|
+
[key2]: val2
|
|
200
|
+
};
|
|
201
|
+
})
|
|
202
|
+
};
|
|
203
|
+
return {
|
|
204
|
+
runners,
|
|
205
|
+
completions,
|
|
206
|
+
style: [nonAnimatedStyle, animatedStyle]
|
|
207
|
+
};
|
|
208
|
+
function update(key2, animated, valIn) {
|
|
209
|
+
var isColorStyleKey = colorStyleKey[key2],
|
|
210
|
+
[val2, type] = isColorStyleKey ? [0, void 0] : getValue(valIn),
|
|
211
|
+
animateToValue = val2,
|
|
212
|
+
value = animated || new Animated.Value(val2),
|
|
213
|
+
curInterpolation = animationsState.current.get(value),
|
|
214
|
+
interpolateArgs;
|
|
215
|
+
if (type) {
|
|
216
|
+
var _curInterpolation_current;
|
|
217
|
+
interpolateArgs = getInterpolated((_curInterpolation_current = curInterpolation?.current) !== null && _curInterpolation_current !== void 0 ? _curInterpolation_current : value._value, val2, type), animationsState.current.set(value, {
|
|
218
|
+
interpolation: value.interpolate(interpolateArgs),
|
|
219
|
+
current: val2
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
if (isColorStyleKey && (animateToValue = curInterpolation?.animateToValue ? 0 : 1, interpolateArgs = getColorInterpolated(curInterpolation?.current,
|
|
223
|
+
// valIn is the next color
|
|
224
|
+
valIn, animateToValue), animationsState.current.set(value, {
|
|
225
|
+
current: valIn,
|
|
226
|
+
interpolation: value.interpolate(interpolateArgs),
|
|
227
|
+
animateToValue: curInterpolation?.animateToValue ? 0 : 1
|
|
228
|
+
})), value) {
|
|
229
|
+
var animationConfig = getAnimationConfig(key2, animations, props.animation),
|
|
230
|
+
resolve,
|
|
231
|
+
promise = new Promise(function (res2) {
|
|
232
|
+
resolve = res2;
|
|
233
|
+
});
|
|
234
|
+
completions.push(promise), runners.push(function () {
|
|
235
|
+
value.stopAnimation();
|
|
236
|
+
function getAnimation() {
|
|
237
|
+
return Animated[animationConfig.type || "spring"](value, {
|
|
238
|
+
toValue: animateToValue,
|
|
239
|
+
useNativeDriver: !isWeb && !isThereNoNativeStyleKeys,
|
|
240
|
+
...animationConfig
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
var animation = animationConfig.delay ? Animated.sequence([Animated.delay(animationConfig.delay), getAnimation()]) : getAnimation();
|
|
244
|
+
animation.start(function (param2) {
|
|
245
|
+
var {
|
|
246
|
+
finished
|
|
247
|
+
} = param2;
|
|
248
|
+
finished && resolve();
|
|
249
|
+
});
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
return process.env.NODE_ENV === "development" && props.debug === "verbose" && console.info(" \u{1F4A0} animate", key2, `from (${value._value}) to`, valIn, `(${val2})`, "type", type, "interpolate", interpolateArgs), value;
|
|
253
|
+
}
|
|
254
|
+
}, args);
|
|
255
|
+
return useIsomorphicLayoutEffect(function () {
|
|
256
|
+
res.runners.forEach(function (r) {
|
|
257
|
+
return r();
|
|
258
|
+
});
|
|
259
|
+
var cancel = !1;
|
|
260
|
+
return Promise.all(res.completions).then(function () {
|
|
261
|
+
cancel || (onDidAnimate?.(), isExiting && sendExitComplete?.());
|
|
262
|
+
}), function () {
|
|
263
|
+
cancel = !0;
|
|
264
|
+
};
|
|
265
|
+
}, args), process.env.NODE_ENV === "development" && props.debug === "verbose" && console.info("Animated", {
|
|
266
|
+
response: res,
|
|
267
|
+
inputStyle: style,
|
|
268
|
+
isExiting
|
|
269
|
+
}), res;
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
function getColorInterpolated(currentColor, nextColor, animateToValue) {
|
|
274
|
+
var inputRange = [0, 1],
|
|
275
|
+
outputRange = [currentColor || nextColor, nextColor];
|
|
276
|
+
return animateToValue === 0 && outputRange.reverse(), {
|
|
277
|
+
inputRange,
|
|
278
|
+
outputRange
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
function getInterpolated(current, next) {
|
|
282
|
+
var postfix = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "deg";
|
|
283
|
+
next === current && (current = next - 1e-9);
|
|
284
|
+
var inputRange = [current, next],
|
|
285
|
+
outputRange = [`${current}${postfix}`, `${next}${postfix}`];
|
|
286
|
+
return next < current && (inputRange.reverse(), outputRange.reverse()), {
|
|
287
|
+
inputRange,
|
|
288
|
+
outputRange
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
function getAnimationConfig(key, animations, animation) {
|
|
292
|
+
if (typeof animation == "string") return animations[animation];
|
|
293
|
+
var type = "",
|
|
294
|
+
extraConf,
|
|
295
|
+
shortKey = transformShorthands[key];
|
|
296
|
+
if (Array.isArray(animation)) {
|
|
297
|
+
var _animation_, _animation_1;
|
|
298
|
+
type = animation[0];
|
|
299
|
+
var _animation__key,
|
|
300
|
+
conf = (_animation__key = (_animation_ = animation[1]) === null || _animation_ === void 0 ? void 0 : _animation_[key]) !== null && _animation__key !== void 0 ? _animation__key : (_animation_1 = animation[1]) === null || _animation_1 === void 0 ? void 0 : _animation_1[shortKey];
|
|
301
|
+
conf && (typeof conf == "string" ? type = conf : (type = conf.type || type, extraConf = conf));
|
|
302
|
+
} else {
|
|
303
|
+
var _animation_key,
|
|
304
|
+
val = (_animation_key = animation?.[key]) !== null && _animation_key !== void 0 ? _animation_key : animation?.[shortKey];
|
|
305
|
+
type = val?.type, extraConf = val;
|
|
306
|
+
}
|
|
307
|
+
var found = animations[type];
|
|
308
|
+
return {
|
|
309
|
+
...found,
|
|
310
|
+
...extraConf
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
var transformShorthands = {
|
|
314
|
+
x: "translateX",
|
|
315
|
+
y: "translateY",
|
|
316
|
+
translateX: "x",
|
|
317
|
+
translateY: "y"
|
|
318
|
+
};
|
|
319
|
+
function getValue(input) {
|
|
320
|
+
var isColor = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
321
|
+
if (typeof input != "string") return [input];
|
|
322
|
+
var _input_match,
|
|
323
|
+
[_, number, after] = (_input_match = input.match(/([-0-9]+)(deg|%|px)/)) !== null && _input_match !== void 0 ? _input_match : [];
|
|
324
|
+
return [+number, after];
|
|
325
|
+
}
|
|
326
|
+
export { AnimatedText, AnimatedView, createAnimations, useAnimatedNumber, useAnimatedNumberReaction, useAnimatedNumberStyle };
|
|
327
|
+
//# sourceMappingURL=createAnimations.native.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","ResetPresence","usePresence","isWeb","useIsomorphicLayoutEffect","useEvent","Animated","animatedStyleKey","transform","opacity","colorStyleKey","backgroundColor","color","borderColor","borderLeftColor","borderRightColor","borderTopColor","borderBottomColor","costlyToAnimateStyleKey","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderWidth","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","AnimatedView","View","AnimatedText","Text","useAnimatedNumber","initial","state","useRef","current","composite","val","Value","strategy","type","getInstance","getValue","_value","stop","_state_current_composite","setValue","next","config","arguments","length","onFinish","handleFinish","param","finished","spring","toValue","useNativeDriver","start","_state_current_composite1","composite1","timing","useAnimatedNumberReaction","onValue","value","onChange","useEffect","id","addListener","removeListener","useAnimatedNumberStyle","getStyle","createAnimations","animations","isReactNative","useAnimations","props","onDidAnimate","style","componentState","presence","isExiting","sendExitComplete","animateStyles","animatedTranforms","animationsState","WeakMap","animateOnly","hasAnimateOnly","args","JSON","stringify","isThereNoNativeStyleKeys","useMemo","Object","keys","some","key","indexOf","res","runners","completions","nonAnimatedStyle","includes","update","console","warn","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","entries","Symbol","iterator","_step","done","index","_animatedTranforms_current_index","tkey","currentTransform","err","return","animatedStyle","fromEntries","map","param2","k","v","_animationsState_current_get","get","interpolation","r","key2","val2","animated","valIn","isColorStyleKey","animateToValue","curInterpolation","interpolateArgs","_curInterpolation_current","getInterpolated","set","interpolate","getColorInterpolated","animationConfig","getAnimationConfig","animation","resolve","promise","Promise","res2","push","stopAnimation","getAnimation","delay","sequence","process","env","NODE_ENV","debug","info","forEach","cancel","all","then","response","inputStyle","currentColor","nextColor","inputRange","outputRange","reverse"],"sources":["../../src/createAnimations.tsx"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,KAAA,MAAW;AAClB,SAASC,aAAA,EAAeC,WAAA,QAAmB;AAC3C,SAASC,KAAA,EAAOC,yBAAA,QAAiC;AAOjD,SAAS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ACb;QACF,IAAOgC,MAAA,GAAU,CAAC;QAClB,OAAMb,OAAO,CAAAc,GAAA,CAAUjE,GAAC,CAAAE,WAAY,EAAAgE,IAAA,aAAe;UAC/CF,MACE,KAAOtF,YAAS,MAClBI,SAAO,IAAAC,gBAEc;QAI3B,CAAO;UACCiF,MAAM;QACZ;MAEF,GAAA1E,IAAA,GAAAoE,OAAA,CAAAC,GAAA,CAAAC,QAAA,sBAAAnF,KAAA,CAAAoF,KAAA,kBAAAvD,OAAA,CAAAwD,IAAA;QAEAK,QAAO,EAAAnE,GAAA;QADOoE,UAAW,EAAAzF,KAAI;QAGxBG;MACL,IAAAkB,GAAA;IACF;EAGA;AAA4B;AACvB,SACA6C,qBAAAwB,YAAA,EAAAC,SAAA,EAAAhC,cAAA;EACH,IAAAiC,UAAY,IACZ,GACF,EAEA;IAAAC,WAAS,GAAS,CAChBH,YAAW,IAAAC,SAAU,EACnBA,SAAQ,CAEV;EACA,OAAOhC,cAAU,KAAK,KAAAkC,WAAA,CAAAC,OAAA;IACxBF,UAAA","ignoreList":[]}
|
package/dist/esm/index.native.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAEA,cAAc","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["requestAnimationFrame","globalThis","setImmediate"],"sources":["../../src/polyfill.ts"],"sourcesContent":[null],"mappings":"AACI,OAAOA,qBAAA,GAA0B,QACnCC,UAAA,CAAWD,qBAAA,GAA2BE,YAAA","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/animations-react-native",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.111.0",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"removeSideEffects": true,
|
|
6
6
|
"sideEffects": [
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@tamagui/constants": "1.
|
|
30
|
-
"@tamagui/use-presence": "1.
|
|
31
|
-
"@tamagui/web": "1.
|
|
29
|
+
"@tamagui/constants": "1.111.0",
|
|
30
|
+
"@tamagui/use-presence": "1.111.0",
|
|
31
|
+
"@tamagui/web": "1.111.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@tamagui/build": "1.
|
|
34
|
+
"@tamagui/build": "1.111.0",
|
|
35
35
|
"react": "^18.2.0 || ^19.0.0",
|
|
36
36
|
"react-native": "0.74.1"
|
|
37
37
|
},
|