jest-expo 46.0.1 → 47.0.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/jest-preset.js CHANGED
@@ -7,7 +7,9 @@ const jestPreset = cloneDeep(require('react-native/jest-preset'));
7
7
 
8
8
  // transform
9
9
  if (!jestPreset.transform) {
10
- jestPreset.transform = {};
10
+ jestPreset.transform = {
11
+ '\\.[jt]sx?$': 'babel-jest',
12
+ };
11
13
  }
12
14
 
13
15
  const defaultAssetNamePattern = '^.+\\.(bmp|gif|jpg|jpeg|mp4|png|psd|svg|webp)$';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jest-expo",
3
- "version": "46.0.1",
3
+ "version": "47.0.0",
4
4
  "description": "A Jest preset to painlessly test your Expo / React Native apps.",
5
5
  "license": "MIT",
6
6
  "main": "src",
@@ -39,11 +39,11 @@
39
39
  "jest-watch-typeahead": "0.6.4",
40
40
  "json5": "^2.1.0",
41
41
  "lodash": "^4.17.19",
42
- "react-test-renderer": "~18.0.0"
42
+ "react-test-renderer": "~18.1.0"
43
43
  },
44
44
  "bugs": {
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": "8151bf48e683a50e942ef213f7978b35c41f5e11"
48
+ "gitHead": "5ff3a7e56ae21f002da3d699cc95bc98d784cd77"
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,29 +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 },
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 },
483
433
  ],
484
- ExpoVideoManager: [{ name: 'setFullscreen', argumentsCount: 2, key: 0 }],
485
434
  ExpoVideoThumbnails: [{ name: 'getThumbnail', argumentsCount: 2, key: 0 }],
435
+ ExpoVideoView: [{ name: 'setFullscreen', key: 'setFullscreen', argumentsCount: 2 }],
486
436
  ExpoWebBrowser: [
487
- { name: 'openAuthSessionAsync', argumentsCount: 3, key: 'openAuthSessionAsync' },
437
+ { argumentsCount: 0, key: 'mayInitWithUrlAsync', name: 'mayInitWithUrlAsync' },
488
438
  {
489
- key: 'getCustomTabsSupportingBrowsers',
490
- name: 'getCustomTabsSupportingBrowsers',
491
439
  argumentsCount: 0,
440
+ name: 'getCustomTabsSupportingBrowsers',
441
+ key: 'getCustomTabsSupportingBrowsers',
492
442
  },
493
- { key: 'dismissAuthSession', name: 'dismissAuthSession', argumentsCount: 0 },
494
- { key: 'dismissBrowser', name: 'dismissBrowser', argumentsCount: 0 },
495
- { key: 'coolDownAsync', name: 'coolDownAsync', argumentsCount: 0 },
496
- { argumentsCount: 0, key: 'warmUpAsync', name: 'warmUpAsync' },
497
443
  { name: 'openBrowserAsync', argumentsCount: 2, key: 'openBrowserAsync' },
498
- { 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' },
499
449
  ],
500
450
  ExponentAV: [
501
451
  { name: 'getStatusForVideo', argumentsCount: 1, key: 0 },
@@ -526,47 +476,46 @@ module.exports = {
526
476
  { name: 'isAvailableAsync', argumentsCount: 0, key: 0 },
527
477
  { name: 'setUpdateInterval', argumentsCount: 1, key: 1 },
528
478
  ],
529
- ExponentCameraManager: [
530
- { name: 'requestCameraPermissionsAsync', argumentsCount: 0, key: 0 },
531
- { name: 'record', argumentsCount: 2, key: 1 },
532
- { name: 'stopRecording', argumentsCount: 1, key: 2 },
533
- { name: 'takePicture', argumentsCount: 2, key: 3 },
534
- { name: 'pausePreview', argumentsCount: 1, key: 4 },
535
- { name: 'getMicrophonePermissionsAsync', argumentsCount: 0, key: 5 },
536
- { name: 'getPermissionsAsync', argumentsCount: 0, key: 6 },
537
- { name: 'getAvailableVideoCodecsAsync', argumentsCount: 0, key: 7 },
538
- { name: 'resumePreview', argumentsCount: 1, key: 8 },
539
- { name: 'requestPermissionsAsync', argumentsCount: 0, key: 9 },
540
- { name: 'getAvailablePictureSizes', argumentsCount: 2, key: 10 },
541
- { name: 'getCameraPermissionsAsync', argumentsCount: 0, key: 11 },
542
- { name: 'requestMicrophonePermissionsAsync', argumentsCount: 0, key: 12 },
479
+ ExponentCamera: [
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
+ },
543
513
  ],
544
514
  ExponentConstants: [{ name: 'getWebViewUserAgentAsync', argumentsCount: 0, key: 0 }],
545
515
  ExponentDeviceMotion: [
546
516
  { name: 'isAvailableAsync', argumentsCount: 0, key: 0 },
547
517
  { name: 'setUpdateInterval', argumentsCount: 1, key: 1 },
548
518
  ],
549
- ExponentFacebook: [
550
- { name: 'flushAsync', argumentsCount: 0, key: 0 },
551
- { name: 'setAutoLogAppEventsEnabledAsync', argumentsCount: 1, key: 1 },
552
- { name: 'logEventAsync', argumentsCount: 3, key: 2 },
553
- { name: 'getUserIDAsync', argumentsCount: 0, key: 3 },
554
- { name: 'setAdvertiserIDCollectionEnabledAsync', argumentsCount: 1, key: 4 },
555
- { name: 'getPermissionsAsync', argumentsCount: 0, key: 5 },
556
- { name: 'initializeAsync', argumentsCount: 1, key: 6 },
557
- { name: 'logOutAsync', argumentsCount: 0, key: 7 },
558
- { name: 'requestPermissionsAsync', argumentsCount: 0, key: 8 },
559
- { name: 'logInWithReadPermissionsAsync', argumentsCount: 1, key: 9 },
560
- { name: 'getAdvertiserIDAsync', argumentsCount: 0, key: 10 },
561
- { name: 'setUserDataAsync', argumentsCount: 1, key: 11 },
562
- { name: 'setFlushBehaviorAsync', argumentsCount: 1, key: 12 },
563
- { name: 'logPurchaseAsync', argumentsCount: 3, key: 13 },
564
- { name: 'logPushNotificationOpenAsync', argumentsCount: 1, key: 14 },
565
- { name: 'setAdvertiserTrackingEnabledAsync', argumentsCount: 1, key: 15 },
566
- { name: 'setUserIDAsync', argumentsCount: 1, key: 16 },
567
- { name: 'getAuthenticationCredentialAsync', argumentsCount: 0, key: 17 },
568
- { name: 'getAnonymousIDAsync', argumentsCount: 0, key: 18 },
569
- ],
570
519
  ExponentFileSystem: [
571
520
  { name: 'uploadAsync', argumentsCount: 3, key: 0 },
572
521
  { name: 'readDirectoryAsync', argumentsCount: 2, key: 1 },
@@ -603,21 +552,21 @@ module.exports = {
603
552
  name: 'getCameraPermissionsAsync',
604
553
  argumentsCount: 0,
605
554
  },
555
+ { name: 'launchImageLibraryAsync', argumentsCount: 1, key: 'launchImageLibraryAsync' },
606
556
  {
557
+ name: 'getMediaLibraryPermissionsAsync',
607
558
  argumentsCount: 1,
608
- name: 'requestMediaLibraryPermissionsAsync',
609
- key: 'requestMediaLibraryPermissionsAsync',
559
+ key: 'getMediaLibraryPermissionsAsync',
610
560
  },
611
- { name: 'launchCameraAsync', key: 'launchCameraAsync', argumentsCount: 1 },
612
561
  {
613
562
  name: 'requestCameraPermissionsAsync',
614
563
  argumentsCount: 0,
615
564
  key: 'requestCameraPermissionsAsync',
616
565
  },
617
- { argumentsCount: 1, key: 'launchImageLibraryAsync', name: 'launchImageLibraryAsync' },
566
+ { argumentsCount: 1, name: 'launchCameraAsync', key: 'launchCameraAsync' },
618
567
  {
619
- name: 'getMediaLibraryPermissionsAsync',
620
- key: 'getMediaLibraryPermissionsAsync',
568
+ name: 'requestMediaLibraryPermissionsAsync',
569
+ key: 'requestMediaLibraryPermissionsAsync',
621
570
  argumentsCount: 1,
622
571
  },
623
572
  ],
@@ -662,22 +611,6 @@ module.exports = {
662
611
  { name: 'exec', argumentsCount: 3, key: 1 },
663
612
  { name: 'deleteAsync', argumentsCount: 1, key: 2 },
664
613
  ],
665
- ExponentSegment: [
666
- { name: 'setEnabledAsync', argumentsCount: 1, key: 0 },
667
- { name: 'screenWithProperties', argumentsCount: 3, key: 1 },
668
- { name: 'flush', argumentsCount: 0, key: 2 },
669
- { name: 'screen', argumentsCount: 1, key: 3 },
670
- { name: 'identify', argumentsCount: 1, key: 4 },
671
- { name: 'identifyWithTraits', argumentsCount: 3, key: 5 },
672
- { name: 'trackWithProperties', argumentsCount: 3, key: 6 },
673
- { name: 'groupWithTraits', argumentsCount: 3, key: 7 },
674
- { name: 'initialize', argumentsCount: 1, key: 8 },
675
- { name: 'getEnabledAsync', argumentsCount: 0, key: 9 },
676
- { name: 'alias', argumentsCount: 2, key: 10 },
677
- { name: 'group', argumentsCount: 1, key: 11 },
678
- { name: 'track', argumentsCount: 1, key: 12 },
679
- { name: 'reset', argumentsCount: 0, key: 13 },
680
- ],
681
614
  ExponentSpeech: [
682
615
  { name: 'speak', argumentsCount: 3, key: 0 },
683
616
  { name: 'stop', argumentsCount: 0, key: 1 },
@@ -686,8 +619,7 @@ module.exports = {
686
619
  { name: 'isSpeaking', argumentsCount: 0, key: 4 },
687
620
  { name: 'getVoices', argumentsCount: 0, key: 5 },
688
621
  ],
689
- MediaViewManager: [],
690
- NativeModulesProxy: [],
622
+ NativeModulesProxy: [{ key: 'callMethod', name: 'callMethod', argumentsCount: 3 }],
691
623
  NotificationsServerRegistrationModule: [
692
624
  { name: 'getRegistrationInfoAsync', argumentsCount: 0, key: 0 },
693
625
  { name: 'setRegistrationInfoAsync', argumentsCount: 1, key: 1 },
@@ -699,7 +631,6 @@ module.exports = {
699
631
  modulesConstants: {
700
632
  type: 'mock',
701
633
  mockDefinition: {
702
- CTKAdSettingsManager: { currentDeviceHash: { type: 'string' } },
703
634
  EASClient: { clientID: { type: 'string' } },
704
635
  ExpoApplication: {
705
636
  applicationId: { type: 'string' },
@@ -708,10 +639,10 @@ module.exports = {
708
639
  nativeBuildVersion: { type: 'string' },
709
640
  },
710
641
  ExpoBarCodeScannerModule: { BarCodeType: { type: 'object' }, Type: { type: 'object' } },
711
- ExpoBattery: { isSupported: { type: 'boolean', mock: false } },
642
+ ExpoBattery: { isSupported: { type: 'boolean', mock: true } },
712
643
  ExpoCellular: {
713
- allowsVoip: { type: 'object', mock: null },
714
- carrier: { type: 'object', mock: null },
644
+ allowsVoip: { type: 'boolean', mock: true },
645
+ carrier: { type: 'string' },
715
646
  generation: { type: 'number', mock: 0 },
716
647
  isoCountryCode: { type: 'object', mock: null },
717
648
  mobileCountryCode: { type: 'object', mock: null },
@@ -723,7 +654,7 @@ module.exports = {
723
654
  brand: { type: 'string' },
724
655
  deviceName: { type: 'string' },
725
656
  deviceYearClass: { type: 'number', mock: 2021 },
726
- isDevice: { type: 'boolean', mock: false },
657
+ isDevice: { type: 'boolean', mock: true },
727
658
  manufacturer: { type: 'string' },
728
659
  modelId: { type: 'string' },
729
660
  modelName: { type: 'string' },
@@ -732,7 +663,7 @@ module.exports = {
732
663
  osName: { type: 'string' },
733
664
  osVersion: { type: 'string' },
734
665
  supportedCpuArchitectures: { type: 'array' },
735
- totalMemory: { type: 'number', mock: 34359738368 },
666
+ totalMemory: { type: 'number', mock: 3824369664 },
736
667
  },
737
668
  ExpoErrorRecovery: { recoveredProps: { type: 'object', mock: null } },
738
669
  ExpoFaceDetector: {
@@ -768,6 +699,7 @@ module.exports = {
768
699
  WHEN_UNLOCKED: { type: 'number', mock: 5 },
769
700
  WHEN_UNLOCKED_THIS_DEVICE_ONLY: { type: 'number', mock: 6 },
770
701
  },
702
+ ExpoStoreReview: {},
771
703
  ExpoSystemUI: {},
772
704
  ExpoTaskManager: { EVENT_NAME: { type: 'string' } },
773
705
  ExpoTrackingTransparency: {},
@@ -778,7 +710,7 @@ module.exports = {
778
710
  releaseChannel: { type: 'string' },
779
711
  runtimeVersion: { type: 'string' },
780
712
  },
781
- ExpoVideoManager: {
713
+ ExpoVideoView: {
782
714
  ScaleAspectFill: { type: 'string' },
783
715
  ScaleAspectFit: { type: 'string' },
784
716
  ScaleNone: { type: 'string' },
@@ -786,7 +718,7 @@ module.exports = {
786
718
  },
787
719
  ExpoWebBrowser: {},
788
720
  ExponentAV: { Qualities: { type: 'object' } },
789
- ExponentCameraManager: {
721
+ ExponentCamera: {
790
722
  AutoFocus: { type: 'object' },
791
723
  FlashMode: { type: 'object' },
792
724
  Type: { type: 'object' },
@@ -837,46 +769,35 @@ module.exports = {
837
769
  viewManagersMetadata: {
838
770
  type: 'object',
839
771
  mock: {
840
- ExpoAdsPublisherBannerView: {
841
- propsNames: ['additionalRequestParams', 'bannerSize', 'adUnitID'],
842
- },
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'] },
843
786
  ExponentCamera: {
844
787
  propsNames: [
845
- 'faceDetectorEnabled',
846
- 'focusDepth',
847
- 'barCodeScannerEnabled',
788
+ 'type',
789
+ 'flashMode',
848
790
  'faceDetectorSettings',
849
- 'pictureSize',
791
+ 'barCodeScannerSettings',
792
+ 'autoFocus',
793
+ 'focusDepth',
850
794
  'zoom',
851
- 'flashMode',
852
- 'type',
853
795
  'whiteBalance',
854
- 'autoFocus',
855
- 'barCodeScannerSettings',
796
+ 'pictureSize',
797
+ 'faceDetectorEnabled',
798
+ 'barCodeScannerEnabled',
856
799
  ],
857
800
  },
858
- CTKNativeAd: { propsNames: ['adsManager'] },
859
- AdIconView: { propsNames: [] },
860
- CTKBannerView: { propsNames: ['placementId', 'size'] },
861
- ExpoAppleAuthenticationButtonContinueWhite: { propsNames: ['cornerRadius'] },
862
- ExpoAppleAuthenticationButtonSignInBlack: { propsNames: ['cornerRadius'] },
863
- MediaView: { propsNames: [] },
864
- ExpoAppleAuthenticationButtonSignUpWhiteOutline: { propsNames: ['cornerRadius'] },
865
- ExpoAppleAuthenticationButtonContinueBlack: { propsNames: ['cornerRadius'] },
866
- ExponentGLView: { propsNames: ['msaaSamples'] },
867
- ExpoAppleAuthenticationButtonSignInWhiteOutline: { propsNames: ['cornerRadius'] },
868
- ExpoBarCodeScannerView: { propsNames: ['type', 'barCodeTypes'] },
869
- ExpoAppleAuthenticationButtonContinueWhiteOutline: { propsNames: ['cornerRadius'] },
870
- ExpoLinearGradient: { propsNames: ['colors', 'startPoint', 'endPoint', 'locations'] },
871
- ExpoAppleAuthenticationButtonSignInWhite: { propsNames: ['cornerRadius'] },
872
- ExpoAppleAuthenticationButtonSignUpWhite: { propsNames: ['cornerRadius'] },
873
- AdOptionsView: { propsNames: ['nativeAdViewTag', 'iconColor'] },
874
- ExpoAdsAdMobBannerView: {
875
- propsNames: ['additionalRequestParams', 'bannerSize', 'adUnitID'],
876
- },
877
- ExpoBlurView: { propsNames: ['intensity', 'tint'] },
878
- ExpoVideoView: { propsNames: ['status', 'resizeMode', 'useNativeControls', 'source'] },
879
- ExpoAppleAuthenticationButtonSignUpBlack: { propsNames: ['cornerRadius'] },
880
801
  },
881
802
  },
882
803
  },
@@ -952,7 +873,6 @@ module.exports = {
952
873
  getCurrentState: { type: 'function', functionType: 'promise' },
953
874
  removeListeners: { type: 'function', functionType: 'async' },
954
875
  },
955
- RNCPickerManager: {},
956
876
  RNCSafeAreaContext: {
957
877
  getConstants: { type: 'function' },
958
878
  initialWindowMetrics: { type: 'object' },
@@ -978,10 +898,7 @@ module.exports = {
978
898
  startLoadWithResult: { type: 'function', functionType: 'async' },
979
899
  stopLoading: { type: 'function', functionType: 'async' },
980
900
  },
981
- RNDateTimePickerManager: {
982
- getConstants: { type: 'function' },
983
- getDefaultDisplayValue: { type: 'function', functionType: 'promise' },
984
- },
901
+ RNDateTimePickerManager: {},
985
902
  RNGestureHandlerButton: {},
986
903
  RNGestureHandlerModule: {
987
904
  Direction: { type: 'object' },
@@ -1015,7 +932,16 @@ module.exports = {
1015
932
  isPointInFill: { type: 'function', functionType: 'sync' },
1016
933
  isPointInStroke: { type: 'function', functionType: 'sync' },
1017
934
  },
1018
- 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
+ },
1019
945
  RNSVGDefsManager: {},
1020
946
  RNSVGEllipseManager: {
1021
947
  getBBox: { type: 'function', functionType: 'sync' },
@@ -1134,7 +1060,16 @@ module.exports = {
1134
1060
  getConstants: { type: 'function' },
1135
1061
  toDataURL: { type: 'function', functionType: 'async' },
1136
1062
  },
1137
- 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
+ },
1138
1073
  RNSVGTSpanManager: {
1139
1074
  getBBox: { type: 'function', functionType: 'sync' },
1140
1075
  getCTM: { type: 'function', functionType: 'sync' },