vitest-native 0.1.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/LICENSE +21 -0
- package/README.md +456 -0
- package/dist/chunk-CjcI7cDX.mjs +15 -0
- package/dist/helpers.cjs +113 -0
- package/dist/helpers.d.cts +19 -0
- package/dist/helpers.d.mts +19 -0
- package/dist/helpers.mjs +108 -0
- package/dist/index-CJqS-y_M.d.cts +268 -0
- package/dist/index-h4vpIkQO.d.mts +266 -0
- package/dist/index.cjs +308 -0
- package/dist/index.d.cts +14 -0
- package/dist/index.d.mts +14 -0
- package/dist/index.mjs +299 -0
- package/dist/preset-map-C5d8DSY7.cjs +21 -0
- package/dist/preset-map-CTAjv5aa.mjs +16 -0
- package/dist/presets-ArwboRy7.cjs +980 -0
- package/dist/presets-DgEuMxfn.mjs +896 -0
- package/dist/presets.cjs +9 -0
- package/dist/presets.d.cts +2 -0
- package/dist/presets.d.mts +2 -0
- package/dist/presets.mjs +2 -0
- package/dist/serializer.cjs +118 -0
- package/dist/serializer.d.cts +16 -0
- package/dist/serializer.d.mts +16 -0
- package/dist/serializer.mjs +117 -0
- package/dist/setup.cjs +1869 -0
- package/dist/setup.d.cts +1 -0
- package/dist/setup.d.mts +1 -0
- package/dist/setup.mjs +1869 -0
- package/package.json +124 -0
|
@@ -0,0 +1,980 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __exportAll = (all, no_symbols) => {
|
|
9
|
+
let target = {};
|
|
10
|
+
for (var name in all) __defProp(target, name, {
|
|
11
|
+
get: all[name],
|
|
12
|
+
enumerable: true
|
|
13
|
+
});
|
|
14
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
15
|
+
return target;
|
|
16
|
+
};
|
|
17
|
+
var __copyProps = (to, from, except, desc) => {
|
|
18
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
19
|
+
key = keys[i];
|
|
20
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
21
|
+
get: ((k) => from[k]).bind(null, key),
|
|
22
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
return to;
|
|
26
|
+
};
|
|
27
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
+
value: mod,
|
|
29
|
+
enumerable: true
|
|
30
|
+
}) : target, mod));
|
|
31
|
+
//#endregion
|
|
32
|
+
let vitest = require("vitest");
|
|
33
|
+
let react = require("react");
|
|
34
|
+
react = __toESM(react);
|
|
35
|
+
//#region src/presets/reanimated.ts
|
|
36
|
+
function reanimated() {
|
|
37
|
+
return {
|
|
38
|
+
name: "reanimated",
|
|
39
|
+
modules: { "react-native-reanimated": {
|
|
40
|
+
exports: [
|
|
41
|
+
"useSharedValue",
|
|
42
|
+
"useAnimatedStyle",
|
|
43
|
+
"useAnimatedProps",
|
|
44
|
+
"useDerivedValue",
|
|
45
|
+
"useAnimatedScrollHandler",
|
|
46
|
+
"useAnimatedGestureHandler",
|
|
47
|
+
"withTiming",
|
|
48
|
+
"withSpring",
|
|
49
|
+
"withDecay",
|
|
50
|
+
"withSequence",
|
|
51
|
+
"withDelay",
|
|
52
|
+
"withRepeat",
|
|
53
|
+
"runOnJS",
|
|
54
|
+
"runOnUI",
|
|
55
|
+
"createAnimatedComponent",
|
|
56
|
+
"Easing",
|
|
57
|
+
"FadeIn",
|
|
58
|
+
"FadeOut",
|
|
59
|
+
"SlideInRight",
|
|
60
|
+
"SlideOutLeft",
|
|
61
|
+
"Layout",
|
|
62
|
+
"interpolate",
|
|
63
|
+
"Extrapolation",
|
|
64
|
+
"useAnimatedRef",
|
|
65
|
+
"measure",
|
|
66
|
+
"scrollTo",
|
|
67
|
+
"cancelAnimation"
|
|
68
|
+
],
|
|
69
|
+
factory: () => {
|
|
70
|
+
function createSharedValue(init) {
|
|
71
|
+
const listeners = /* @__PURE__ */ new Map();
|
|
72
|
+
const sv = {
|
|
73
|
+
value: init,
|
|
74
|
+
get() {
|
|
75
|
+
return sv.value;
|
|
76
|
+
},
|
|
77
|
+
set(value) {
|
|
78
|
+
sv.value = typeof value === "function" ? value(sv.value) : value;
|
|
79
|
+
listeners.forEach((fn) => fn(sv.value));
|
|
80
|
+
},
|
|
81
|
+
addListener(id, listener) {
|
|
82
|
+
listeners.set(id, listener);
|
|
83
|
+
},
|
|
84
|
+
removeListener(id) {
|
|
85
|
+
listeners.delete(id);
|
|
86
|
+
},
|
|
87
|
+
modify(modifier, forceUpdate) {
|
|
88
|
+
if (modifier) modifier(sv.value);
|
|
89
|
+
if (forceUpdate !== false) listeners.forEach((fn) => fn(sv.value));
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
return sv;
|
|
93
|
+
}
|
|
94
|
+
function useSharedValue(init) {
|
|
95
|
+
return react.default.useRef(createSharedValue(init)).current;
|
|
96
|
+
}
|
|
97
|
+
function useAnimatedStyle(updater) {
|
|
98
|
+
return updater();
|
|
99
|
+
}
|
|
100
|
+
function useAnimatedProps(updater) {
|
|
101
|
+
return updater();
|
|
102
|
+
}
|
|
103
|
+
function useDerivedValue(updater) {
|
|
104
|
+
return createSharedValue(updater());
|
|
105
|
+
}
|
|
106
|
+
function useAnimatedScrollHandler(_handler) {
|
|
107
|
+
return vitest.vi.fn();
|
|
108
|
+
}
|
|
109
|
+
function useAnimatedGestureHandler(_handler) {
|
|
110
|
+
return vitest.vi.fn();
|
|
111
|
+
}
|
|
112
|
+
function withTiming(toValue, _config, callback) {
|
|
113
|
+
callback?.({
|
|
114
|
+
finished: true,
|
|
115
|
+
current: toValue
|
|
116
|
+
});
|
|
117
|
+
return toValue;
|
|
118
|
+
}
|
|
119
|
+
function withSpring(toValue, _config, callback) {
|
|
120
|
+
callback?.({
|
|
121
|
+
finished: true,
|
|
122
|
+
current: toValue
|
|
123
|
+
});
|
|
124
|
+
return toValue;
|
|
125
|
+
}
|
|
126
|
+
function withDecay(_config, callback) {
|
|
127
|
+
callback?.({
|
|
128
|
+
finished: true,
|
|
129
|
+
current: 0
|
|
130
|
+
});
|
|
131
|
+
return 0;
|
|
132
|
+
}
|
|
133
|
+
function withSequence(...values) {
|
|
134
|
+
return values[values.length - 1];
|
|
135
|
+
}
|
|
136
|
+
function withDelay(_delay, value) {
|
|
137
|
+
return value;
|
|
138
|
+
}
|
|
139
|
+
function withRepeat(value) {
|
|
140
|
+
return value;
|
|
141
|
+
}
|
|
142
|
+
function runOnJS(fn) {
|
|
143
|
+
return fn;
|
|
144
|
+
}
|
|
145
|
+
function runOnUI(fn) {
|
|
146
|
+
return fn;
|
|
147
|
+
}
|
|
148
|
+
function createAnimatedComponent(component) {
|
|
149
|
+
const Animated = react.default.forwardRef((props, ref) => {
|
|
150
|
+
return react.default.createElement(component, {
|
|
151
|
+
...props,
|
|
152
|
+
ref
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
Animated.displayName = `Animated(${component.displayName || component.name || "Component"})`;
|
|
156
|
+
return Animated;
|
|
157
|
+
}
|
|
158
|
+
return {
|
|
159
|
+
default: { createAnimatedComponent },
|
|
160
|
+
useSharedValue,
|
|
161
|
+
useAnimatedStyle,
|
|
162
|
+
useAnimatedProps,
|
|
163
|
+
useDerivedValue,
|
|
164
|
+
useAnimatedScrollHandler,
|
|
165
|
+
useAnimatedGestureHandler,
|
|
166
|
+
withTiming,
|
|
167
|
+
withSpring,
|
|
168
|
+
withDecay,
|
|
169
|
+
withSequence,
|
|
170
|
+
withDelay,
|
|
171
|
+
withRepeat,
|
|
172
|
+
runOnJS,
|
|
173
|
+
runOnUI,
|
|
174
|
+
createAnimatedComponent,
|
|
175
|
+
Easing: {
|
|
176
|
+
linear: vitest.vi.fn((t) => t),
|
|
177
|
+
ease: vitest.vi.fn((t) => t),
|
|
178
|
+
quad: vitest.vi.fn((t) => t * t),
|
|
179
|
+
cubic: vitest.vi.fn((t) => t * t * t),
|
|
180
|
+
bezier: vitest.vi.fn(() => (t) => t),
|
|
181
|
+
in: vitest.vi.fn((fn) => fn),
|
|
182
|
+
out: vitest.vi.fn((fn) => fn),
|
|
183
|
+
inOut: vitest.vi.fn((fn) => fn)
|
|
184
|
+
},
|
|
185
|
+
FadeIn: {
|
|
186
|
+
duration: vitest.vi.fn().mockReturnThis(),
|
|
187
|
+
delay: vitest.vi.fn().mockReturnThis(),
|
|
188
|
+
build: vitest.vi.fn()
|
|
189
|
+
},
|
|
190
|
+
FadeOut: {
|
|
191
|
+
duration: vitest.vi.fn().mockReturnThis(),
|
|
192
|
+
delay: vitest.vi.fn().mockReturnThis(),
|
|
193
|
+
build: vitest.vi.fn()
|
|
194
|
+
},
|
|
195
|
+
SlideInRight: {
|
|
196
|
+
duration: vitest.vi.fn().mockReturnThis(),
|
|
197
|
+
build: vitest.vi.fn()
|
|
198
|
+
},
|
|
199
|
+
SlideOutLeft: {
|
|
200
|
+
duration: vitest.vi.fn().mockReturnThis(),
|
|
201
|
+
build: vitest.vi.fn()
|
|
202
|
+
},
|
|
203
|
+
Layout: {
|
|
204
|
+
duration: vitest.vi.fn().mockReturnThis(),
|
|
205
|
+
build: vitest.vi.fn()
|
|
206
|
+
},
|
|
207
|
+
interpolate: vitest.vi.fn((_value, input, output) => output[0]),
|
|
208
|
+
Extrapolation: {
|
|
209
|
+
CLAMP: "clamp",
|
|
210
|
+
EXTEND: "extend",
|
|
211
|
+
IDENTITY: "identity"
|
|
212
|
+
},
|
|
213
|
+
useAnimatedRef: () => react.default.useRef(null),
|
|
214
|
+
measure: vitest.vi.fn(() => ({
|
|
215
|
+
x: 0,
|
|
216
|
+
y: 0,
|
|
217
|
+
width: 0,
|
|
218
|
+
height: 0,
|
|
219
|
+
pageX: 0,
|
|
220
|
+
pageY: 0
|
|
221
|
+
})),
|
|
222
|
+
scrollTo: vitest.vi.fn(),
|
|
223
|
+
cancelAnimation: vitest.vi.fn()
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
} }
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
//#endregion
|
|
230
|
+
//#region src/presets/gesture-handler.ts
|
|
231
|
+
function gestureHandler() {
|
|
232
|
+
return {
|
|
233
|
+
name: "gestureHandler",
|
|
234
|
+
modules: { "react-native-gesture-handler": {
|
|
235
|
+
exports: [
|
|
236
|
+
"State",
|
|
237
|
+
"Directions",
|
|
238
|
+
"Gesture",
|
|
239
|
+
"GestureDetector",
|
|
240
|
+
"GestureHandlerRootView",
|
|
241
|
+
"Swipeable",
|
|
242
|
+
"DrawerLayout",
|
|
243
|
+
"gestureHandlerRootHOC",
|
|
244
|
+
"PanGestureHandler",
|
|
245
|
+
"TapGestureHandler",
|
|
246
|
+
"LongPressGestureHandler",
|
|
247
|
+
"PinchGestureHandler",
|
|
248
|
+
"RotationGestureHandler",
|
|
249
|
+
"FlingGestureHandler",
|
|
250
|
+
"ForceTouchGestureHandler",
|
|
251
|
+
"NativeViewGestureHandler",
|
|
252
|
+
"ScrollView",
|
|
253
|
+
"FlatList",
|
|
254
|
+
"TouchableOpacity",
|
|
255
|
+
"TouchableHighlight",
|
|
256
|
+
"TouchableWithoutFeedback",
|
|
257
|
+
"TouchableNativeFeedback"
|
|
258
|
+
],
|
|
259
|
+
factory: () => {
|
|
260
|
+
const State = {
|
|
261
|
+
UNDETERMINED: 0,
|
|
262
|
+
FAILED: 1,
|
|
263
|
+
BEGAN: 2,
|
|
264
|
+
CANCELLED: 3,
|
|
265
|
+
ACTIVE: 4,
|
|
266
|
+
END: 5
|
|
267
|
+
};
|
|
268
|
+
const Directions = {
|
|
269
|
+
RIGHT: 1,
|
|
270
|
+
LEFT: 2,
|
|
271
|
+
UP: 4,
|
|
272
|
+
DOWN: 8
|
|
273
|
+
};
|
|
274
|
+
function createGestureHandler(name) {
|
|
275
|
+
const Handler = react.default.forwardRef((props, ref) => react.default.createElement(name, {
|
|
276
|
+
...props,
|
|
277
|
+
ref
|
|
278
|
+
}, props.children));
|
|
279
|
+
Handler.displayName = name;
|
|
280
|
+
return Handler;
|
|
281
|
+
}
|
|
282
|
+
const GestureHandlerRootView = react.default.forwardRef((props, ref) => react.default.createElement("GestureHandlerRootView", {
|
|
283
|
+
...props,
|
|
284
|
+
ref
|
|
285
|
+
}, props.children));
|
|
286
|
+
GestureHandlerRootView.displayName = "GestureHandlerRootView";
|
|
287
|
+
const Swipeable = react.default.forwardRef((props, ref) => react.default.createElement("Swipeable", {
|
|
288
|
+
...props,
|
|
289
|
+
ref
|
|
290
|
+
}, props.children));
|
|
291
|
+
Swipeable.displayName = "Swipeable";
|
|
292
|
+
const DrawerLayout = react.default.forwardRef((props, ref) => react.default.createElement("DrawerLayout", {
|
|
293
|
+
...props,
|
|
294
|
+
ref
|
|
295
|
+
}, props.children));
|
|
296
|
+
DrawerLayout.displayName = "DrawerLayout";
|
|
297
|
+
function gestureHandlerRootHOC(component) {
|
|
298
|
+
return component;
|
|
299
|
+
}
|
|
300
|
+
const Gesture = {
|
|
301
|
+
Pan: vitest.vi.fn(() => ({
|
|
302
|
+
onStart: vitest.vi.fn().mockReturnThis(),
|
|
303
|
+
onUpdate: vitest.vi.fn().mockReturnThis(),
|
|
304
|
+
onEnd: vitest.vi.fn().mockReturnThis(),
|
|
305
|
+
onFinalize: vitest.vi.fn().mockReturnThis(),
|
|
306
|
+
enabled: vitest.vi.fn().mockReturnThis(),
|
|
307
|
+
minDistance: vitest.vi.fn().mockReturnThis()
|
|
308
|
+
})),
|
|
309
|
+
Tap: vitest.vi.fn(() => ({
|
|
310
|
+
onStart: vitest.vi.fn().mockReturnThis(),
|
|
311
|
+
onEnd: vitest.vi.fn().mockReturnThis(),
|
|
312
|
+
numberOfTaps: vitest.vi.fn().mockReturnThis(),
|
|
313
|
+
enabled: vitest.vi.fn().mockReturnThis()
|
|
314
|
+
})),
|
|
315
|
+
LongPress: vitest.vi.fn(() => ({
|
|
316
|
+
onStart: vitest.vi.fn().mockReturnThis(),
|
|
317
|
+
onEnd: vitest.vi.fn().mockReturnThis(),
|
|
318
|
+
minDuration: vitest.vi.fn().mockReturnThis(),
|
|
319
|
+
enabled: vitest.vi.fn().mockReturnThis()
|
|
320
|
+
})),
|
|
321
|
+
Pinch: vitest.vi.fn(() => ({
|
|
322
|
+
onStart: vitest.vi.fn().mockReturnThis(),
|
|
323
|
+
onUpdate: vitest.vi.fn().mockReturnThis(),
|
|
324
|
+
onEnd: vitest.vi.fn().mockReturnThis(),
|
|
325
|
+
enabled: vitest.vi.fn().mockReturnThis()
|
|
326
|
+
})),
|
|
327
|
+
Rotation: vitest.vi.fn(() => ({
|
|
328
|
+
onStart: vitest.vi.fn().mockReturnThis(),
|
|
329
|
+
onUpdate: vitest.vi.fn().mockReturnThis(),
|
|
330
|
+
onEnd: vitest.vi.fn().mockReturnThis(),
|
|
331
|
+
enabled: vitest.vi.fn().mockReturnThis()
|
|
332
|
+
})),
|
|
333
|
+
Fling: vitest.vi.fn(() => ({
|
|
334
|
+
direction: vitest.vi.fn().mockReturnThis(),
|
|
335
|
+
onStart: vitest.vi.fn().mockReturnThis(),
|
|
336
|
+
onEnd: vitest.vi.fn().mockReturnThis(),
|
|
337
|
+
enabled: vitest.vi.fn().mockReturnThis()
|
|
338
|
+
})),
|
|
339
|
+
Simultaneous: vitest.vi.fn((..._gestures) => ({})),
|
|
340
|
+
Exclusive: vitest.vi.fn((..._gestures) => ({})),
|
|
341
|
+
Race: vitest.vi.fn((..._gestures) => ({}))
|
|
342
|
+
};
|
|
343
|
+
const GestureDetector = react.default.forwardRef((props, ref) => react.default.createElement("GestureDetector", {
|
|
344
|
+
...props,
|
|
345
|
+
ref
|
|
346
|
+
}, props.children));
|
|
347
|
+
GestureDetector.displayName = "GestureDetector";
|
|
348
|
+
return {
|
|
349
|
+
default: {
|
|
350
|
+
GestureHandlerRootView,
|
|
351
|
+
State,
|
|
352
|
+
Directions
|
|
353
|
+
},
|
|
354
|
+
State,
|
|
355
|
+
Directions,
|
|
356
|
+
Gesture,
|
|
357
|
+
GestureDetector,
|
|
358
|
+
GestureHandlerRootView,
|
|
359
|
+
Swipeable,
|
|
360
|
+
DrawerLayout,
|
|
361
|
+
gestureHandlerRootHOC,
|
|
362
|
+
PanGestureHandler: createGestureHandler("PanGestureHandler"),
|
|
363
|
+
TapGestureHandler: createGestureHandler("TapGestureHandler"),
|
|
364
|
+
LongPressGestureHandler: createGestureHandler("LongPressGestureHandler"),
|
|
365
|
+
PinchGestureHandler: createGestureHandler("PinchGestureHandler"),
|
|
366
|
+
RotationGestureHandler: createGestureHandler("RotationGestureHandler"),
|
|
367
|
+
FlingGestureHandler: createGestureHandler("FlingGestureHandler"),
|
|
368
|
+
ForceTouchGestureHandler: createGestureHandler("ForceTouchGestureHandler"),
|
|
369
|
+
NativeViewGestureHandler: createGestureHandler("NativeViewGestureHandler"),
|
|
370
|
+
ScrollView: createGestureHandler("GH-ScrollView"),
|
|
371
|
+
FlatList: createGestureHandler("GH-FlatList"),
|
|
372
|
+
TouchableOpacity: createGestureHandler("GH-TouchableOpacity"),
|
|
373
|
+
TouchableHighlight: createGestureHandler("GH-TouchableHighlight"),
|
|
374
|
+
TouchableWithoutFeedback: createGestureHandler("GH-TouchableWithoutFeedback"),
|
|
375
|
+
TouchableNativeFeedback: createGestureHandler("GH-TouchableNativeFeedback")
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
} }
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
//#endregion
|
|
382
|
+
//#region src/presets/safe-area.ts
|
|
383
|
+
function safeAreaContext() {
|
|
384
|
+
return {
|
|
385
|
+
name: "safeAreaContext",
|
|
386
|
+
modules: { "react-native-safe-area-context": {
|
|
387
|
+
exports: [
|
|
388
|
+
"SafeAreaProvider",
|
|
389
|
+
"SafeAreaView",
|
|
390
|
+
"SafeAreaInsetsContext",
|
|
391
|
+
"SafeAreaFrameContext",
|
|
392
|
+
"useSafeAreaInsets",
|
|
393
|
+
"useSafeAreaFrame",
|
|
394
|
+
"withSafeAreaInsets",
|
|
395
|
+
"initialWindowMetrics",
|
|
396
|
+
"initialWindowSafeAreaInsets",
|
|
397
|
+
"EdgeInsets",
|
|
398
|
+
"Rect",
|
|
399
|
+
"Metrics"
|
|
400
|
+
],
|
|
401
|
+
factory: () => {
|
|
402
|
+
const initialMetrics = {
|
|
403
|
+
frame: {
|
|
404
|
+
x: 0,
|
|
405
|
+
y: 0,
|
|
406
|
+
width: 390,
|
|
407
|
+
height: 844
|
|
408
|
+
},
|
|
409
|
+
insets: {
|
|
410
|
+
top: 47,
|
|
411
|
+
right: 0,
|
|
412
|
+
bottom: 34,
|
|
413
|
+
left: 0
|
|
414
|
+
}
|
|
415
|
+
};
|
|
416
|
+
const SafeAreaProvider = react.default.forwardRef((props, ref) => react.default.createElement("SafeAreaProvider", {
|
|
417
|
+
...props,
|
|
418
|
+
ref
|
|
419
|
+
}, props.children));
|
|
420
|
+
SafeAreaProvider.displayName = "SafeAreaProvider";
|
|
421
|
+
const SafeAreaView = react.default.forwardRef((props, ref) => react.default.createElement("SafeAreaView", {
|
|
422
|
+
...props,
|
|
423
|
+
ref
|
|
424
|
+
}, props.children));
|
|
425
|
+
SafeAreaView.displayName = "SafeAreaView";
|
|
426
|
+
const SafeAreaInsetsContext = react.default.createContext(initialMetrics.insets);
|
|
427
|
+
const SafeAreaFrameContext = react.default.createContext(initialMetrics.frame);
|
|
428
|
+
function useSafeAreaInsets() {
|
|
429
|
+
return initialMetrics.insets;
|
|
430
|
+
}
|
|
431
|
+
function useSafeAreaFrame() {
|
|
432
|
+
return initialMetrics.frame;
|
|
433
|
+
}
|
|
434
|
+
function withSafeAreaInsets(WrappedComponent) {
|
|
435
|
+
const WithSafeAreaInsets = react.default.forwardRef((props, ref) => react.default.createElement(WrappedComponent, {
|
|
436
|
+
...props,
|
|
437
|
+
ref,
|
|
438
|
+
insets: initialMetrics.insets
|
|
439
|
+
}));
|
|
440
|
+
WithSafeAreaInsets.displayName = `withSafeAreaInsets(${WrappedComponent.displayName || WrappedComponent.name || "Component"})`;
|
|
441
|
+
return WithSafeAreaInsets;
|
|
442
|
+
}
|
|
443
|
+
return {
|
|
444
|
+
default: {
|
|
445
|
+
SafeAreaProvider,
|
|
446
|
+
SafeAreaView
|
|
447
|
+
},
|
|
448
|
+
SafeAreaProvider,
|
|
449
|
+
SafeAreaView,
|
|
450
|
+
SafeAreaInsetsContext,
|
|
451
|
+
SafeAreaFrameContext,
|
|
452
|
+
useSafeAreaInsets,
|
|
453
|
+
useSafeAreaFrame,
|
|
454
|
+
withSafeAreaInsets,
|
|
455
|
+
initialWindowMetrics: initialMetrics,
|
|
456
|
+
initialWindowSafeAreaInsets: initialMetrics.insets,
|
|
457
|
+
EdgeInsets: vitest.vi.fn(),
|
|
458
|
+
Rect: vitest.vi.fn(),
|
|
459
|
+
Metrics: vitest.vi.fn()
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
} }
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
//#endregion
|
|
466
|
+
//#region src/presets/navigation.ts
|
|
467
|
+
function navigation() {
|
|
468
|
+
return {
|
|
469
|
+
name: "navigation",
|
|
470
|
+
modules: { "@react-navigation/native": {
|
|
471
|
+
exports: [
|
|
472
|
+
"NavigationContainer",
|
|
473
|
+
"useNavigation",
|
|
474
|
+
"useRoute",
|
|
475
|
+
"useFocusEffect",
|
|
476
|
+
"useIsFocused",
|
|
477
|
+
"useNavigationState",
|
|
478
|
+
"createNavigationContainerRef",
|
|
479
|
+
"NavigationContext",
|
|
480
|
+
"NavigationRouteContext",
|
|
481
|
+
"CommonActions",
|
|
482
|
+
"StackActions",
|
|
483
|
+
"TabActions",
|
|
484
|
+
"DrawerActions",
|
|
485
|
+
"useLinkTo",
|
|
486
|
+
"Link"
|
|
487
|
+
],
|
|
488
|
+
factory: () => {
|
|
489
|
+
const NavigationContainer = react.default.forwardRef((props, ref) => react.default.createElement("NavigationContainer", {
|
|
490
|
+
...props,
|
|
491
|
+
ref
|
|
492
|
+
}, props.children));
|
|
493
|
+
NavigationContainer.displayName = "NavigationContainer";
|
|
494
|
+
const navigate = vitest.vi.fn();
|
|
495
|
+
const goBack = vitest.vi.fn();
|
|
496
|
+
const reset = vitest.vi.fn();
|
|
497
|
+
const setParams = vitest.vi.fn();
|
|
498
|
+
const setOptions = vitest.vi.fn();
|
|
499
|
+
const dispatch = vitest.vi.fn();
|
|
500
|
+
const canGoBack = vitest.vi.fn(() => false);
|
|
501
|
+
const getParent = vitest.vi.fn(() => void 0);
|
|
502
|
+
const getState = vitest.vi.fn(() => ({
|
|
503
|
+
index: 0,
|
|
504
|
+
key: "root",
|
|
505
|
+
routeNames: [],
|
|
506
|
+
routes: [],
|
|
507
|
+
type: "stack",
|
|
508
|
+
stale: false
|
|
509
|
+
}));
|
|
510
|
+
function useNavigation() {
|
|
511
|
+
return {
|
|
512
|
+
navigate,
|
|
513
|
+
goBack,
|
|
514
|
+
reset,
|
|
515
|
+
setParams,
|
|
516
|
+
setOptions,
|
|
517
|
+
dispatch,
|
|
518
|
+
canGoBack,
|
|
519
|
+
getParent,
|
|
520
|
+
getState,
|
|
521
|
+
isFocused: vitest.vi.fn(() => true),
|
|
522
|
+
addListener: vitest.vi.fn(() => vitest.vi.fn()),
|
|
523
|
+
removeListener: vitest.vi.fn(),
|
|
524
|
+
getId: vitest.vi.fn(() => void 0)
|
|
525
|
+
};
|
|
526
|
+
}
|
|
527
|
+
function useRoute() {
|
|
528
|
+
return {
|
|
529
|
+
key: "test-route-key",
|
|
530
|
+
name: "TestScreen",
|
|
531
|
+
params: {}
|
|
532
|
+
};
|
|
533
|
+
}
|
|
534
|
+
function useFocusEffect(callback) {
|
|
535
|
+
react.default.useEffect(callback, []);
|
|
536
|
+
}
|
|
537
|
+
function useIsFocused() {
|
|
538
|
+
return true;
|
|
539
|
+
}
|
|
540
|
+
function useNavigationState(selector) {
|
|
541
|
+
return selector(getState());
|
|
542
|
+
}
|
|
543
|
+
function createNavigationContainerRef() {
|
|
544
|
+
return {
|
|
545
|
+
current: null,
|
|
546
|
+
isReady: vitest.vi.fn(() => true),
|
|
547
|
+
navigate,
|
|
548
|
+
goBack,
|
|
549
|
+
reset,
|
|
550
|
+
dispatch,
|
|
551
|
+
canGoBack,
|
|
552
|
+
getState,
|
|
553
|
+
getRootState: getState,
|
|
554
|
+
getCurrentRoute: vitest.vi.fn(() => ({
|
|
555
|
+
key: "test",
|
|
556
|
+
name: "TestScreen"
|
|
557
|
+
})),
|
|
558
|
+
getCurrentOptions: vitest.vi.fn(() => ({})),
|
|
559
|
+
addListener: vitest.vi.fn(() => vitest.vi.fn())
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
const NavigationContext = react.default.createContext(null);
|
|
563
|
+
const NavigationRouteContext = react.default.createContext(null);
|
|
564
|
+
return {
|
|
565
|
+
default: { NavigationContainer },
|
|
566
|
+
NavigationContainer,
|
|
567
|
+
useNavigation,
|
|
568
|
+
useRoute,
|
|
569
|
+
useFocusEffect,
|
|
570
|
+
useIsFocused,
|
|
571
|
+
useNavigationState,
|
|
572
|
+
createNavigationContainerRef,
|
|
573
|
+
NavigationContext,
|
|
574
|
+
NavigationRouteContext,
|
|
575
|
+
CommonActions: {
|
|
576
|
+
navigate: vitest.vi.fn(),
|
|
577
|
+
reset: vitest.vi.fn(),
|
|
578
|
+
goBack: vitest.vi.fn(),
|
|
579
|
+
setParams: vitest.vi.fn()
|
|
580
|
+
},
|
|
581
|
+
StackActions: {
|
|
582
|
+
push: vitest.vi.fn(),
|
|
583
|
+
pop: vitest.vi.fn(),
|
|
584
|
+
popToTop: vitest.vi.fn(),
|
|
585
|
+
replace: vitest.vi.fn()
|
|
586
|
+
},
|
|
587
|
+
TabActions: { jumpTo: vitest.vi.fn() },
|
|
588
|
+
DrawerActions: {
|
|
589
|
+
openDrawer: vitest.vi.fn(),
|
|
590
|
+
closeDrawer: vitest.vi.fn(),
|
|
591
|
+
toggleDrawer: vitest.vi.fn(),
|
|
592
|
+
jumpTo: vitest.vi.fn()
|
|
593
|
+
},
|
|
594
|
+
useLinkTo: vitest.vi.fn(() => vitest.vi.fn()),
|
|
595
|
+
Link: react.default.forwardRef((props, ref) => react.default.createElement("Link", {
|
|
596
|
+
...props,
|
|
597
|
+
ref
|
|
598
|
+
}, props.children))
|
|
599
|
+
};
|
|
600
|
+
}
|
|
601
|
+
} }
|
|
602
|
+
};
|
|
603
|
+
}
|
|
604
|
+
//#endregion
|
|
605
|
+
//#region src/presets/async-storage.ts
|
|
606
|
+
function asyncStorage() {
|
|
607
|
+
return {
|
|
608
|
+
name: "asyncStorage",
|
|
609
|
+
modules: { "@react-native-async-storage/async-storage": {
|
|
610
|
+
exports: [
|
|
611
|
+
"getItem",
|
|
612
|
+
"setItem",
|
|
613
|
+
"removeItem",
|
|
614
|
+
"mergeItem",
|
|
615
|
+
"clear",
|
|
616
|
+
"getAllKeys",
|
|
617
|
+
"multiGet",
|
|
618
|
+
"multiSet",
|
|
619
|
+
"multiRemove",
|
|
620
|
+
"multiMerge",
|
|
621
|
+
"flushGetRequests"
|
|
622
|
+
],
|
|
623
|
+
factory: () => {
|
|
624
|
+
const store = /* @__PURE__ */ new Map();
|
|
625
|
+
const exports = {
|
|
626
|
+
getItem: vitest.vi.fn(async (key) => {
|
|
627
|
+
return store.get(key) ?? null;
|
|
628
|
+
}),
|
|
629
|
+
setItem: vitest.vi.fn(async (key, value) => {
|
|
630
|
+
store.set(key, value);
|
|
631
|
+
}),
|
|
632
|
+
removeItem: vitest.vi.fn(async (key) => {
|
|
633
|
+
store.delete(key);
|
|
634
|
+
}),
|
|
635
|
+
mergeItem: vitest.vi.fn(async (key, value) => {
|
|
636
|
+
const existing = store.get(key);
|
|
637
|
+
if (existing) try {
|
|
638
|
+
const merged = {
|
|
639
|
+
...JSON.parse(existing),
|
|
640
|
+
...JSON.parse(value)
|
|
641
|
+
};
|
|
642
|
+
store.set(key, JSON.stringify(merged));
|
|
643
|
+
} catch {
|
|
644
|
+
store.set(key, value);
|
|
645
|
+
}
|
|
646
|
+
else store.set(key, value);
|
|
647
|
+
}),
|
|
648
|
+
clear: vitest.vi.fn(async () => {
|
|
649
|
+
store.clear();
|
|
650
|
+
}),
|
|
651
|
+
getAllKeys: vitest.vi.fn(async () => {
|
|
652
|
+
return Array.from(store.keys());
|
|
653
|
+
}),
|
|
654
|
+
multiGet: vitest.vi.fn(async (keys) => {
|
|
655
|
+
return keys.map((key) => [key, store.get(key) ?? null]);
|
|
656
|
+
}),
|
|
657
|
+
multiSet: vitest.vi.fn(async (keyValuePairs) => {
|
|
658
|
+
keyValuePairs.forEach(([key, value]) => store.set(key, value));
|
|
659
|
+
}),
|
|
660
|
+
multiRemove: vitest.vi.fn(async (keys) => {
|
|
661
|
+
keys.forEach((key) => store.delete(key));
|
|
662
|
+
}),
|
|
663
|
+
multiMerge: vitest.vi.fn(async (keyValuePairs) => {
|
|
664
|
+
keyValuePairs.forEach(([key, value]) => {
|
|
665
|
+
const existing = store.get(key);
|
|
666
|
+
if (existing) try {
|
|
667
|
+
const merged = {
|
|
668
|
+
...JSON.parse(existing),
|
|
669
|
+
...JSON.parse(value)
|
|
670
|
+
};
|
|
671
|
+
store.set(key, JSON.stringify(merged));
|
|
672
|
+
} catch {
|
|
673
|
+
store.set(key, value);
|
|
674
|
+
}
|
|
675
|
+
else store.set(key, value);
|
|
676
|
+
});
|
|
677
|
+
}),
|
|
678
|
+
flushGetRequests: vitest.vi.fn(() => {})
|
|
679
|
+
};
|
|
680
|
+
return {
|
|
681
|
+
...exports,
|
|
682
|
+
default: exports
|
|
683
|
+
};
|
|
684
|
+
}
|
|
685
|
+
} }
|
|
686
|
+
};
|
|
687
|
+
}
|
|
688
|
+
//#endregion
|
|
689
|
+
//#region src/presets/screens.ts
|
|
690
|
+
function screens() {
|
|
691
|
+
return {
|
|
692
|
+
name: "screens",
|
|
693
|
+
modules: { "react-native-screens": {
|
|
694
|
+
exports: [
|
|
695
|
+
"enableScreens",
|
|
696
|
+
"screensEnabled",
|
|
697
|
+
"enableFreeze",
|
|
698
|
+
"freezeEnabled",
|
|
699
|
+
"Screen",
|
|
700
|
+
"ScreenContainer",
|
|
701
|
+
"ScreenStack",
|
|
702
|
+
"ScreenStackHeaderConfig",
|
|
703
|
+
"SearchBar",
|
|
704
|
+
"FullWindowOverlay",
|
|
705
|
+
"NativeScreen",
|
|
706
|
+
"NativeScreenContainer"
|
|
707
|
+
],
|
|
708
|
+
factory: () => {
|
|
709
|
+
let screensEnabledFlag = true;
|
|
710
|
+
let freezeEnabledFlag = false;
|
|
711
|
+
const enableScreens = vitest.vi.fn((shouldEnableScreens) => {
|
|
712
|
+
screensEnabledFlag = shouldEnableScreens !== false;
|
|
713
|
+
});
|
|
714
|
+
const screensEnabled = vitest.vi.fn(() => screensEnabledFlag);
|
|
715
|
+
const enableFreeze = vitest.vi.fn((shouldEnableFreeze) => {
|
|
716
|
+
freezeEnabledFlag = shouldEnableFreeze !== false;
|
|
717
|
+
});
|
|
718
|
+
const freezeEnabled = vitest.vi.fn(() => freezeEnabledFlag);
|
|
719
|
+
function createScreenComponent(name) {
|
|
720
|
+
const Component = react.default.forwardRef((props, ref) => react.default.createElement(name, {
|
|
721
|
+
...props,
|
|
722
|
+
ref
|
|
723
|
+
}, props.children));
|
|
724
|
+
Component.displayName = name;
|
|
725
|
+
return Component;
|
|
726
|
+
}
|
|
727
|
+
const Screen = createScreenComponent("Screen");
|
|
728
|
+
const ScreenContainer = createScreenComponent("ScreenContainer");
|
|
729
|
+
const ScreenStack = createScreenComponent("ScreenStack");
|
|
730
|
+
const ScreenStackHeaderConfig = createScreenComponent("ScreenStackHeaderConfig");
|
|
731
|
+
const SearchBar = createScreenComponent("SearchBar");
|
|
732
|
+
const FullWindowOverlay = createScreenComponent("FullWindowOverlay");
|
|
733
|
+
const NativeScreen = createScreenComponent("NativeScreen");
|
|
734
|
+
const NativeScreenContainer = createScreenComponent("NativeScreenContainer");
|
|
735
|
+
return {
|
|
736
|
+
default: {
|
|
737
|
+
Screen,
|
|
738
|
+
ScreenContainer,
|
|
739
|
+
enableScreens,
|
|
740
|
+
screensEnabled
|
|
741
|
+
},
|
|
742
|
+
enableScreens,
|
|
743
|
+
screensEnabled,
|
|
744
|
+
enableFreeze,
|
|
745
|
+
freezeEnabled,
|
|
746
|
+
Screen,
|
|
747
|
+
ScreenContainer,
|
|
748
|
+
ScreenStack,
|
|
749
|
+
ScreenStackHeaderConfig,
|
|
750
|
+
SearchBar,
|
|
751
|
+
FullWindowOverlay,
|
|
752
|
+
NativeScreen,
|
|
753
|
+
NativeScreenContainer
|
|
754
|
+
};
|
|
755
|
+
}
|
|
756
|
+
} }
|
|
757
|
+
};
|
|
758
|
+
}
|
|
759
|
+
//#endregion
|
|
760
|
+
//#region src/presets/expo.ts
|
|
761
|
+
function expo() {
|
|
762
|
+
return {
|
|
763
|
+
name: "expo",
|
|
764
|
+
modules: {
|
|
765
|
+
"expo-constants": {
|
|
766
|
+
exports: [
|
|
767
|
+
"expoConfig",
|
|
768
|
+
"executionEnvironment",
|
|
769
|
+
"appOwnership",
|
|
770
|
+
"isDevice",
|
|
771
|
+
"platform",
|
|
772
|
+
"manifest",
|
|
773
|
+
"manifest2",
|
|
774
|
+
"expoGoConfig",
|
|
775
|
+
"easConfig",
|
|
776
|
+
"experienceUrl",
|
|
777
|
+
"linkingUri",
|
|
778
|
+
"getWebViewUserAgentAsync"
|
|
779
|
+
],
|
|
780
|
+
factory: () => {
|
|
781
|
+
const Constants = {
|
|
782
|
+
expoConfig: {
|
|
783
|
+
name: "test-app",
|
|
784
|
+
slug: "test-app",
|
|
785
|
+
version: "1.0.0",
|
|
786
|
+
extra: {}
|
|
787
|
+
},
|
|
788
|
+
executionEnvironment: "storeClient",
|
|
789
|
+
appOwnership: "standalone",
|
|
790
|
+
isDevice: true,
|
|
791
|
+
platform: {},
|
|
792
|
+
manifest: null,
|
|
793
|
+
manifest2: null,
|
|
794
|
+
expoGoConfig: null,
|
|
795
|
+
easConfig: null,
|
|
796
|
+
experienceUrl: "",
|
|
797
|
+
linkingUri: "",
|
|
798
|
+
getWebViewUserAgentAsync: vitest.vi.fn(async () => "test-user-agent")
|
|
799
|
+
};
|
|
800
|
+
return {
|
|
801
|
+
default: Constants,
|
|
802
|
+
...Constants
|
|
803
|
+
};
|
|
804
|
+
}
|
|
805
|
+
},
|
|
806
|
+
"expo-font": {
|
|
807
|
+
exports: [
|
|
808
|
+
"useFonts",
|
|
809
|
+
"loadAsync",
|
|
810
|
+
"isLoaded"
|
|
811
|
+
],
|
|
812
|
+
factory: () => {
|
|
813
|
+
const exports = {
|
|
814
|
+
useFonts: vitest.vi.fn(() => [true, null]),
|
|
815
|
+
loadAsync: vitest.vi.fn(async () => {}),
|
|
816
|
+
isLoaded: vitest.vi.fn(() => true)
|
|
817
|
+
};
|
|
818
|
+
return {
|
|
819
|
+
...exports,
|
|
820
|
+
default: exports
|
|
821
|
+
};
|
|
822
|
+
}
|
|
823
|
+
},
|
|
824
|
+
"expo-asset": {
|
|
825
|
+
exports: ["Asset"],
|
|
826
|
+
factory: () => {
|
|
827
|
+
const Asset = {
|
|
828
|
+
fromModule: vitest.vi.fn((moduleId) => ({
|
|
829
|
+
uri: `asset://${moduleId}`,
|
|
830
|
+
localUri: `asset://${moduleId}`,
|
|
831
|
+
width: 100,
|
|
832
|
+
height: 100,
|
|
833
|
+
name: "mock-asset",
|
|
834
|
+
type: "png",
|
|
835
|
+
downloadAsync: vitest.vi.fn(async () => {})
|
|
836
|
+
})),
|
|
837
|
+
loadAsync: vitest.vi.fn(async () => {})
|
|
838
|
+
};
|
|
839
|
+
return {
|
|
840
|
+
default: { Asset },
|
|
841
|
+
Asset
|
|
842
|
+
};
|
|
843
|
+
}
|
|
844
|
+
},
|
|
845
|
+
"expo-splash-screen": {
|
|
846
|
+
exports: ["preventAutoHideAsync", "hideAsync"],
|
|
847
|
+
factory: () => {
|
|
848
|
+
const exports = {
|
|
849
|
+
preventAutoHideAsync: vitest.vi.fn(async () => true),
|
|
850
|
+
hideAsync: vitest.vi.fn(async () => true)
|
|
851
|
+
};
|
|
852
|
+
return {
|
|
853
|
+
...exports,
|
|
854
|
+
default: exports
|
|
855
|
+
};
|
|
856
|
+
}
|
|
857
|
+
},
|
|
858
|
+
"expo-linking": {
|
|
859
|
+
exports: [
|
|
860
|
+
"createURL",
|
|
861
|
+
"parse",
|
|
862
|
+
"useURL"
|
|
863
|
+
],
|
|
864
|
+
factory: () => {
|
|
865
|
+
const exports = {
|
|
866
|
+
createURL: vitest.vi.fn((path) => `exp://localhost:19000/${path}`),
|
|
867
|
+
parse: vitest.vi.fn((url) => ({
|
|
868
|
+
scheme: "exp",
|
|
869
|
+
hostname: "localhost",
|
|
870
|
+
path: url,
|
|
871
|
+
queryParams: {}
|
|
872
|
+
})),
|
|
873
|
+
useURL: vitest.vi.fn(() => null)
|
|
874
|
+
};
|
|
875
|
+
return {
|
|
876
|
+
...exports,
|
|
877
|
+
default: exports
|
|
878
|
+
};
|
|
879
|
+
}
|
|
880
|
+
},
|
|
881
|
+
"expo-status-bar": {
|
|
882
|
+
exports: [
|
|
883
|
+
"StatusBar",
|
|
884
|
+
"setStatusBarStyle",
|
|
885
|
+
"setStatusBarHidden",
|
|
886
|
+
"setStatusBarBackgroundColor",
|
|
887
|
+
"setStatusBarTranslucent",
|
|
888
|
+
"setStatusBarNetworkActivityIndicatorVisible"
|
|
889
|
+
],
|
|
890
|
+
factory: () => {
|
|
891
|
+
const StatusBar = react.default.forwardRef((props, ref) => react.default.createElement("StatusBar", {
|
|
892
|
+
...props,
|
|
893
|
+
ref
|
|
894
|
+
}, props.children));
|
|
895
|
+
StatusBar.displayName = "StatusBar";
|
|
896
|
+
const setStatusBarStyle = vitest.vi.fn();
|
|
897
|
+
const setStatusBarHidden = vitest.vi.fn();
|
|
898
|
+
const setStatusBarBackgroundColor = vitest.vi.fn();
|
|
899
|
+
const setStatusBarTranslucent = vitest.vi.fn();
|
|
900
|
+
const setStatusBarNetworkActivityIndicatorVisible = vitest.vi.fn();
|
|
901
|
+
return {
|
|
902
|
+
default: { StatusBar },
|
|
903
|
+
StatusBar,
|
|
904
|
+
setStatusBarStyle,
|
|
905
|
+
setStatusBarHidden,
|
|
906
|
+
setStatusBarBackgroundColor,
|
|
907
|
+
setStatusBarTranslucent,
|
|
908
|
+
setStatusBarNetworkActivityIndicatorVisible
|
|
909
|
+
};
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
};
|
|
914
|
+
}
|
|
915
|
+
//#endregion
|
|
916
|
+
//#region src/presets/index.ts
|
|
917
|
+
var presets_exports = /* @__PURE__ */ __exportAll({
|
|
918
|
+
asyncStorage: () => asyncStorage,
|
|
919
|
+
expo: () => expo,
|
|
920
|
+
gestureHandler: () => gestureHandler,
|
|
921
|
+
navigation: () => navigation,
|
|
922
|
+
reanimated: () => reanimated,
|
|
923
|
+
safeAreaContext: () => safeAreaContext,
|
|
924
|
+
screens: () => screens
|
|
925
|
+
});
|
|
926
|
+
//#endregion
|
|
927
|
+
Object.defineProperty(exports, "__toESM", {
|
|
928
|
+
enumerable: true,
|
|
929
|
+
get: function() {
|
|
930
|
+
return __toESM;
|
|
931
|
+
}
|
|
932
|
+
});
|
|
933
|
+
Object.defineProperty(exports, "asyncStorage", {
|
|
934
|
+
enumerable: true,
|
|
935
|
+
get: function() {
|
|
936
|
+
return asyncStorage;
|
|
937
|
+
}
|
|
938
|
+
});
|
|
939
|
+
Object.defineProperty(exports, "expo", {
|
|
940
|
+
enumerable: true,
|
|
941
|
+
get: function() {
|
|
942
|
+
return expo;
|
|
943
|
+
}
|
|
944
|
+
});
|
|
945
|
+
Object.defineProperty(exports, "gestureHandler", {
|
|
946
|
+
enumerable: true,
|
|
947
|
+
get: function() {
|
|
948
|
+
return gestureHandler;
|
|
949
|
+
}
|
|
950
|
+
});
|
|
951
|
+
Object.defineProperty(exports, "navigation", {
|
|
952
|
+
enumerable: true,
|
|
953
|
+
get: function() {
|
|
954
|
+
return navigation;
|
|
955
|
+
}
|
|
956
|
+
});
|
|
957
|
+
Object.defineProperty(exports, "presets_exports", {
|
|
958
|
+
enumerable: true,
|
|
959
|
+
get: function() {
|
|
960
|
+
return presets_exports;
|
|
961
|
+
}
|
|
962
|
+
});
|
|
963
|
+
Object.defineProperty(exports, "reanimated", {
|
|
964
|
+
enumerable: true,
|
|
965
|
+
get: function() {
|
|
966
|
+
return reanimated;
|
|
967
|
+
}
|
|
968
|
+
});
|
|
969
|
+
Object.defineProperty(exports, "safeAreaContext", {
|
|
970
|
+
enumerable: true,
|
|
971
|
+
get: function() {
|
|
972
|
+
return safeAreaContext;
|
|
973
|
+
}
|
|
974
|
+
});
|
|
975
|
+
Object.defineProperty(exports, "screens", {
|
|
976
|
+
enumerable: true,
|
|
977
|
+
get: function() {
|
|
978
|
+
return screens;
|
|
979
|
+
}
|
|
980
|
+
});
|