@office-iss/react-native-win32 0.0.0-canary.292 → 0.0.0-canary.293
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/.flowconfig +1 -1
- package/CHANGELOG.json +28 -1
- package/CHANGELOG.md +14 -4
- package/Libraries/Blob/URL.js +13 -1
- package/Libraries/Components/Pressable/Pressable.js +4 -1
- package/Libraries/Components/Pressable/Pressable.win32.js +4 -1
- package/Libraries/Components/ScrollView/ScrollView.d.ts +1 -1
- package/Libraries/Components/Switch/Switch.js +7 -3
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +1 -0
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +1 -0
- package/Libraries/Components/TextInput/TextInput.flow.js +25 -0
- package/Libraries/Components/TextInput/TextInput.flow.win32.js +25 -1
- package/Libraries/Components/TextInput/TextInput.js +2 -0
- package/Libraries/Components/TextInput/TextInput.win32.js +2 -0
- package/Libraries/Components/View/View.js +18 -21
- package/Libraries/Components/View/View.win32.js +21 -24
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Core/setUpReactDevTools.js +5 -5
- package/Libraries/Image/ImageProps.js +2 -3
- package/Libraries/Image/ImageSource.js +3 -1
- package/Libraries/Image/ImageSourceUtils.js +4 -2
- package/Libraries/Lists/FlatList.d.ts +2 -2
- package/Libraries/Lists/SectionListModern.js +1 -2
- package/Libraries/LogBox/Data/LogBoxData.js +1 -1
- package/Libraries/NativeModules/specs/NativeDevMenu.js +2 -2
- package/Libraries/ReactNative/AppContainer-dev.js +3 -2
- package/Libraries/ReactNative/RendererImplementation.js +6 -5
- package/Libraries/ReactNative/renderApplication.js +9 -0
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +4840 -4748
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +4947 -4829
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +3998 -3888
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +5005 -4948
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +2744 -2652
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +5020 -4933
- package/Libraries/Renderer/shims/ReactFabric.js +3 -1
- package/Libraries/Renderer/shims/ReactFeatureFlags.js +3 -1
- package/Libraries/Renderer/shims/ReactNative.js +3 -1
- package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +3 -1
- package/Libraries/Renderer/shims/createReactNativeComponentClass.js +3 -1
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +1 -1
- package/Libraries/StyleSheet/StyleSheetTypes.js +47 -3
- package/Libraries/StyleSheet/processBackgroundImage.js +670 -214
- package/Libraries/Text/TextNativeComponent.js +0 -4
- package/Libraries/Text/TextNativeComponent.win32.js +0 -4
- package/index.js +1 -288
- package/index.win32.js +3 -292
- package/overrides.json +11 -11
- package/package.json +15 -15
- package/src/private/{devmenu → devsupport/devmenu}/DevMenu.js +1 -1
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/BorderBox.js +2 -2
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/BoxInspector.js +5 -4
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/ElementBox.js +7 -5
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/ElementProperties.js +10 -9
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/Inspector.js +13 -11
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/InspectorOverlay.js +4 -3
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/InspectorPanel.js +8 -7
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/NetworkOverlay.js +9 -8
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/ReactDevToolsOverlay.js +7 -7
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/StyleInspector.js +6 -5
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/XHRInterceptor.js +2 -2
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/getInspectorDataForViewAtPoint.js +2 -2
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/resolveBoxStyle.js +1 -1
- package/src/private/{inspector → devsupport/devmenu/perfmonitor}/PerformanceOverlay.js +5 -4
- package/src/private/{specs_DEPRECATED/modules → devsupport/devmenu/specs}/NativeDevMenu.js +2 -2
- package/src/private/{debugging → devsupport/rndevtools}/ReactDevToolsSettingsManager.android.js +1 -1
- package/src/private/{debugging → devsupport/rndevtools}/ReactDevToolsSettingsManager.ios.js +1 -1
- package/src/private/{debugging → devsupport/rndevtools}/ReactDevToolsSettingsManager.win32.js +1 -1
- package/src/private/{debugging → devsupport/rndevtools}/setUpFuseboxReactDevToolsDispatcher.js +1 -1
- package/src/private/{fusebox → devsupport/rndevtools}/specs/NativeReactDevToolsRuntimeSettingsModule.js +2 -2
- package/src/private/{specs_DEPRECATED/modules → devsupport/rndevtools/specs}/NativeReactDevToolsSettingsManager.js +2 -2
- package/src/private/featureflags/ReactNativeFeatureFlags.js +22 -17
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +5 -4
- package/src/private/renderer/errorhandling/ErrorHandlers.js +2 -2
- package/src/private/specs_DEPRECATED/modules/NativeSampleTurboModule.js +3 -0
- package/src/private/types/HostInstance.js +2 -2
- package/types/index.d.ts +1 -1
- package/types/public/ReactNativeTypes.d.ts +2 -2
- package/Libraries/BatchedBridge/__mocks__/MessageQueueTestConfig.js +0 -38
- package/Libraries/BatchedBridge/__mocks__/MessageQueueTestModule.js +0 -22
- package/Libraries/Blob/__mocks__/BlobModule.js +0 -16
- package/Libraries/Blob/__mocks__/FileReaderModule.js +0 -20
- package/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js +0 -32
- package/Libraries/Core/__mocks__/ErrorUtils.js +0 -33
- package/Libraries/Core/__mocks__/NativeExceptionsManager.js +0 -19
- package/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js +0 -49
- package/Libraries/Lists/__flowtests__/FlatList-flowtest.js +0 -118
- package/Libraries/Lists/__flowtests__/SectionList-flowtest.js +0 -134
- package/Libraries/StyleSheet/__flowtests__/StyleSheet-flowtest.js +0 -58
- package/Libraries/Utilities/__mocks__/BackHandler.js +0 -45
- package/Libraries/Utilities/__mocks__/GlobalPerformanceLogger.js +0 -16
- package/Libraries/Utilities/__mocks__/PixelRatio.js +0 -25
- package/Libraries/__flowtests__/ReactNativeTypes-flowtest.js +0 -30
- package/Libraries/vendor/emitter/__flowtests__/EventEmitter-flowtest.js +0 -81
- package/jest/__tests__/setup-test.js +0 -18
- package/src/private/webapis/performance/specs/__mocks__/NativePerformanceMock.js +0 -267
- /package/src/private/{devmenu → devsupport/devmenu}/DevMenu.d.ts +0 -0
- /package/src/private/{debugging → devsupport/rndevtools}/FuseboxSessionObserver.js +0 -0
|
@@ -44,7 +44,6 @@ const textViewConfig = {
|
|
|
44
44
|
minimumFontScale: true,
|
|
45
45
|
textBreakStrategy: true,
|
|
46
46
|
onTextLayout: true,
|
|
47
|
-
onInlineViewLayout: true,
|
|
48
47
|
dataDetectorType: true,
|
|
49
48
|
android_hyphenationFrequency: true,
|
|
50
49
|
lineBreakStrategyIOS: true,
|
|
@@ -53,9 +52,6 @@ const textViewConfig = {
|
|
|
53
52
|
topTextLayout: {
|
|
54
53
|
registrationName: 'onTextLayout',
|
|
55
54
|
},
|
|
56
|
-
topInlineViewLayout: {
|
|
57
|
-
registrationName: 'onInlineViewLayout',
|
|
58
|
-
},
|
|
59
55
|
},
|
|
60
56
|
uiViewClassName: 'RCTText',
|
|
61
57
|
};
|
|
@@ -44,7 +44,6 @@ const textViewConfig = {
|
|
|
44
44
|
minimumFontScale: true,
|
|
45
45
|
textBreakStrategy: true,
|
|
46
46
|
onTextLayout: true,
|
|
47
|
-
onInlineViewLayout: true,
|
|
48
47
|
dataDetectorType: true,
|
|
49
48
|
android_hyphenationFrequency: true,
|
|
50
49
|
lineBreakStrategyIOS: true,
|
|
@@ -87,9 +86,6 @@ const textViewConfig = {
|
|
|
87
86
|
topTextLayout: {
|
|
88
87
|
registrationName: 'onTextLayout',
|
|
89
88
|
},
|
|
90
|
-
topInlineViewLayout: {
|
|
91
|
-
registrationName: 'onInlineViewLayout',
|
|
92
|
-
},
|
|
93
89
|
},
|
|
94
90
|
uiViewClassName: 'RCTText',
|
|
95
91
|
};
|
package/index.js
CHANGED
|
@@ -183,7 +183,7 @@ module.exports = {
|
|
|
183
183
|
return require('./Libraries/Utilities/DeviceInfo').default;
|
|
184
184
|
},
|
|
185
185
|
get DevMenu() {
|
|
186
|
-
return require('./src/private/devmenu/DevMenu').default;
|
|
186
|
+
return require('./src/private/devsupport/devmenu/DevMenu').default;
|
|
187
187
|
},
|
|
188
188
|
get DevSettings() {
|
|
189
189
|
return require('./Libraries/Utilities/DevSettings').default;
|
|
@@ -320,293 +320,6 @@ module.exports = {
|
|
|
320
320
|
} as ReactNativePublicAPI;
|
|
321
321
|
|
|
322
322
|
if (__DEV__) {
|
|
323
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
324
|
-
* attempting to access ART. */
|
|
325
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
326
|
-
* attempting to access ART. */
|
|
327
|
-
Object.defineProperty(module.exports, 'ART', {
|
|
328
|
-
configurable: true,
|
|
329
|
-
get() {
|
|
330
|
-
invariant(
|
|
331
|
-
false,
|
|
332
|
-
'ART has been removed from React Native. ' +
|
|
333
|
-
"Please upgrade to use either 'react-native-svg' or a similar package. " +
|
|
334
|
-
"If you cannot upgrade to a different library, please install the deprecated '@react-native-community/art' package. " +
|
|
335
|
-
'See https://github.com/react-native-art/art',
|
|
336
|
-
);
|
|
337
|
-
},
|
|
338
|
-
});
|
|
339
|
-
|
|
340
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
341
|
-
* attempting to access ListView. */
|
|
342
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
343
|
-
* attempting to access ListView. */
|
|
344
|
-
Object.defineProperty(module.exports, 'ListView', {
|
|
345
|
-
configurable: true,
|
|
346
|
-
get() {
|
|
347
|
-
invariant(
|
|
348
|
-
false,
|
|
349
|
-
'ListView has been removed from React Native. ' +
|
|
350
|
-
'See https://fb.me/nolistview for more information or use ' +
|
|
351
|
-
'`deprecated-react-native-listview`.',
|
|
352
|
-
);
|
|
353
|
-
},
|
|
354
|
-
});
|
|
355
|
-
|
|
356
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
357
|
-
* attempting to access SwipeableListView. */
|
|
358
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
359
|
-
* attempting to access SwipeableListView. */
|
|
360
|
-
Object.defineProperty(module.exports, 'SwipeableListView', {
|
|
361
|
-
configurable: true,
|
|
362
|
-
get() {
|
|
363
|
-
invariant(
|
|
364
|
-
false,
|
|
365
|
-
'SwipeableListView has been removed from React Native. ' +
|
|
366
|
-
'See https://fb.me/nolistview for more information or use ' +
|
|
367
|
-
'`deprecated-react-native-swipeable-listview`.',
|
|
368
|
-
);
|
|
369
|
-
},
|
|
370
|
-
});
|
|
371
|
-
|
|
372
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
373
|
-
* attempting to access WebView. */
|
|
374
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
375
|
-
* attempting to access WebView. */
|
|
376
|
-
Object.defineProperty(module.exports, 'WebView', {
|
|
377
|
-
configurable: true,
|
|
378
|
-
get() {
|
|
379
|
-
invariant(
|
|
380
|
-
false,
|
|
381
|
-
'WebView has been removed from React Native. ' +
|
|
382
|
-
"It can now be installed and imported from 'react-native-webview' instead of 'react-native'. " +
|
|
383
|
-
'See https://github.com/react-native-webview/react-native-webview',
|
|
384
|
-
);
|
|
385
|
-
},
|
|
386
|
-
});
|
|
387
|
-
|
|
388
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
389
|
-
* attempting to access NetInfo. */
|
|
390
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
391
|
-
* attempting to access NetInfo. */
|
|
392
|
-
Object.defineProperty(module.exports, 'NetInfo', {
|
|
393
|
-
configurable: true,
|
|
394
|
-
get() {
|
|
395
|
-
invariant(
|
|
396
|
-
false,
|
|
397
|
-
'NetInfo has been removed from React Native. ' +
|
|
398
|
-
"It can now be installed and imported from '@react-native-community/netinfo' instead of 'react-native'. " +
|
|
399
|
-
'See https://github.com/react-native-netinfo/react-native-netinfo',
|
|
400
|
-
);
|
|
401
|
-
},
|
|
402
|
-
});
|
|
403
|
-
|
|
404
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
405
|
-
* attempting to access CameraRoll. */
|
|
406
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
407
|
-
* attempting to access CameraRoll. */
|
|
408
|
-
Object.defineProperty(module.exports, 'CameraRoll', {
|
|
409
|
-
configurable: true,
|
|
410
|
-
get() {
|
|
411
|
-
invariant(
|
|
412
|
-
false,
|
|
413
|
-
'CameraRoll has been removed from React Native. ' +
|
|
414
|
-
"It can now be installed and imported from '@react-native-camera-roll/camera-roll' instead of 'react-native'. " +
|
|
415
|
-
'See https://github.com/react-native-cameraroll/react-native-cameraroll',
|
|
416
|
-
);
|
|
417
|
-
},
|
|
418
|
-
});
|
|
419
|
-
|
|
420
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
421
|
-
* attempting to access ImageStore. */
|
|
422
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
423
|
-
* attempting to access ImageStore. */
|
|
424
|
-
Object.defineProperty(module.exports, 'ImageStore', {
|
|
425
|
-
configurable: true,
|
|
426
|
-
get() {
|
|
427
|
-
invariant(
|
|
428
|
-
false,
|
|
429
|
-
'ImageStore has been removed from React Native. ' +
|
|
430
|
-
'To get a base64-encoded string from a local image use either of the following third-party libraries:' +
|
|
431
|
-
"* expo-file-system: `readAsStringAsync(filepath, 'base64')`" +
|
|
432
|
-
"* react-native-fs: `readFile(filepath, 'base64')`",
|
|
433
|
-
);
|
|
434
|
-
},
|
|
435
|
-
});
|
|
436
|
-
|
|
437
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
438
|
-
* attempting to access ImageEditor. */
|
|
439
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
440
|
-
* attempting to access ImageEditor. */
|
|
441
|
-
Object.defineProperty(module.exports, 'ImageEditor', {
|
|
442
|
-
configurable: true,
|
|
443
|
-
get() {
|
|
444
|
-
invariant(
|
|
445
|
-
false,
|
|
446
|
-
'ImageEditor has been removed from React Native. ' +
|
|
447
|
-
"It can now be installed and imported from '@react-native-community/image-editor' instead of 'react-native'. " +
|
|
448
|
-
'See https://github.com/callstack/react-native-image-editor',
|
|
449
|
-
);
|
|
450
|
-
},
|
|
451
|
-
});
|
|
452
|
-
|
|
453
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
454
|
-
* attempting to access TimePickerAndroid. */
|
|
455
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
456
|
-
* attempting to access TimePickerAndroid. */
|
|
457
|
-
Object.defineProperty(module.exports, 'TimePickerAndroid', {
|
|
458
|
-
configurable: true,
|
|
459
|
-
get() {
|
|
460
|
-
invariant(
|
|
461
|
-
false,
|
|
462
|
-
'TimePickerAndroid has been removed from React Native. ' +
|
|
463
|
-
"It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. " +
|
|
464
|
-
'See https://github.com/react-native-datetimepicker/datetimepicker',
|
|
465
|
-
);
|
|
466
|
-
},
|
|
467
|
-
});
|
|
468
|
-
|
|
469
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
470
|
-
* attempting to access ToolbarAndroid. */
|
|
471
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
472
|
-
* attempting to access ToolbarAndroid. */
|
|
473
|
-
Object.defineProperty(module.exports, 'ToolbarAndroid', {
|
|
474
|
-
configurable: true,
|
|
475
|
-
get() {
|
|
476
|
-
invariant(
|
|
477
|
-
false,
|
|
478
|
-
'ToolbarAndroid has been removed from React Native. ' +
|
|
479
|
-
"It can now be installed and imported from '@react-native-community/toolbar-android' instead of 'react-native'. " +
|
|
480
|
-
'See https://github.com/react-native-toolbar-android/toolbar-android',
|
|
481
|
-
);
|
|
482
|
-
},
|
|
483
|
-
});
|
|
484
|
-
|
|
485
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
486
|
-
* attempting to access ViewPagerAndroid. */
|
|
487
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
488
|
-
* attempting to access ViewPagerAndroid. */
|
|
489
|
-
Object.defineProperty(module.exports, 'ViewPagerAndroid', {
|
|
490
|
-
configurable: true,
|
|
491
|
-
get() {
|
|
492
|
-
invariant(
|
|
493
|
-
false,
|
|
494
|
-
'ViewPagerAndroid has been removed from React Native. ' +
|
|
495
|
-
"It can now be installed and imported from 'react-native-pager-view' instead of 'react-native'. " +
|
|
496
|
-
'See https://github.com/callstack/react-native-pager-view',
|
|
497
|
-
);
|
|
498
|
-
},
|
|
499
|
-
});
|
|
500
|
-
|
|
501
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
502
|
-
* attempting to access CheckBox. */
|
|
503
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
504
|
-
* attempting to access CheckBox. */
|
|
505
|
-
Object.defineProperty(module.exports, 'CheckBox', {
|
|
506
|
-
configurable: true,
|
|
507
|
-
get() {
|
|
508
|
-
invariant(
|
|
509
|
-
false,
|
|
510
|
-
'CheckBox has been removed from React Native. ' +
|
|
511
|
-
"It can now be installed and imported from '@react-native-community/checkbox' instead of 'react-native'. " +
|
|
512
|
-
'See https://github.com/react-native-checkbox/react-native-checkbox',
|
|
513
|
-
);
|
|
514
|
-
},
|
|
515
|
-
});
|
|
516
|
-
|
|
517
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
518
|
-
* attempting to access SegmentedControlIOS. */
|
|
519
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
520
|
-
* attempting to access SegmentedControlIOS. */
|
|
521
|
-
Object.defineProperty(module.exports, 'SegmentedControlIOS', {
|
|
522
|
-
configurable: true,
|
|
523
|
-
get() {
|
|
524
|
-
invariant(
|
|
525
|
-
false,
|
|
526
|
-
'SegmentedControlIOS has been removed from React Native. ' +
|
|
527
|
-
"It can now be installed and imported from '@react-native-segmented-control/segmented-control' instead of 'react-native'." +
|
|
528
|
-
'See https://github.com/react-native-segmented-control/segmented-control',
|
|
529
|
-
);
|
|
530
|
-
},
|
|
531
|
-
});
|
|
532
|
-
|
|
533
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
534
|
-
* attempting to access StatusBarIOS. */
|
|
535
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
536
|
-
* attempting to access StatusBarIOS. */
|
|
537
|
-
Object.defineProperty(module.exports, 'StatusBarIOS', {
|
|
538
|
-
configurable: true,
|
|
539
|
-
get() {
|
|
540
|
-
invariant(
|
|
541
|
-
false,
|
|
542
|
-
'StatusBarIOS has been removed from React Native. ' +
|
|
543
|
-
'Has been merged with StatusBar. ' +
|
|
544
|
-
'See https://reactnative.dev/docs/statusbar',
|
|
545
|
-
);
|
|
546
|
-
},
|
|
547
|
-
});
|
|
548
|
-
|
|
549
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
550
|
-
* attempting to access PickerIOS. */
|
|
551
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
552
|
-
* attempting to access PickerIOS. */
|
|
553
|
-
Object.defineProperty(module.exports, 'PickerIOS', {
|
|
554
|
-
configurable: true,
|
|
555
|
-
get() {
|
|
556
|
-
invariant(
|
|
557
|
-
false,
|
|
558
|
-
'PickerIOS has been removed from React Native. ' +
|
|
559
|
-
"It can now be installed and imported from '@react-native-picker/picker' instead of 'react-native'. " +
|
|
560
|
-
'See https://github.com/react-native-picker/picker',
|
|
561
|
-
);
|
|
562
|
-
},
|
|
563
|
-
});
|
|
564
|
-
|
|
565
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
566
|
-
* attempting to access Picker. */
|
|
567
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
568
|
-
* attempting to access Picker. */
|
|
569
|
-
Object.defineProperty(module.exports, 'Picker', {
|
|
570
|
-
configurable: true,
|
|
571
|
-
get() {
|
|
572
|
-
invariant(
|
|
573
|
-
false,
|
|
574
|
-
'Picker has been removed from React Native. ' +
|
|
575
|
-
"It can now be installed and imported from '@react-native-picker/picker' instead of 'react-native'. " +
|
|
576
|
-
'See https://github.com/react-native-picker/picker',
|
|
577
|
-
);
|
|
578
|
-
},
|
|
579
|
-
});
|
|
580
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
581
|
-
* attempting to access DatePickerAndroid. */
|
|
582
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
583
|
-
* attempting to access DatePickerAndroid. */
|
|
584
|
-
Object.defineProperty(module.exports, 'DatePickerAndroid', {
|
|
585
|
-
configurable: true,
|
|
586
|
-
get() {
|
|
587
|
-
invariant(
|
|
588
|
-
false,
|
|
589
|
-
'DatePickerAndroid has been removed from React Native. ' +
|
|
590
|
-
"It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. " +
|
|
591
|
-
'See https://github.com/react-native-datetimepicker/datetimepicker',
|
|
592
|
-
);
|
|
593
|
-
},
|
|
594
|
-
});
|
|
595
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
596
|
-
* attempting to access MaskedViewIOS. */
|
|
597
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
598
|
-
* attempting to access MaskedViewIOS. */
|
|
599
|
-
Object.defineProperty(module.exports, 'MaskedViewIOS', {
|
|
600
|
-
configurable: true,
|
|
601
|
-
get() {
|
|
602
|
-
invariant(
|
|
603
|
-
false,
|
|
604
|
-
'MaskedViewIOS has been removed from React Native. ' +
|
|
605
|
-
"It can now be installed and imported from '@react-native-masked-view/masked-view' instead of 'react-native'. " +
|
|
606
|
-
'See https://github.com/react-native-masked-view/masked-view',
|
|
607
|
-
);
|
|
608
|
-
},
|
|
609
|
-
});
|
|
610
323
|
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
611
324
|
* attempting to access AsyncStorage. */
|
|
612
325
|
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
package/index.win32.js
CHANGED
|
@@ -102,7 +102,7 @@ import typeof Platform from './Libraries/Utilities/Platform';
|
|
|
102
102
|
import typeof useColorScheme from './Libraries/Utilities/useColorScheme';
|
|
103
103
|
import typeof useWindowDimensions from './Libraries/Utilities/useWindowDimensions';
|
|
104
104
|
import typeof Vibration from './Libraries/Vibration/Vibration';
|
|
105
|
-
import typeof DevMenu from './src/private/devmenu/DevMenu';
|
|
105
|
+
import typeof DevMenu from './src/private/devsupport/devmenu/DevMenu';
|
|
106
106
|
import typeof registerCallableModule from './Libraries/Core/registerCallableModule';
|
|
107
107
|
// Windows]]
|
|
108
108
|
|
|
@@ -232,9 +232,7 @@ module.exports = {
|
|
|
232
232
|
},
|
|
233
233
|
// Include any types exported in the Animated module together with its default export, so
|
|
234
234
|
// you can references types such as Animated.Numeric
|
|
235
|
-
get Animated():
|
|
236
|
-
// $FlowFixMe[incompatible-variance]: Ignoring variance issue with Color property
|
|
237
|
-
// $FlowExpectedError[prop-missing]: we only return the default export, all other exports are types
|
|
235
|
+
get Animated(): Animated {
|
|
238
236
|
return require('./Libraries/Animated/Animated').default;
|
|
239
237
|
},
|
|
240
238
|
get Appearance(): Appearance {
|
|
@@ -271,7 +269,7 @@ module.exports = {
|
|
|
271
269
|
return require('./Libraries/Utilities/DeviceInfo').default;
|
|
272
270
|
},
|
|
273
271
|
get DevMenu(): DevMenu {
|
|
274
|
-
return require('./src/private/devmenu/DevMenu').default;
|
|
272
|
+
return require('./src/private/devsupport/devmenu/DevMenu').default;
|
|
275
273
|
},
|
|
276
274
|
get DevSettings(): DevSettings {
|
|
277
275
|
return require('./Libraries/Utilities/DevSettings').default;
|
|
@@ -449,293 +447,6 @@ module.exports = {
|
|
|
449
447
|
};
|
|
450
448
|
|
|
451
449
|
if (__DEV__) {
|
|
452
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
453
|
-
* attempting to access ART. */
|
|
454
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
455
|
-
* attempting to access ART. */
|
|
456
|
-
Object.defineProperty(module.exports, 'ART', {
|
|
457
|
-
configurable: true,
|
|
458
|
-
get() {
|
|
459
|
-
invariant(
|
|
460
|
-
false,
|
|
461
|
-
'ART has been removed from React Native. ' +
|
|
462
|
-
"Please upgrade to use either 'react-native-svg' or a similar package. " +
|
|
463
|
-
"If you cannot upgrade to a different library, please install the deprecated '@react-native-community/art' package. " +
|
|
464
|
-
'See https://github.com/react-native-art/art',
|
|
465
|
-
);
|
|
466
|
-
},
|
|
467
|
-
});
|
|
468
|
-
|
|
469
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
470
|
-
* attempting to access ListView. */
|
|
471
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
472
|
-
* attempting to access ListView. */
|
|
473
|
-
Object.defineProperty(module.exports, 'ListView', {
|
|
474
|
-
configurable: true,
|
|
475
|
-
get() {
|
|
476
|
-
invariant(
|
|
477
|
-
false,
|
|
478
|
-
'ListView has been removed from React Native. ' +
|
|
479
|
-
'See https://fb.me/nolistview for more information or use ' +
|
|
480
|
-
'`deprecated-react-native-listview`.',
|
|
481
|
-
);
|
|
482
|
-
},
|
|
483
|
-
});
|
|
484
|
-
|
|
485
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
486
|
-
* attempting to access SwipeableListView. */
|
|
487
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
488
|
-
* attempting to access SwipeableListView. */
|
|
489
|
-
Object.defineProperty(module.exports, 'SwipeableListView', {
|
|
490
|
-
configurable: true,
|
|
491
|
-
get() {
|
|
492
|
-
invariant(
|
|
493
|
-
false,
|
|
494
|
-
'SwipeableListView has been removed from React Native. ' +
|
|
495
|
-
'See https://fb.me/nolistview for more information or use ' +
|
|
496
|
-
'`deprecated-react-native-swipeable-listview`.',
|
|
497
|
-
);
|
|
498
|
-
},
|
|
499
|
-
});
|
|
500
|
-
|
|
501
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
502
|
-
* attempting to access WebView. */
|
|
503
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
504
|
-
* attempting to access WebView. */
|
|
505
|
-
Object.defineProperty(module.exports, 'WebView', {
|
|
506
|
-
configurable: true,
|
|
507
|
-
get() {
|
|
508
|
-
invariant(
|
|
509
|
-
false,
|
|
510
|
-
'WebView has been removed from React Native. ' +
|
|
511
|
-
"It can now be installed and imported from 'react-native-webview' instead of 'react-native'. " +
|
|
512
|
-
'See https://github.com/react-native-webview/react-native-webview',
|
|
513
|
-
);
|
|
514
|
-
},
|
|
515
|
-
});
|
|
516
|
-
|
|
517
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
518
|
-
* attempting to access NetInfo. */
|
|
519
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
520
|
-
* attempting to access NetInfo. */
|
|
521
|
-
Object.defineProperty(module.exports, 'NetInfo', {
|
|
522
|
-
configurable: true,
|
|
523
|
-
get() {
|
|
524
|
-
invariant(
|
|
525
|
-
false,
|
|
526
|
-
'NetInfo has been removed from React Native. ' +
|
|
527
|
-
"It can now be installed and imported from '@react-native-community/netinfo' instead of 'react-native'. " +
|
|
528
|
-
'See https://github.com/react-native-netinfo/react-native-netinfo',
|
|
529
|
-
);
|
|
530
|
-
},
|
|
531
|
-
});
|
|
532
|
-
|
|
533
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
534
|
-
* attempting to access CameraRoll. */
|
|
535
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
536
|
-
* attempting to access CameraRoll. */
|
|
537
|
-
Object.defineProperty(module.exports, 'CameraRoll', {
|
|
538
|
-
configurable: true,
|
|
539
|
-
get() {
|
|
540
|
-
invariant(
|
|
541
|
-
false,
|
|
542
|
-
'CameraRoll has been removed from React Native. ' +
|
|
543
|
-
"It can now be installed and imported from '@react-native-camera-roll/camera-roll' instead of 'react-native'. " +
|
|
544
|
-
'See https://github.com/react-native-cameraroll/react-native-cameraroll',
|
|
545
|
-
);
|
|
546
|
-
},
|
|
547
|
-
});
|
|
548
|
-
|
|
549
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
550
|
-
* attempting to access ImageStore. */
|
|
551
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
552
|
-
* attempting to access ImageStore. */
|
|
553
|
-
Object.defineProperty(module.exports, 'ImageStore', {
|
|
554
|
-
configurable: true,
|
|
555
|
-
get() {
|
|
556
|
-
invariant(
|
|
557
|
-
false,
|
|
558
|
-
'ImageStore has been removed from React Native. ' +
|
|
559
|
-
'To get a base64-encoded string from a local image use either of the following third-party libraries:' +
|
|
560
|
-
"* expo-file-system: `readAsStringAsync(filepath, 'base64')`" +
|
|
561
|
-
"* react-native-fs: `readFile(filepath, 'base64')`",
|
|
562
|
-
);
|
|
563
|
-
},
|
|
564
|
-
});
|
|
565
|
-
|
|
566
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
567
|
-
* attempting to access ImageEditor. */
|
|
568
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
569
|
-
* attempting to access ImageEditor. */
|
|
570
|
-
Object.defineProperty(module.exports, 'ImageEditor', {
|
|
571
|
-
configurable: true,
|
|
572
|
-
get() {
|
|
573
|
-
invariant(
|
|
574
|
-
false,
|
|
575
|
-
'ImageEditor has been removed from React Native. ' +
|
|
576
|
-
"It can now be installed and imported from '@react-native-community/image-editor' instead of 'react-native'. " +
|
|
577
|
-
'See https://github.com/callstack/react-native-image-editor',
|
|
578
|
-
);
|
|
579
|
-
},
|
|
580
|
-
});
|
|
581
|
-
|
|
582
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
583
|
-
* attempting to access TimePickerAndroid. */
|
|
584
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
585
|
-
* attempting to access TimePickerAndroid. */
|
|
586
|
-
Object.defineProperty(module.exports, 'TimePickerAndroid', {
|
|
587
|
-
configurable: true,
|
|
588
|
-
get() {
|
|
589
|
-
invariant(
|
|
590
|
-
false,
|
|
591
|
-
'TimePickerAndroid has been removed from React Native. ' +
|
|
592
|
-
"It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. " +
|
|
593
|
-
'See https://github.com/react-native-datetimepicker/datetimepicker',
|
|
594
|
-
);
|
|
595
|
-
},
|
|
596
|
-
});
|
|
597
|
-
|
|
598
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
599
|
-
* attempting to access ToolbarAndroid. */
|
|
600
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
601
|
-
* attempting to access ToolbarAndroid. */
|
|
602
|
-
Object.defineProperty(module.exports, 'ToolbarAndroid', {
|
|
603
|
-
configurable: true,
|
|
604
|
-
get() {
|
|
605
|
-
invariant(
|
|
606
|
-
false,
|
|
607
|
-
'ToolbarAndroid has been removed from React Native. ' +
|
|
608
|
-
"It can now be installed and imported from '@react-native-community/toolbar-android' instead of 'react-native'. " +
|
|
609
|
-
'See https://github.com/react-native-toolbar-android/toolbar-android',
|
|
610
|
-
);
|
|
611
|
-
},
|
|
612
|
-
});
|
|
613
|
-
|
|
614
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
615
|
-
* attempting to access ViewPagerAndroid. */
|
|
616
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
617
|
-
* attempting to access ViewPagerAndroid. */
|
|
618
|
-
Object.defineProperty(module.exports, 'ViewPagerAndroid', {
|
|
619
|
-
configurable: true,
|
|
620
|
-
get() {
|
|
621
|
-
invariant(
|
|
622
|
-
false,
|
|
623
|
-
'ViewPagerAndroid has been removed from React Native. ' +
|
|
624
|
-
"It can now be installed and imported from 'react-native-pager-view' instead of 'react-native'. " +
|
|
625
|
-
'See https://github.com/callstack/react-native-pager-view',
|
|
626
|
-
);
|
|
627
|
-
},
|
|
628
|
-
});
|
|
629
|
-
|
|
630
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
631
|
-
* attempting to access CheckBox. */
|
|
632
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
633
|
-
* attempting to access CheckBox. */
|
|
634
|
-
Object.defineProperty(module.exports, 'CheckBox', {
|
|
635
|
-
configurable: true,
|
|
636
|
-
get() {
|
|
637
|
-
invariant(
|
|
638
|
-
false,
|
|
639
|
-
'CheckBox has been removed from React Native. ' +
|
|
640
|
-
"It can now be installed and imported from '@react-native-community/checkbox' instead of 'react-native'. " +
|
|
641
|
-
'See https://github.com/react-native-checkbox/react-native-checkbox',
|
|
642
|
-
);
|
|
643
|
-
},
|
|
644
|
-
});
|
|
645
|
-
|
|
646
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
647
|
-
* attempting to access SegmentedControlIOS. */
|
|
648
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
649
|
-
* attempting to access SegmentedControlIOS. */
|
|
650
|
-
Object.defineProperty(module.exports, 'SegmentedControlIOS', {
|
|
651
|
-
configurable: true,
|
|
652
|
-
get() {
|
|
653
|
-
invariant(
|
|
654
|
-
false,
|
|
655
|
-
'SegmentedControlIOS has been removed from React Native. ' +
|
|
656
|
-
"It can now be installed and imported from '@react-native-segmented-control/segmented-control' instead of 'react-native'." +
|
|
657
|
-
'See https://github.com/react-native-segmented-control/segmented-control',
|
|
658
|
-
);
|
|
659
|
-
},
|
|
660
|
-
});
|
|
661
|
-
|
|
662
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
663
|
-
* attempting to access StatusBarIOS. */
|
|
664
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
665
|
-
* attempting to access StatusBarIOS. */
|
|
666
|
-
Object.defineProperty(module.exports, 'StatusBarIOS', {
|
|
667
|
-
configurable: true,
|
|
668
|
-
get() {
|
|
669
|
-
invariant(
|
|
670
|
-
false,
|
|
671
|
-
'StatusBarIOS has been removed from React Native. ' +
|
|
672
|
-
'Has been merged with StatusBar. ' +
|
|
673
|
-
'See https://reactnative.dev/docs/statusbar',
|
|
674
|
-
);
|
|
675
|
-
},
|
|
676
|
-
});
|
|
677
|
-
|
|
678
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
679
|
-
* attempting to access PickerIOS. */
|
|
680
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
681
|
-
* attempting to access PickerIOS. */
|
|
682
|
-
Object.defineProperty(module.exports, 'PickerIOS', {
|
|
683
|
-
configurable: true,
|
|
684
|
-
get() {
|
|
685
|
-
invariant(
|
|
686
|
-
false,
|
|
687
|
-
'PickerIOS has been removed from React Native. ' +
|
|
688
|
-
"It can now be installed and imported from '@react-native-picker/picker' instead of 'react-native'. " +
|
|
689
|
-
'See https://github.com/react-native-picker/picker',
|
|
690
|
-
);
|
|
691
|
-
},
|
|
692
|
-
});
|
|
693
|
-
|
|
694
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
695
|
-
* attempting to access Picker. */
|
|
696
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
697
|
-
* attempting to access Picker. */
|
|
698
|
-
Object.defineProperty(module.exports, 'Picker', {
|
|
699
|
-
configurable: true,
|
|
700
|
-
get() {
|
|
701
|
-
invariant(
|
|
702
|
-
false,
|
|
703
|
-
'Picker has been removed from React Native. ' +
|
|
704
|
-
"It can now be installed and imported from '@react-native-picker/picker' instead of 'react-native'. " +
|
|
705
|
-
'See https://github.com/react-native-picker/picker',
|
|
706
|
-
);
|
|
707
|
-
},
|
|
708
|
-
});
|
|
709
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
710
|
-
* attempting to access DatePickerAndroid. */
|
|
711
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
712
|
-
* attempting to access DatePickerAndroid. */
|
|
713
|
-
Object.defineProperty(module.exports, 'DatePickerAndroid', {
|
|
714
|
-
configurable: true,
|
|
715
|
-
get() {
|
|
716
|
-
invariant(
|
|
717
|
-
false,
|
|
718
|
-
'DatePickerAndroid has been removed from React Native. ' +
|
|
719
|
-
"It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. " +
|
|
720
|
-
'See https://github.com/react-native-datetimepicker/datetimepicker',
|
|
721
|
-
);
|
|
722
|
-
},
|
|
723
|
-
});
|
|
724
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
725
|
-
* attempting to access MaskedViewIOS. */
|
|
726
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
727
|
-
* attempting to access MaskedViewIOS. */
|
|
728
|
-
Object.defineProperty(module.exports, 'MaskedViewIOS', {
|
|
729
|
-
configurable: true,
|
|
730
|
-
get() {
|
|
731
|
-
invariant(
|
|
732
|
-
false,
|
|
733
|
-
'MaskedViewIOS has been removed from React Native. ' +
|
|
734
|
-
"It can now be installed and imported from '@react-native-masked-view/masked-view' instead of 'react-native'. " +
|
|
735
|
-
'See https://github.com/react-native-masked-view/masked-view',
|
|
736
|
-
);
|
|
737
|
-
},
|
|
738
|
-
});
|
|
739
450
|
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
740
451
|
* attempting to access AsyncStorage. */
|
|
741
452
|
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|