jest-expo 46.0.2 → 47.0.1

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": "jest-expo",
3
- "version": "46.0.2",
3
+ "version": "47.0.1",
4
4
  "description": "A Jest preset to painlessly test your Expo / React Native apps.",
5
5
  "license": "MIT",
6
6
  "main": "src",
@@ -31,7 +31,7 @@
31
31
  "preset": "jest-expo/universal"
32
32
  },
33
33
  "dependencies": {
34
- "@expo/config": "~7.0.0",
34
+ "@expo/config": "~7.0.2",
35
35
  "@jest/create-cache-key-function": "^27.0.1",
36
36
  "babel-jest": "^26.6.3",
37
37
  "find-up": "^5.0.0",
@@ -45,5 +45,5 @@
45
45
  "url": "https://github.com/expo/expo/issues"
46
46
  },
47
47
  "homepage": "https://github.com/expo/expo/tree/main/packages/jest-expo",
48
- "gitHead": "957cf0793ac316152e694cbe352953e07bffcb45"
48
+ "gitHead": "b56ceb5bface07762c968c882575a041105b13b6"
49
49
  }
@@ -5,11 +5,7 @@ module.exports = {
5
5
  AIRGoogleMapHeatmapManager: {},
6
6
  AIRGoogleMapManager: {
7
7
  animateCamera: { type: 'function', functionType: 'async' },
8
- animateToBearing: { type: 'function', functionType: 'async' },
9
- animateToCoordinate: { type: 'function', functionType: 'async' },
10
- animateToNavigation: { type: 'function', functionType: 'async' },
11
8
  animateToRegion: { type: 'function', functionType: 'async' },
12
- animateToViewingAngle: { type: 'function', functionType: 'async' },
13
9
  coordinateForPoint: { type: 'function', functionType: 'promise' },
14
10
  fitToCoordinates: { type: 'function', functionType: 'async' },
15
11
  fitToElements: { type: 'function', functionType: 'async' },
@@ -43,11 +39,7 @@ module.exports = {
43
39
  AIRMapLocalTileManager: {},
44
40
  AIRMapManager: {
45
41
  animateCamera: { type: 'function', functionType: 'async' },
46
- animateToBearing: { type: 'function', functionType: 'async' },
47
- animateToCoordinate: { type: 'function', functionType: 'async' },
48
- animateToNavigation: { type: 'function', functionType: 'async' },
49
42
  animateToRegion: { type: 'function', functionType: 'async' },
50
- animateToViewingAngle: { type: 'function', functionType: 'async' },
51
43
  coordinateForPoint: { type: 'function', functionType: 'promise' },
52
44
  fitToCoordinates: { type: 'function', functionType: 'async' },
53
45
  fitToElements: { type: 'function', functionType: 'async' },
@@ -119,58 +111,7 @@ module.exports = {
119
111
  type: 'object',
120
112
  mock: {
121
113
  '': [],
122
- AdIconViewManager: [],
123
- AdOptionsViewManager: [],
124
- CTKAdSettingsManager: [
125
- { name: 'setIsChildDirected', argumentsCount: 1, key: 0 },
126
- { name: 'getPermissionsAsync', argumentsCount: 0, key: 1 },
127
- { name: 'addTestDevice', argumentsCount: 1, key: 2 },
128
- { name: 'setLogLevel', argumentsCount: 1, key: 3 },
129
- { name: 'clearTestDevices', argumentsCount: 0, key: 4 },
130
- { name: 'setUrlPrefix', argumentsCount: 1, key: 5 },
131
- { name: 'requestPermissionsAsync', argumentsCount: 0, key: 6 },
132
- { name: 'setMeditationService', argumentsCount: 1, key: 7 },
133
- { name: 'setAdvertiserTrackingEnabled', argumentsCount: 1, key: 8 },
134
- ],
135
- CTKBannerViewManager: [],
136
- CTKInterstitialAdManager: [{ name: 'showAd', argumentsCount: 1, key: 0 }],
137
- CTKNativeAdManager: [
138
- { name: 'disableAutoRefresh', argumentsCount: 1, key: 0 },
139
- { name: 'setMediaCachePolicy', argumentsCount: 2, key: 1 },
140
- { name: 'registerViewsForInteraction', argumentsCount: 4, key: 2 },
141
- { name: 'init', argumentsCount: 2, key: 3 },
142
- ],
143
114
  EASClient: [],
144
- ExpoAdsAdMob: [
145
- { name: 'getPermissionsAsync', argumentsCount: 0, key: 0 },
146
- { name: 'setTestDeviceIDAsync', argumentsCount: 1, key: 1 },
147
- { name: 'requestPermissionsAsync', argumentsCount: 0, key: 2 },
148
- ],
149
- ExpoAdsAdMobBannerView: [],
150
- ExpoAdsAdMobInterstitialManager: [
151
- { name: 'requestAd', argumentsCount: 1, key: 0 },
152
- { name: 'showAd', argumentsCount: 0, key: 1 },
153
- { name: 'dismissAd', argumentsCount: 0, key: 2 },
154
- { name: 'setAdUnitID', argumentsCount: 1, key: 3 },
155
- { name: 'getIsReady', argumentsCount: 0, key: 4 },
156
- ],
157
- ExpoAdsAdMobRewardedVideoAdManager: [
158
- { name: 'requestAd', argumentsCount: 1, key: 0 },
159
- { name: 'showAd', argumentsCount: 0, key: 1 },
160
- { name: 'dismissAd', argumentsCount: 0, key: 2 },
161
- { name: 'setAdUnitID', argumentsCount: 1, key: 3 },
162
- { name: 'getIsReady', argumentsCount: 0, key: 4 },
163
- ],
164
- ExpoAmplitude: [
165
- { name: 'initializeAsync', argumentsCount: 1, key: 0 },
166
- { name: 'setTrackingOptionsAsync', argumentsCount: 1, key: 1 },
167
- { name: 'setGroupAsync', argumentsCount: 2, key: 2 },
168
- { name: 'logEventWithPropertiesAsync', argumentsCount: 2, key: 3 },
169
- { name: 'setUserPropertiesAsync', argumentsCount: 1, key: 4 },
170
- { name: 'logEventAsync', argumentsCount: 1, key: 5 },
171
- { name: 'setUserIdAsync', argumentsCount: 1, key: 6 },
172
- { name: 'clearUserPropertiesAsync', argumentsCount: 0, key: 7 },
173
- ],
174
115
  ExpoAppleAuthentication: [
175
116
  { name: 'isAvailableAsync', argumentsCount: 0, key: 0 },
176
117
  { name: 'requestAsync', argumentsCount: 1, key: 1 },
@@ -216,9 +157,15 @@ module.exports = {
216
157
  { name: 'setUpdateInterval', argumentsCount: 1, key: 1 },
217
158
  ],
218
159
  ExpoBattery: [
219
- { name: 'getBatteryLevelAsync', argumentsCount: 0, key: 0 },
220
- { name: 'isLowPowerModeEnabledAsync', argumentsCount: 0, key: 1 },
221
- { name: 'getBatteryStateAsync', argumentsCount: 0, key: 2 },
160
+ { key: 'getBatteryLevelAsync', argumentsCount: 0, name: 'getBatteryLevelAsync' },
161
+ {
162
+ argumentsCount: 0,
163
+ name: 'isLowPowerModeEnabledAsync',
164
+ key: 'isLowPowerModeEnabledAsync',
165
+ },
166
+ { key: 'startObserving', name: 'startObserving', argumentsCount: 0 },
167
+ { argumentsCount: 0, key: 'stopObserving', name: 'stopObserving' },
168
+ { name: 'getBatteryStateAsync', key: 'getBatteryStateAsync', argumentsCount: 0 },
222
169
  ],
223
170
  ExpoBlurViewManager: [{ name: 'setNativeProps', argumentsCount: 2, key: 0 }],
224
171
  ExpoBrightness: [
@@ -255,37 +202,37 @@ module.exports = {
255
202
  { name: 'getSourceByIdAsync', argumentsCount: 1, key: 18 },
256
203
  ],
257
204
  ExpoCellular: [
258
- { key: 'getCarrierNameAsync', name: 'getCarrierNameAsync', argumentsCount: 0 },
259
205
  {
260
206
  name: 'getCellularGenerationAsync',
261
207
  argumentsCount: 0,
262
208
  key: 'getCellularGenerationAsync',
263
209
  },
264
- { key: 'allowsVoipAsync', name: 'allowsVoipAsync', argumentsCount: 0 },
265
- { name: 'getIsoCountryCodeAsync', argumentsCount: 0, key: 'getIsoCountryCodeAsync' },
210
+ { key: 'getIsoCountryCodeAsync', name: 'getIsoCountryCodeAsync', argumentsCount: 0 },
266
211
  {
267
212
  name: 'getMobileCountryCodeAsync',
268
213
  argumentsCount: 0,
269
214
  key: 'getMobileCountryCodeAsync',
270
215
  },
271
216
  {
217
+ key: 'getMobileNetworkCodeAsync',
272
218
  name: 'getMobileNetworkCodeAsync',
273
219
  argumentsCount: 0,
274
- key: 'getMobileNetworkCodeAsync',
275
220
  },
221
+ { name: 'allowsVoipAsync', argumentsCount: 0, key: 'allowsVoipAsync' },
222
+ { name: 'getCarrierNameAsync', key: 'getCarrierNameAsync', argumentsCount: 0 },
276
223
  ],
277
224
  ExpoClipboard: [
278
- { key: 'getUrlAsync', name: 'getUrlAsync', argumentsCount: 0 },
279
- { argumentsCount: 0, key: 'stopObserving', name: 'stopObserving' },
280
- { key: 'hasImageAsync', name: 'hasImageAsync', argumentsCount: 0 },
281
- { name: 'setImageAsync', key: 'setImageAsync', argumentsCount: 1 },
225
+ { argumentsCount: 0, key: 'hasImageAsync', name: 'hasImageAsync' },
226
+ { name: 'hasUrlAsync', argumentsCount: 0, key: 'hasUrlAsync' },
227
+ { name: 'startObserving', key: 'startObserving', argumentsCount: 0 },
282
228
  { name: 'setStringAsync', argumentsCount: 2, key: 'setStringAsync' },
283
- { name: 'setUrlAsync', argumentsCount: 1, key: 'setUrlAsync' },
284
- { argumentsCount: 0, key: 'hasUrlAsync', name: 'hasUrlAsync' },
285
- { name: 'hasStringAsync', key: 'hasStringAsync', argumentsCount: 0 },
286
- { argumentsCount: 1, key: 'getImageAsync', name: 'getImageAsync' },
287
- { key: 'getStringAsync', name: 'getStringAsync', argumentsCount: 1 },
288
- { name: 'startObserving', argumentsCount: 0, key: 'startObserving' },
229
+ { name: 'stopObserving', argumentsCount: 0, key: 'stopObserving' },
230
+ { key: 'getUrlAsync', name: 'getUrlAsync', argumentsCount: 0 },
231
+ { argumentsCount: 1, name: 'getStringAsync', key: 'getStringAsync' },
232
+ { argumentsCount: 1, key: 'setImageAsync', name: 'setImageAsync' },
233
+ { name: 'getImageAsync', key: 'getImageAsync', argumentsCount: 1 },
234
+ { argumentsCount: 0, name: 'hasStringAsync', key: 'hasStringAsync' },
235
+ { argumentsCount: 1, key: 'setUrlAsync', name: 'setUrlAsync' },
289
236
  ],
290
237
  ExpoContacts: [
291
238
  { name: 'getDefaultContainerIdentifierAsync', argumentsCount: 0, key: 0 },
@@ -308,8 +255,8 @@ module.exports = {
308
255
  { name: 'dismissFormAsync', argumentsCount: 0, key: 17 },
309
256
  ],
310
257
  ExpoCrypto: [
311
- { key: 'digestStringAsync', argumentsCount: 3, name: 'digestStringAsync' },
312
- { name: 'digestString', key: 'digestString', argumentsCount: 3 },
258
+ { name: 'digestString', argumentsCount: 3, key: 'digestString' },
259
+ { name: 'digestStringAsync', key: 'digestStringAsync', argumentsCount: 3 },
313
260
  ],
314
261
  ExpoDevice: [
315
262
  { name: 'getDeviceTypeAsync', argumentsCount: 0, key: 0 },
@@ -330,17 +277,17 @@ module.exports = {
330
277
  ExpoFirebaseCore: [],
331
278
  ExpoFontLoader: [{ name: 'loadAsync', argumentsCount: 2, key: 0 }],
332
279
  ExpoHaptics: [
333
- { key: 'impactAsync', name: 'impactAsync', argumentsCount: 1 },
334
- { argumentsCount: 0, key: 'selectionAsync', name: 'selectionAsync' },
280
+ { name: 'selectionAsync', key: 'selectionAsync', argumentsCount: 0 },
335
281
  { key: 'notificationAsync', name: 'notificationAsync', argumentsCount: 1 },
282
+ { name: 'impactAsync', argumentsCount: 1, key: 'impactAsync' },
336
283
  ],
337
284
  ExpoImageManipulator: [
338
- { key: 'manipulateAsync', argumentsCount: 3, name: 'manipulateAsync' },
285
+ { key: 'manipulateAsync', name: 'manipulateAsync', argumentsCount: 3 },
339
286
  ],
340
287
  ExpoKeepAwake: [
341
288
  { argumentsCount: 1, name: 'deactivate', key: 'deactivate' },
342
- { name: 'activate', argumentsCount: 1, key: 'activate' },
343
289
  { argumentsCount: 0, name: 'isActivated', key: 'isActivated' },
290
+ { argumentsCount: 1, name: 'activate', key: 'activate' },
344
291
  ],
345
292
  ExpoLinearGradient: [],
346
293
  ExpoLocalAuthentication: [
@@ -351,7 +298,9 @@ module.exports = {
351
298
  { name: 'authenticateAsync', argumentsCount: 1, key: 4 },
352
299
  ],
353
300
  ExpoLocalization: [
354
- { key: 'getLocalizationAsync', argumentsCount: 0, name: 'getLocalizationAsync' },
301
+ { name: 'getLocalizationAsync', argumentsCount: 0, key: 'getLocalizationAsync' },
302
+ { name: 'getLocales', argumentsCount: 0, key: 'getLocales' },
303
+ { key: 'getCalendars', name: 'getCalendars', argumentsCount: 0 },
355
304
  ],
356
305
  ExpoLocation: [
357
306
  { name: 'watchPositionImplAsync', argumentsCount: 2, key: 0 },
@@ -377,8 +326,8 @@ module.exports = {
377
326
  { name: 'requestBackgroundPermissionsAsync', argumentsCount: 0, key: 20 },
378
327
  ],
379
328
  ExpoMailComposer: [
380
- { key: 'isAvailableAsync', name: 'isAvailableAsync', argumentsCount: 0 },
381
- { name: 'composeAsync', argumentsCount: 1, key: 'composeAsync' },
329
+ { argumentsCount: 1, key: 'composeAsync', name: 'composeAsync' },
330
+ { key: 'isAvailableAsync', argumentsCount: 0, name: 'isAvailableAsync' },
382
331
  ],
383
332
  ExpoNetwork: [
384
333
  { name: 'getIpAddressAsync', argumentsCount: 0, key: 0 },
@@ -416,16 +365,15 @@ module.exports = {
416
365
  { name: 'getAsync', argumentsCount: 1, key: 0 },
417
366
  { name: 'askAsync', argumentsCount: 1, key: 1 },
418
367
  ],
419
- ExpoPublisherBannerView: [],
420
368
  ExpoPushTokenManager: [
421
369
  { name: 'getDevicePushTokenAsync', argumentsCount: 0, key: 0 },
422
370
  { name: 'unregisterForNotificationsAsync', argumentsCount: 0, key: 1 },
423
371
  ],
424
372
  ExpoRandom: [
425
- { argumentsCount: 1, key: 'getRandomBase64String', name: 'getRandomBase64String' },
373
+ { name: 'getRandomBase64String', argumentsCount: 1, key: 'getRandomBase64String' },
426
374
  {
427
- key: 'getRandomBase64StringAsync',
428
375
  name: 'getRandomBase64StringAsync',
376
+ key: 'getRandomBase64StringAsync',
429
377
  argumentsCount: 1,
430
378
  },
431
379
  ],
@@ -456,12 +404,12 @@ module.exports = {
456
404
  { name: 'preventAutoHideAsync', argumentsCount: 0, key: 1 },
457
405
  ],
458
406
  ExpoStoreReview: [
459
- { name: 'isAvailableAsync', argumentsCount: 0, key: 0 },
460
- { name: 'requestReview', argumentsCount: 0, key: 1 },
407
+ { name: 'requestReview', key: 'requestReview', argumentsCount: 0 },
408
+ { name: 'isAvailableAsync', key: 'isAvailableAsync', argumentsCount: 0 },
461
409
  ],
462
410
  ExpoSystemUI: [
463
- { name: 'getBackgroundColorAsync', key: 'getBackgroundColorAsync', argumentsCount: 0 },
464
- { argumentsCount: 1, key: 'setBackgroundColorAsync', name: 'setBackgroundColorAsync' },
411
+ { argumentsCount: 0, key: 'getBackgroundColorAsync', name: 'getBackgroundColorAsync' },
412
+ { argumentsCount: 1, name: 'setBackgroundColorAsync', key: 'setBackgroundColorAsync' },
465
413
  ],
466
414
  ExpoTaskManager: [
467
415
  { name: 'isAvailableAsync', argumentsCount: 0, key: 0 },
@@ -473,30 +421,31 @@ module.exports = {
473
421
  { name: 'getRegisteredTasksAsync', argumentsCount: 0, key: 6 },
474
422
  ],
475
423
  ExpoTrackingTransparency: [
476
- { key: 'getPermissionsAsync', name: 'getPermissionsAsync', argumentsCount: 0 },
477
- { name: 'requestPermissionsAsync', argumentsCount: 0, key: 'requestPermissionsAsync' },
424
+ { argumentsCount: 0, key: 'getPermissionsAsync', name: 'getPermissionsAsync' },
425
+ { argumentsCount: 0, key: 'requestPermissionsAsync', name: 'requestPermissionsAsync' },
478
426
  ],
479
427
  ExpoUpdates: [
480
- { name: 'checkForUpdateAsync', argumentsCount: 0, key: 0 },
481
- { name: 'reload', argumentsCount: 0, key: 1 },
482
- { name: 'fetchUpdateAsync', argumentsCount: 0, key: 2 },
483
- { name: 'readLogEntriesAsync', argumentsCount: 1, key: 3 },
428
+ { name: 'readLogEntriesAsync', argumentsCount: 1, key: 0 },
429
+ { name: 'fetchUpdateAsync', argumentsCount: 0, key: 1 },
430
+ { name: 'checkForUpdateAsync', argumentsCount: 0, key: 2 },
431
+ { name: 'clearLogEntriesAsync', argumentsCount: 0, key: 3 },
432
+ { name: 'reload', argumentsCount: 0, key: 4 },
484
433
  ],
485
- ExpoVideoManager: [{ name: 'setFullscreen', argumentsCount: 2, key: 0 }],
486
434
  ExpoVideoThumbnails: [{ name: 'getThumbnail', argumentsCount: 2, key: 0 }],
435
+ ExpoVideoView: [{ name: 'setFullscreen', key: 'setFullscreen', argumentsCount: 2 }],
487
436
  ExpoWebBrowser: [
488
- { name: 'openAuthSessionAsync', argumentsCount: 3, key: 'openAuthSessionAsync' },
437
+ { argumentsCount: 0, key: 'mayInitWithUrlAsync', name: 'mayInitWithUrlAsync' },
489
438
  {
490
- key: 'getCustomTabsSupportingBrowsers',
491
- name: 'getCustomTabsSupportingBrowsers',
492
439
  argumentsCount: 0,
440
+ name: 'getCustomTabsSupportingBrowsers',
441
+ key: 'getCustomTabsSupportingBrowsers',
493
442
  },
494
- { key: 'dismissAuthSession', name: 'dismissAuthSession', argumentsCount: 0 },
495
- { key: 'dismissBrowser', name: 'dismissBrowser', argumentsCount: 0 },
496
- { key: 'coolDownAsync', name: 'coolDownAsync', argumentsCount: 0 },
497
- { argumentsCount: 0, key: 'warmUpAsync', name: 'warmUpAsync' },
498
443
  { name: 'openBrowserAsync', argumentsCount: 2, key: 'openBrowserAsync' },
499
- { name: 'mayInitWithUrlAsync', argumentsCount: 0, key: 'mayInitWithUrlAsync' },
444
+ { key: 'dismissBrowser', name: 'dismissBrowser', argumentsCount: 0 },
445
+ { key: 'warmUpAsync', argumentsCount: 0, name: 'warmUpAsync' },
446
+ { argumentsCount: 3, name: 'openAuthSessionAsync', key: 'openAuthSessionAsync' },
447
+ { key: 'coolDownAsync', argumentsCount: 0, name: 'coolDownAsync' },
448
+ { argumentsCount: 0, key: 'dismissAuthSession', name: 'dismissAuthSession' },
500
449
  ],
501
450
  ExponentAV: [
502
451
  { name: 'getStatusForVideo', argumentsCount: 1, key: 0 },
@@ -528,46 +477,45 @@ module.exports = {
528
477
  { name: 'setUpdateInterval', argumentsCount: 1, key: 1 },
529
478
  ],
530
479
  ExponentCamera: [
531
- { name: 'requestCameraPermissionsAsync', argumentsCount: 0, key: 0 },
532
- { name: 'record', argumentsCount: 2, key: 1 },
533
- { name: 'stopRecording', argumentsCount: 1, key: 2 },
534
- { name: 'takePicture', argumentsCount: 2, key: 3 },
535
- { name: 'pausePreview', argumentsCount: 1, key: 4 },
536
- { name: 'getMicrophonePermissionsAsync', argumentsCount: 0, key: 5 },
537
- { name: 'getPermissionsAsync', argumentsCount: 0, key: 6 },
538
- { name: 'getAvailableVideoCodecsAsync', argumentsCount: 0, key: 7 },
539
- { name: 'resumePreview', argumentsCount: 1, key: 8 },
540
- { name: 'requestPermissionsAsync', argumentsCount: 0, key: 9 },
541
- { name: 'getAvailablePictureSizes', argumentsCount: 2, key: 10 },
542
- { name: 'getCameraPermissionsAsync', argumentsCount: 0, key: 11 },
543
- { name: 'requestMicrophonePermissionsAsync', argumentsCount: 0, key: 12 },
480
+ { argumentsCount: 1, name: 'stopRecording', key: 'stopRecording' },
481
+ {
482
+ name: 'getCameraPermissionsAsync',
483
+ argumentsCount: 0,
484
+ key: 'getCameraPermissionsAsync',
485
+ },
486
+ {
487
+ name: 'getAvailableVideoCodecsAsync',
488
+ argumentsCount: 0,
489
+ key: 'getAvailableVideoCodecsAsync',
490
+ },
491
+ {
492
+ name: 'getMicrophonePermissionsAsync',
493
+ argumentsCount: 0,
494
+ key: 'getMicrophonePermissionsAsync',
495
+ },
496
+ { argumentsCount: 1, key: 'pausePreview', name: 'pausePreview' },
497
+ { name: 'requestPermissionsAsync', argumentsCount: 0, key: 'requestPermissionsAsync' },
498
+ { key: 'resumePreview', name: 'resumePreview', argumentsCount: 1 },
499
+ {
500
+ key: 'requestMicrophonePermissionsAsync',
501
+ name: 'requestMicrophonePermissionsAsync',
502
+ argumentsCount: 0,
503
+ },
504
+ { key: 'getAvailablePictureSizes', name: 'getAvailablePictureSizes', argumentsCount: 2 },
505
+ { key: 'getPermissionsAsync', name: 'getPermissionsAsync', argumentsCount: 0 },
506
+ { name: 'takePicture', key: 'takePicture', argumentsCount: 2 },
507
+ { name: 'record', argumentsCount: 2, key: 'record' },
508
+ {
509
+ name: 'requestCameraPermissionsAsync',
510
+ argumentsCount: 0,
511
+ key: 'requestCameraPermissionsAsync',
512
+ },
544
513
  ],
545
514
  ExponentConstants: [{ name: 'getWebViewUserAgentAsync', argumentsCount: 0, key: 0 }],
546
515
  ExponentDeviceMotion: [
547
516
  { name: 'isAvailableAsync', argumentsCount: 0, key: 0 },
548
517
  { name: 'setUpdateInterval', argumentsCount: 1, key: 1 },
549
518
  ],
550
- ExponentFacebook: [
551
- { name: 'flushAsync', argumentsCount: 0, key: 0 },
552
- { name: 'setAutoLogAppEventsEnabledAsync', argumentsCount: 1, key: 1 },
553
- { name: 'logEventAsync', argumentsCount: 3, key: 2 },
554
- { name: 'getUserIDAsync', argumentsCount: 0, key: 3 },
555
- { name: 'setAdvertiserIDCollectionEnabledAsync', argumentsCount: 1, key: 4 },
556
- { name: 'getPermissionsAsync', argumentsCount: 0, key: 5 },
557
- { name: 'initializeAsync', argumentsCount: 1, key: 6 },
558
- { name: 'logOutAsync', argumentsCount: 0, key: 7 },
559
- { name: 'requestPermissionsAsync', argumentsCount: 0, key: 8 },
560
- { name: 'logInWithReadPermissionsAsync', argumentsCount: 1, key: 9 },
561
- { name: 'getAdvertiserIDAsync', argumentsCount: 0, key: 10 },
562
- { name: 'setUserDataAsync', argumentsCount: 1, key: 11 },
563
- { name: 'setFlushBehaviorAsync', argumentsCount: 1, key: 12 },
564
- { name: 'logPurchaseAsync', argumentsCount: 3, key: 13 },
565
- { name: 'logPushNotificationOpenAsync', argumentsCount: 1, key: 14 },
566
- { name: 'setAdvertiserTrackingEnabledAsync', argumentsCount: 1, key: 15 },
567
- { name: 'setUserIDAsync', argumentsCount: 1, key: 16 },
568
- { name: 'getAuthenticationCredentialAsync', argumentsCount: 0, key: 17 },
569
- { name: 'getAnonymousIDAsync', argumentsCount: 0, key: 18 },
570
- ],
571
519
  ExponentFileSystem: [
572
520
  { name: 'uploadAsync', argumentsCount: 3, key: 0 },
573
521
  { name: 'readDirectoryAsync', argumentsCount: 2, key: 1 },
@@ -604,21 +552,21 @@ module.exports = {
604
552
  name: 'getCameraPermissionsAsync',
605
553
  argumentsCount: 0,
606
554
  },
555
+ { name: 'launchImageLibraryAsync', argumentsCount: 1, key: 'launchImageLibraryAsync' },
607
556
  {
557
+ name: 'getMediaLibraryPermissionsAsync',
608
558
  argumentsCount: 1,
609
- name: 'requestMediaLibraryPermissionsAsync',
610
- key: 'requestMediaLibraryPermissionsAsync',
559
+ key: 'getMediaLibraryPermissionsAsync',
611
560
  },
612
- { name: 'launchCameraAsync', key: 'launchCameraAsync', argumentsCount: 1 },
613
561
  {
614
562
  name: 'requestCameraPermissionsAsync',
615
563
  argumentsCount: 0,
616
564
  key: 'requestCameraPermissionsAsync',
617
565
  },
618
- { argumentsCount: 1, key: 'launchImageLibraryAsync', name: 'launchImageLibraryAsync' },
566
+ { argumentsCount: 1, name: 'launchCameraAsync', key: 'launchCameraAsync' },
619
567
  {
620
- name: 'getMediaLibraryPermissionsAsync',
621
- key: 'getMediaLibraryPermissionsAsync',
568
+ name: 'requestMediaLibraryPermissionsAsync',
569
+ key: 'requestMediaLibraryPermissionsAsync',
622
570
  argumentsCount: 1,
623
571
  },
624
572
  ],
@@ -663,22 +611,6 @@ module.exports = {
663
611
  { name: 'exec', argumentsCount: 3, key: 1 },
664
612
  { name: 'deleteAsync', argumentsCount: 1, key: 2 },
665
613
  ],
666
- ExponentSegment: [
667
- { name: 'setEnabledAsync', argumentsCount: 1, key: 0 },
668
- { name: 'screenWithProperties', argumentsCount: 3, key: 1 },
669
- { name: 'flush', argumentsCount: 0, key: 2 },
670
- { name: 'screen', argumentsCount: 1, key: 3 },
671
- { name: 'identify', argumentsCount: 1, key: 4 },
672
- { name: 'identifyWithTraits', argumentsCount: 3, key: 5 },
673
- { name: 'trackWithProperties', argumentsCount: 3, key: 6 },
674
- { name: 'groupWithTraits', argumentsCount: 3, key: 7 },
675
- { name: 'initialize', argumentsCount: 1, key: 8 },
676
- { name: 'getEnabledAsync', argumentsCount: 0, key: 9 },
677
- { name: 'alias', argumentsCount: 2, key: 10 },
678
- { name: 'group', argumentsCount: 1, key: 11 },
679
- { name: 'track', argumentsCount: 1, key: 12 },
680
- { name: 'reset', argumentsCount: 0, key: 13 },
681
- ],
682
614
  ExponentSpeech: [
683
615
  { name: 'speak', argumentsCount: 3, key: 0 },
684
616
  { name: 'stop', argumentsCount: 0, key: 1 },
@@ -687,8 +619,7 @@ module.exports = {
687
619
  { name: 'isSpeaking', argumentsCount: 0, key: 4 },
688
620
  { name: 'getVoices', argumentsCount: 0, key: 5 },
689
621
  ],
690
- MediaViewManager: [],
691
- NativeModulesProxy: [],
622
+ NativeModulesProxy: [{ key: 'callMethod', name: 'callMethod', argumentsCount: 3 }],
692
623
  NotificationsServerRegistrationModule: [
693
624
  { name: 'getRegistrationInfoAsync', argumentsCount: 0, key: 0 },
694
625
  { name: 'setRegistrationInfoAsync', argumentsCount: 1, key: 1 },
@@ -700,7 +631,6 @@ module.exports = {
700
631
  modulesConstants: {
701
632
  type: 'mock',
702
633
  mockDefinition: {
703
- CTKAdSettingsManager: { currentDeviceHash: { type: 'string' } },
704
634
  EASClient: { clientID: { type: 'string' } },
705
635
  ExpoApplication: {
706
636
  applicationId: { type: 'string' },
@@ -709,10 +639,10 @@ module.exports = {
709
639
  nativeBuildVersion: { type: 'string' },
710
640
  },
711
641
  ExpoBarCodeScannerModule: { BarCodeType: { type: 'object' }, Type: { type: 'object' } },
712
- ExpoBattery: { isSupported: { type: 'boolean', mock: false } },
642
+ ExpoBattery: { isSupported: { type: 'boolean', mock: true } },
713
643
  ExpoCellular: {
714
- allowsVoip: { type: 'object', mock: null },
715
- carrier: { type: 'object', mock: null },
644
+ allowsVoip: { type: 'boolean', mock: true },
645
+ carrier: { type: 'string' },
716
646
  generation: { type: 'number', mock: 0 },
717
647
  isoCountryCode: { type: 'object', mock: null },
718
648
  mobileCountryCode: { type: 'object', mock: null },
@@ -724,7 +654,7 @@ module.exports = {
724
654
  brand: { type: 'string' },
725
655
  deviceName: { type: 'string' },
726
656
  deviceYearClass: { type: 'number', mock: 2021 },
727
- isDevice: { type: 'boolean', mock: false },
657
+ isDevice: { type: 'boolean', mock: true },
728
658
  manufacturer: { type: 'string' },
729
659
  modelId: { type: 'string' },
730
660
  modelName: { type: 'string' },
@@ -733,7 +663,7 @@ module.exports = {
733
663
  osName: { type: 'string' },
734
664
  osVersion: { type: 'string' },
735
665
  supportedCpuArchitectures: { type: 'array' },
736
- totalMemory: { type: 'number', mock: 34359738368 },
666
+ totalMemory: { type: 'number', mock: 3824369664 },
737
667
  },
738
668
  ExpoErrorRecovery: { recoveredProps: { type: 'object', mock: null } },
739
669
  ExpoFaceDetector: {
@@ -769,6 +699,7 @@ module.exports = {
769
699
  WHEN_UNLOCKED: { type: 'number', mock: 5 },
770
700
  WHEN_UNLOCKED_THIS_DEVICE_ONLY: { type: 'number', mock: 6 },
771
701
  },
702
+ ExpoStoreReview: {},
772
703
  ExpoSystemUI: {},
773
704
  ExpoTaskManager: { EVENT_NAME: { type: 'string' } },
774
705
  ExpoTrackingTransparency: {},
@@ -779,7 +710,7 @@ module.exports = {
779
710
  releaseChannel: { type: 'string' },
780
711
  runtimeVersion: { type: 'string' },
781
712
  },
782
- ExpoVideoManager: {
713
+ ExpoVideoView: {
783
714
  ScaleAspectFill: { type: 'string' },
784
715
  ScaleAspectFit: { type: 'string' },
785
716
  ScaleNone: { type: 'string' },
@@ -838,46 +769,35 @@ module.exports = {
838
769
  viewManagersMetadata: {
839
770
  type: 'object',
840
771
  mock: {
841
- ExpoAdsPublisherBannerView: {
842
- propsNames: ['additionalRequestParams', 'bannerSize', 'adUnitID'],
843
- },
772
+ ExpoBarCodeScannerView: { propsNames: ['type', 'barCodeTypes'] },
773
+ ExpoAppleAuthenticationButtonContinueWhite: { propsNames: ['cornerRadius'] },
774
+ ExpoBlurView: { propsNames: ['intensity', 'tint'] },
775
+ ExpoLinearGradient: { propsNames: ['colors', 'startPoint', 'endPoint', 'locations'] },
776
+ ExpoAppleAuthenticationButtonContinueWhiteOutline: { propsNames: ['cornerRadius'] },
777
+ ExpoAppleAuthenticationButtonSignInWhiteOutline: { propsNames: ['cornerRadius'] },
778
+ ExponentGLView: { propsNames: ['msaaSamples'] },
779
+ ExpoAppleAuthenticationButtonContinueBlack: { propsNames: ['cornerRadius'] },
780
+ ExpoAppleAuthenticationButtonSignUpWhiteOutline: { propsNames: ['cornerRadius'] },
781
+ ExpoAppleAuthenticationButtonSignUpBlack: { propsNames: ['cornerRadius'] },
782
+ ExpoVideoView: { propsNames: ['status', 'useNativeControls', 'source', 'resizeMode'] },
783
+ ExpoAppleAuthenticationButtonSignInWhite: { propsNames: ['cornerRadius'] },
784
+ ExpoAppleAuthenticationButtonSignUpWhite: { propsNames: ['cornerRadius'] },
785
+ ExpoAppleAuthenticationButtonSignInBlack: { propsNames: ['cornerRadius'] },
844
786
  ExponentCamera: {
845
787
  propsNames: [
846
- 'faceDetectorEnabled',
847
- 'focusDepth',
848
- 'barCodeScannerEnabled',
788
+ 'type',
789
+ 'flashMode',
849
790
  'faceDetectorSettings',
850
- 'pictureSize',
791
+ 'barCodeScannerSettings',
792
+ 'autoFocus',
793
+ 'focusDepth',
851
794
  'zoom',
852
- 'flashMode',
853
- 'type',
854
795
  'whiteBalance',
855
- 'autoFocus',
856
- 'barCodeScannerSettings',
796
+ 'pictureSize',
797
+ 'faceDetectorEnabled',
798
+ 'barCodeScannerEnabled',
857
799
  ],
858
800
  },
859
- CTKNativeAd: { propsNames: ['adsManager'] },
860
- AdIconView: { propsNames: [] },
861
- CTKBannerView: { propsNames: ['placementId', 'size'] },
862
- ExpoAppleAuthenticationButtonContinueWhite: { propsNames: ['cornerRadius'] },
863
- ExpoAppleAuthenticationButtonSignInBlack: { propsNames: ['cornerRadius'] },
864
- MediaView: { propsNames: [] },
865
- ExpoAppleAuthenticationButtonSignUpWhiteOutline: { propsNames: ['cornerRadius'] },
866
- ExpoAppleAuthenticationButtonContinueBlack: { propsNames: ['cornerRadius'] },
867
- ExponentGLView: { propsNames: ['msaaSamples'] },
868
- ExpoAppleAuthenticationButtonSignInWhiteOutline: { propsNames: ['cornerRadius'] },
869
- ExpoBarCodeScannerView: { propsNames: ['type', 'barCodeTypes'] },
870
- ExpoAppleAuthenticationButtonContinueWhiteOutline: { propsNames: ['cornerRadius'] },
871
- ExpoLinearGradient: { propsNames: ['colors', 'startPoint', 'endPoint', 'locations'] },
872
- ExpoAppleAuthenticationButtonSignInWhite: { propsNames: ['cornerRadius'] },
873
- ExpoAppleAuthenticationButtonSignUpWhite: { propsNames: ['cornerRadius'] },
874
- AdOptionsView: { propsNames: ['nativeAdViewTag', 'iconColor'] },
875
- ExpoAdsAdMobBannerView: {
876
- propsNames: ['additionalRequestParams', 'bannerSize', 'adUnitID'],
877
- },
878
- ExpoBlurView: { propsNames: ['intensity', 'tint'] },
879
- ExpoVideoView: { propsNames: ['status', 'resizeMode', 'useNativeControls', 'source'] },
880
- ExpoAppleAuthenticationButtonSignUpBlack: { propsNames: ['cornerRadius'] },
881
801
  },
882
802
  },
883
803
  },
@@ -953,7 +873,6 @@ module.exports = {
953
873
  getCurrentState: { type: 'function', functionType: 'promise' },
954
874
  removeListeners: { type: 'function', functionType: 'async' },
955
875
  },
956
- RNCPickerManager: {},
957
876
  RNCSafeAreaContext: {
958
877
  getConstants: { type: 'function' },
959
878
  initialWindowMetrics: { type: 'object' },
@@ -979,10 +898,7 @@ module.exports = {
979
898
  startLoadWithResult: { type: 'function', functionType: 'async' },
980
899
  stopLoading: { type: 'function', functionType: 'async' },
981
900
  },
982
- RNDateTimePickerManager: {
983
- getConstants: { type: 'function' },
984
- getDefaultDisplayValue: { type: 'function', functionType: 'promise' },
985
- },
901
+ RNDateTimePickerManager: {},
986
902
  RNGestureHandlerButton: {},
987
903
  RNGestureHandlerModule: {
988
904
  Direction: { type: 'object' },
@@ -1016,7 +932,16 @@ module.exports = {
1016
932
  isPointInFill: { type: 'function', functionType: 'sync' },
1017
933
  isPointInStroke: { type: 'function', functionType: 'sync' },
1018
934
  },
1019
- RNSVGClipPathManager: {},
935
+ RNSVGClipPathManager: {
936
+ getBBox: { type: 'function', functionType: 'sync' },
937
+ getCTM: { type: 'function', functionType: 'sync' },
938
+ getConstants: { type: 'function' },
939
+ getPointAtLength: { type: 'function', functionType: 'sync' },
940
+ getScreenCTM: { type: 'function', functionType: 'sync' },
941
+ getTotalLength: { type: 'function', functionType: 'sync' },
942
+ isPointInFill: { type: 'function', functionType: 'sync' },
943
+ isPointInStroke: { type: 'function', functionType: 'sync' },
944
+ },
1020
945
  RNSVGDefsManager: {},
1021
946
  RNSVGEllipseManager: {
1022
947
  getBBox: { type: 'function', functionType: 'sync' },
@@ -1135,7 +1060,16 @@ module.exports = {
1135
1060
  getConstants: { type: 'function' },
1136
1061
  toDataURL: { type: 'function', functionType: 'async' },
1137
1062
  },
1138
- RNSVGSymbolManager: {},
1063
+ RNSVGSymbolManager: {
1064
+ getBBox: { type: 'function', functionType: 'sync' },
1065
+ getCTM: { type: 'function', functionType: 'sync' },
1066
+ getConstants: { type: 'function' },
1067
+ getPointAtLength: { type: 'function', functionType: 'sync' },
1068
+ getScreenCTM: { type: 'function', functionType: 'sync' },
1069
+ getTotalLength: { type: 'function', functionType: 'sync' },
1070
+ isPointInFill: { type: 'function', functionType: 'sync' },
1071
+ isPointInStroke: { type: 'function', functionType: 'sync' },
1072
+ },
1139
1073
  RNSVGTSpanManager: {
1140
1074
  getBBox: { type: 'function', functionType: 'sync' },
1141
1075
  getCTM: { type: 'function', functionType: 'sync' },