@office-iss/react-native-win32 0.0.0-canary.291 → 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 +43 -1
- package/CHANGELOG.md +22 -4
- package/Libraries/Alert/RCTAlertManager.js +17 -0
- package/Libraries/Animated/AnimatedEvent.js +4 -3
- package/Libraries/Animated/AnimatedExports.js.flow +2 -0
- package/Libraries/Animated/AnimatedImplementation.js +2 -2
- package/Libraries/Animated/components/AnimatedScrollView.js +48 -43
- package/Libraries/Animated/nodes/AnimatedValue.js +2 -1
- package/Libraries/BatchedBridge/MessageQueue.js +2 -2
- package/Libraries/Blob/FileReader.js +219 -8
- package/Libraries/Blob/URL.js +13 -1
- package/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.js +17 -0
- package/Libraries/Components/Button.js +1 -1
- package/Libraries/Components/Button.win32.js +1 -1
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +1 -3
- package/Libraries/{Utilities/__mocks__/GlobalPerformanceLogger.js → Components/DrawerAndroid/DrawerLayoutAndroid.ios.js} +3 -4
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js +6 -66
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js.flow +18 -0
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidFallback.js +71 -0
- package/Libraries/Components/Keyboard/Keyboard.js +4 -2
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +6 -3
- package/Libraries/Components/Pressable/Pressable.js +6 -1
- package/Libraries/Components/Pressable/Pressable.win32.js +6 -1
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js +12 -2
- package/Libraries/Components/RefreshControl/RefreshControl.js +1 -1
- package/Libraries/Components/ScrollView/ScrollView.d.ts +1 -1
- package/Libraries/Components/ScrollView/ScrollView.js +128 -116
- package/Libraries/Components/StaticRenderer.js +1 -1
- package/Libraries/Components/Switch/Switch.js +7 -3
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +2 -1
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +2 -4
- package/Libraries/Components/TextInput/TextInput.flow.js +59 -42
- package/Libraries/Components/TextInput/TextInput.flow.win32.js +1208 -0
- package/Libraries/Components/TextInput/TextInput.js +67 -1005
- package/Libraries/Components/TextInput/TextInput.win32.js +69 -1037
- package/Libraries/{Blob/__mocks__/BlobModule.js → Components/ToastAndroid/ToastAndroid.ios.js} +3 -6
- package/Libraries/Components/ToastAndroid/ToastAndroid.js +4 -32
- package/Libraries/Components/ToastAndroid/ToastAndroid.js.flow +109 -0
- package/Libraries/Components/ToastAndroid/ToastAndroid.win32.js +4 -32
- package/Libraries/Components/ToastAndroid/ToastAndroidFallback.js +45 -0
- package/Libraries/Components/Touchable/Touchable.js +5 -5
- package/Libraries/Components/Touchable/Touchable.win32.js +5 -5
- package/Libraries/Components/Touchable/TouchableBounce.js +12 -6
- package/Libraries/Components/Touchable/TouchableHighlight.js +9 -6
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +4 -4
- package/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js +4 -4
- package/Libraries/Components/Touchable/TouchableOpacity.js +11 -5
- package/Libraries/Components/View/View.js +18 -21
- package/Libraries/Components/View/View.win32.js +21 -24
- package/Libraries/Components/View/ViewAccessibility.js +7 -0
- package/Libraries/Components/View/ViewAccessibility.win32.js +7 -0
- package/Libraries/Components/View/ViewPropTypes.js +1 -1
- package/Libraries/Components/View/ViewPropTypes.win32.js +1 -1
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Core/setUpReactDevTools.js +5 -5
- package/Libraries/EventEmitter/NativeEventEmitter.js +4 -1
- package/Libraries/Image/Image.js +17 -0
- package/Libraries/Image/Image.js.flow +2 -2
- package/Libraries/Image/ImageInjection.js +1 -1
- package/Libraries/Image/ImageProps.js +5 -5
- package/Libraries/Image/ImageSource.js +3 -1
- package/Libraries/Image/ImageSourceUtils.js +4 -2
- package/Libraries/Image/ImageTypes.flow.js +1 -1
- package/Libraries/Lists/FlatList.d.ts +2 -2
- package/Libraries/Lists/FlatList.js +1 -1
- package/Libraries/Lists/SectionList.js +1 -1
- package/Libraries/Lists/SectionListModern.js +3 -3
- package/Libraries/LogBox/Data/LogBoxData.js +1 -1
- package/Libraries/LogBox/LogBoxNotificationContainer.js +1 -1
- package/Libraries/Modal/Modal.js +3 -3
- package/Libraries/NativeComponent/BaseViewConfig.js +17 -0
- package/Libraries/NativeComponent/PlatformBaseViewConfig.js +2 -2
- package/Libraries/NativeModules/specs/NativeDevMenu.js +2 -2
- package/Libraries/Network/RCTNetworking.js +17 -0
- package/Libraries/Network/XMLHttpRequest.js +781 -10
- package/Libraries/NewAppScreen/components/DebugInstructions.js +1 -1
- package/Libraries/NewAppScreen/components/Header.js +1 -1
- package/Libraries/NewAppScreen/components/HermesBadge.js +1 -1
- package/Libraries/NewAppScreen/components/LearnMoreLinks.js +3 -3
- package/Libraries/NewAppScreen/components/ReloadInstructions.js +1 -1
- package/Libraries/Performance/Systrace.js +7 -7
- package/Libraries/ReactNative/AppContainer-dev.js +3 -2
- package/Libraries/ReactNative/RendererImplementation.js +6 -5
- package/Libraries/ReactNative/renderApplication.js +9 -0
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +2 -2
- 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/Settings/Settings.js +13 -19
- package/Libraries/Settings/Settings.win32.js +19 -20
- package/Libraries/Settings/SettingsFallback.js +33 -0
- package/Libraries/StyleSheet/PlatformColorValueTypes.js +15 -0
- package/Libraries/StyleSheet/Rect.js +1 -0
- package/Libraries/StyleSheet/StyleSheet.js.flow +3 -3
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +1 -1
- package/Libraries/StyleSheet/StyleSheetTypes.js +75 -33
- package/Libraries/StyleSheet/flattenStyle.js +7 -1
- package/Libraries/StyleSheet/processBackgroundImage.js +670 -214
- package/Libraries/Text/Text.js +3 -3
- package/Libraries/Text/Text.win32.js +3 -3
- package/Libraries/Text/TextNativeComponent.js +0 -4
- package/Libraries/Text/TextNativeComponent.win32.js +0 -4
- package/Libraries/Text/TextProps.js +1 -1
- package/Libraries/Text/TextProps.win32.js +1 -1
- package/Libraries/Utilities/Appearance.js +2 -0
- package/Libraries/Utilities/BackHandler.js +17 -0
- package/Libraries/Utilities/Platform.js +17 -0
- package/Libraries/Utilities/PlatformTypes.js +2 -0
- package/Libraries/Utilities/ReactNativeTestTools.js +1 -1
- package/Libraries/WebSocket/WebSocket.js +313 -8
- package/flow/global.js +0 -2
- package/index.js +1 -288
- package/index.win32.js +8 -297
- package/overrides.json +29 -23
- package/package.json +16 -16
- package/src/private/animated/NativeAnimatedHelper.js +1 -1
- package/src/private/animated/NativeAnimatedHelper.win32.js +1 -1
- package/src/private/animated/createAnimatedPropsHook.js +2 -27
- package/src/private/components/{SafeAreaView_INTERNAL_DO_NOT_USE.js → safeareaview/SafeAreaView_INTERNAL_DO_NOT_USE.js} +6 -6
- package/src/private/components/{HScrollViewNativeComponents.js → scrollview/HScrollViewNativeComponents.js} +8 -8
- package/src/private/components/scrollview/VScrollViewNativeComponents.js +25 -0
- package/src/private/{devmenu → devsupport/devmenu}/DevMenu.js +1 -1
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/BorderBox.js +3 -3
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/BoxInspector.js +6 -5
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/ElementBox.js +8 -6
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/ElementProperties.js +11 -10
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/Inspector.js +14 -12
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/InspectorOverlay.js +5 -4
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/InspectorPanel.js +9 -8
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/NetworkOverlay.js +10 -9
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/ReactDevToolsOverlay.js +7 -7
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/StyleInspector.js +7 -6
- 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 +6 -5
- 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 +37 -43
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +8 -8
- package/src/private/renderer/errorhandling/ErrorHandlers.js +2 -2
- package/src/private/specs_DEPRECATED/modules/NativeSampleTurboModule.js +3 -0
- package/src/private/types/HostComponent.js +1 -1
- package/src/private/types/HostInstance.js +12 -4
- package/src/private/webapis/performance/Performance.js +1 -3
- 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/FileReader_new.js +0 -231
- package/Libraries/Blob/FileReader_old.js +0 -186
- 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/Events/CustomEvent.js +0 -32
- package/Libraries/Events/EventPolyfill.js +0 -239
- package/Libraries/Lists/__flowtests__/FlatList-flowtest.js +0 -118
- package/Libraries/Lists/__flowtests__/SectionList-flowtest.js +0 -134
- package/Libraries/Network/XMLHttpRequest_new.js +0 -794
- package/Libraries/Network/XMLHttpRequest_old.js +0 -701
- package/Libraries/StyleSheet/__flowtests__/StyleSheet-flowtest.js +0 -58
- package/Libraries/Utilities/__mocks__/BackHandler.js +0 -45
- package/Libraries/Utilities/__mocks__/PixelRatio.js +0 -25
- package/Libraries/WebSocket/WebSocketEvent.js +0 -30
- package/Libraries/WebSocket/WebSocket_new.js +0 -325
- package/Libraries/WebSocket/WebSocket_old.js +0 -297
- package/Libraries/WebSocket/__mocks__/event-target-shim.js +0 -27
- 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/components/VScrollViewNativeComponents.js +0 -25
- package/src/private/webapis/performance/specs/__mocks__/NativePerformanceMock.js +0 -267
- package/src/types/third_party/event-target-shim.d.ts +0 -392
- /package/src/private/{devmenu → devsupport/devmenu}/DevMenu.d.ts +0 -0
- /package/src/private/{debugging → devsupport/rndevtools}/FuseboxSessionObserver.js +0 -0
|
@@ -358,6 +358,13 @@ export type AccessibilityProps = $ReadOnly<{
|
|
|
358
358
|
*/
|
|
359
359
|
'aria-label'?: ?Stringish,
|
|
360
360
|
|
|
361
|
+
/**
|
|
362
|
+
* Defines the order in which descendant elements receive accessibility focus.
|
|
363
|
+
* The elements in the array represent nativeID values for the respective
|
|
364
|
+
* descendant elements.
|
|
365
|
+
*/
|
|
366
|
+
experimental_accessibilityOrder?: ?Array<string>,
|
|
367
|
+
|
|
361
368
|
/**
|
|
362
369
|
* Indicates to accessibility services to treat UI component like a specific role.
|
|
363
370
|
*/
|
|
@@ -371,6 +371,13 @@ export type AccessibilityProps = $ReadOnly<{
|
|
|
371
371
|
*/
|
|
372
372
|
'aria-label'?: ?Stringish,
|
|
373
373
|
|
|
374
|
+
/**
|
|
375
|
+
* Defines the order in which descendant elements receive accessibility focus.
|
|
376
|
+
* The elements in the array represent nativeID values for the respective
|
|
377
|
+
* descendant elements.
|
|
378
|
+
*/
|
|
379
|
+
experimental_accessibilityOrder?: ?Array<string>,
|
|
380
|
+
|
|
374
381
|
/**
|
|
375
382
|
* Indicates to accessibility services to treat UI component like a specific role.
|
|
376
383
|
*/
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
'use strict';
|
|
12
12
|
|
|
13
|
-
import type {Domain} from '../../src/private/
|
|
14
|
-
import type {Spec as NativeReactDevToolsRuntimeSettingsModuleSpec} from '../../src/private/
|
|
13
|
+
import type {Domain} from '../../src/private/devsupport/rndevtools/setUpFuseboxReactDevToolsDispatcher';
|
|
14
|
+
import type {Spec as NativeReactDevToolsRuntimeSettingsModuleSpec} from '../../src/private/devsupport/rndevtools/specs/NativeReactDevToolsRuntimeSettingsModule';
|
|
15
15
|
|
|
16
16
|
if (__DEV__) {
|
|
17
17
|
if (typeof global.queueMicrotask !== 'function') {
|
|
@@ -31,18 +31,18 @@ if (__DEV__) {
|
|
|
31
31
|
|
|
32
32
|
if (__DEV__) {
|
|
33
33
|
// Register dispatcher on global, which can be used later by Chrome DevTools frontend
|
|
34
|
-
require('../../src/private/
|
|
34
|
+
require('../../src/private/devsupport/rndevtools/setUpFuseboxReactDevToolsDispatcher');
|
|
35
35
|
const {
|
|
36
36
|
initialize,
|
|
37
37
|
connectToDevTools,
|
|
38
38
|
connectWithCustomMessagingProtocol,
|
|
39
39
|
} = require('react-devtools-core');
|
|
40
40
|
|
|
41
|
-
const reactDevToolsSettingsManager = require('../../src/private/
|
|
41
|
+
const reactDevToolsSettingsManager = require('../../src/private/devsupport/rndevtools/ReactDevToolsSettingsManager');
|
|
42
42
|
const serializedHookSettings =
|
|
43
43
|
reactDevToolsSettingsManager.getGlobalHookSettings();
|
|
44
44
|
const maybeReactDevToolsRuntimeSettingsModuleModule =
|
|
45
|
-
require('../../src/private/
|
|
45
|
+
require('../../src/private/devsupport/rndevtools/specs/NativeReactDevToolsRuntimeSettingsModule').default;
|
|
46
46
|
|
|
47
47
|
let hookSettings = null;
|
|
48
48
|
if (serializedHookSettings != null) {
|
|
@@ -24,7 +24,10 @@ interface NativeModule {
|
|
|
24
24
|
removeListeners(count: number): void;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
/** @deprecated Use `EventSubscription` instead. */
|
|
28
|
+
type EmitterSubscription = EventSubscription;
|
|
29
|
+
|
|
30
|
+
export type {EventSubscription, EmitterSubscription};
|
|
28
31
|
/** @deprecated Use `EventSubscription` instead. */
|
|
29
32
|
export type NativeEventSubscription = EventSubscription;
|
|
30
33
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @flow strict-local
|
|
8
|
+
* @format
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
// NOTE: This file supports backwards compatibility of subpath (deep) imports
|
|
12
|
+
// from 'react-native' with platform-specific extensions. It can be deleted
|
|
13
|
+
// once we remove the "./*" mapping from package.json "exports".
|
|
14
|
+
|
|
15
|
+
import Image from './Image';
|
|
16
|
+
|
|
17
|
+
export default Image;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @format
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import type {
|
|
11
|
+
import type {ImageType} from './ImageTypes.flow';
|
|
12
12
|
|
|
13
13
|
export type {
|
|
14
14
|
ImageProgressEventIOS,
|
|
@@ -24,4 +24,4 @@ export type {
|
|
|
24
24
|
|
|
25
25
|
export type {ImageResolvedAssetSource, ImageSize} from './ImageTypes.flow';
|
|
26
26
|
|
|
27
|
-
declare export default
|
|
27
|
+
declare export default ImageType;
|
|
@@ -21,11 +21,11 @@ import type {
|
|
|
21
21
|
LayoutChangeEvent,
|
|
22
22
|
NativeSyntheticEvent,
|
|
23
23
|
} from '../Types/CoreEventTypes';
|
|
24
|
-
import typeof Image from './Image';
|
|
25
24
|
import type {ImageResizeMode} from './ImageResizeMode';
|
|
26
25
|
import type {ImageSource, ImageURISource} from './ImageSource';
|
|
27
|
-
import type
|
|
28
|
-
|
|
26
|
+
import type {ImageType} from './ImageTypes.flow';
|
|
27
|
+
|
|
28
|
+
import * as React from 'react';
|
|
29
29
|
|
|
30
30
|
export type ImageSourcePropType = ImageSource;
|
|
31
31
|
|
|
@@ -128,7 +128,7 @@ export type ImagePropsAndroid = $ReadOnly<{
|
|
|
128
128
|
}>;
|
|
129
129
|
|
|
130
130
|
export type ImagePropsBase = $ReadOnly<{
|
|
131
|
-
|
|
131
|
+
...Omit<ViewProps, 'style'>,
|
|
132
132
|
/**
|
|
133
133
|
* When true, indicates the image is an accessibility element.
|
|
134
134
|
*
|
|
@@ -367,5 +367,5 @@ export type ImageBackgroundProps = $ReadOnly<{
|
|
|
367
367
|
*
|
|
368
368
|
* See https://reactnative.dev/docs/imagebackground#imageref
|
|
369
369
|
*/
|
|
370
|
-
imageRef?: RefSetter<ElementRef<
|
|
370
|
+
imageRef?: React.RefSetter<React.ElementRef<ImageType>>,
|
|
371
371
|
}>;
|
|
@@ -52,14 +52,14 @@ export function getImageSourcesFromImageProps(
|
|
|
52
52
|
// 1x scale is provided in `srcSet` prop so ignore the `src` prop if provided.
|
|
53
53
|
shouldUseSrcForDefaultScale =
|
|
54
54
|
scale === 1 ? false : shouldUseSrcForDefaultScale;
|
|
55
|
-
sourceList.push({headers
|
|
55
|
+
sourceList.push({headers, scale, uri, width, height});
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
|
|
60
60
|
if (shouldUseSrcForDefaultScale && src != null) {
|
|
61
61
|
sourceList.push({
|
|
62
|
-
headers
|
|
62
|
+
headers,
|
|
63
63
|
scale: 1,
|
|
64
64
|
uri: src,
|
|
65
65
|
width,
|
|
@@ -73,6 +73,8 @@ export function getImageSourcesFromImageProps(
|
|
|
73
73
|
sources = sourceList;
|
|
74
74
|
} else if (src != null) {
|
|
75
75
|
sources = [{uri: src, headers: headers, width, height}];
|
|
76
|
+
} else if (source != null && source.uri && Object.keys(headers).length > 0) {
|
|
77
|
+
sources = [{...source, headers}];
|
|
76
78
|
} else {
|
|
77
79
|
sources = source;
|
|
78
80
|
}
|
|
@@ -83,6 +83,6 @@ export type AbstractImageIOS = component(
|
|
|
83
83
|
|
|
84
84
|
export type ImageIOS = AbstractImageIOS & ImageComponentStaticsIOS;
|
|
85
85
|
|
|
86
|
-
export type
|
|
86
|
+
export type ImageType = ImageIOS | ImageAndroid;
|
|
87
87
|
|
|
88
88
|
export type {ImageProps} from './ImageProps';
|
|
@@ -228,8 +228,8 @@ export abstract class FlatListComponent<
|
|
|
228
228
|
* Provides a reference to the underlying host component
|
|
229
229
|
*/
|
|
230
230
|
getNativeScrollRef: () =>
|
|
231
|
-
| React.
|
|
232
|
-
| React.
|
|
231
|
+
| React.ComponentRef<typeof View>
|
|
232
|
+
| React.ComponentRef<typeof ScrollViewComponent>
|
|
233
233
|
| null
|
|
234
234
|
| undefined;
|
|
235
235
|
|
|
@@ -22,7 +22,7 @@ import {type ScrollResponderType} from '../Components/ScrollView/ScrollView';
|
|
|
22
22
|
import View from '../Components/View/View';
|
|
23
23
|
import VirtualizedLists from '@react-native/virtualized-lists';
|
|
24
24
|
import memoizeOne from 'memoize-one';
|
|
25
|
-
import React from 'react';
|
|
25
|
+
import * as React from 'react';
|
|
26
26
|
|
|
27
27
|
const StyleSheet = require('../StyleSheet/StyleSheet').default;
|
|
28
28
|
const deepDiffer = require('../Utilities/differ/deepDiffer').default;
|
|
@@ -170,7 +170,7 @@ export type SectionListProps<ItemT, SectionT = DefaultSectionT> = {
|
|
|
170
170
|
*
|
|
171
171
|
*/
|
|
172
172
|
export default class SectionList<
|
|
173
|
-
ItemT,
|
|
173
|
+
ItemT = any,
|
|
174
174
|
SectionT = DefaultSectionT,
|
|
175
175
|
> extends React.PureComponent<SectionListProps<ItemT, SectionT>> {
|
|
176
176
|
props: SectionListProps<ItemT, SectionT>;
|
|
@@ -17,11 +17,11 @@ import type {
|
|
|
17
17
|
SectionData,
|
|
18
18
|
VirtualizedSectionListProps,
|
|
19
19
|
} from '@react-native/virtualized-lists';
|
|
20
|
-
import type {ElementRef} from 'react';
|
|
21
20
|
|
|
22
21
|
import Platform from '../Utilities/Platform';
|
|
23
22
|
import VirtualizedLists from '@react-native/virtualized-lists';
|
|
24
|
-
import
|
|
23
|
+
import * as React from 'react';
|
|
24
|
+
import {forwardRef, useImperativeHandle, useRef} from 'react';
|
|
25
25
|
|
|
26
26
|
const VirtualizedSectionList = VirtualizedLists.VirtualizedSectionList;
|
|
27
27
|
|
|
@@ -174,7 +174,7 @@ const SectionList: component(
|
|
|
174
174
|
...props,
|
|
175
175
|
};
|
|
176
176
|
|
|
177
|
-
const wrapperRef = useRef<?ElementRef<typeof VirtualizedSectionList>>();
|
|
177
|
+
const wrapperRef = useRef<?React.ElementRef<typeof VirtualizedSectionList>>();
|
|
178
178
|
|
|
179
179
|
useImperativeHandle(
|
|
180
180
|
ref,
|
|
@@ -18,7 +18,7 @@ import type {
|
|
|
18
18
|
Message,
|
|
19
19
|
} from './parseLogBoxLog';
|
|
20
20
|
|
|
21
|
-
import DebuggerSessionObserver from '../../../src/private/
|
|
21
|
+
import DebuggerSessionObserver from '../../../src/private/devsupport/rndevtools/FuseboxSessionObserver';
|
|
22
22
|
import parseErrorStack from '../../Core/Devtools/parseErrorStack';
|
|
23
23
|
import NativeDevSettings from '../../NativeModules/specs/NativeDevSettings';
|
|
24
24
|
import NativeLogBox from '../../NativeModules/specs/NativeLogBox';
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @format
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import SafeAreaView from '../../src/private/components/SafeAreaView_INTERNAL_DO_NOT_USE';
|
|
11
|
+
import SafeAreaView from '../../src/private/components/safeareaview/SafeAreaView_INTERNAL_DO_NOT_USE';
|
|
12
12
|
import View from '../Components/View/View';
|
|
13
13
|
import StyleSheet from '../StyleSheet/StyleSheet';
|
|
14
14
|
import * as LogBoxData from './Data/LogBoxData';
|
package/Libraries/Modal/Modal.js
CHANGED
|
@@ -19,7 +19,7 @@ import {type EventSubscription} from '../vendor/emitter/EventEmitter';
|
|
|
19
19
|
import NativeModalManager from './NativeModalManager';
|
|
20
20
|
import RCTModalHostView from './RCTModalHostViewNativeComponent';
|
|
21
21
|
import VirtualizedLists from '@react-native/virtualized-lists';
|
|
22
|
-
import React from 'react';
|
|
22
|
+
import * as React from 'react';
|
|
23
23
|
|
|
24
24
|
const ScrollView = require('../Components/ScrollView/ScrollView').default;
|
|
25
25
|
const View = require('../Components/View/View').default;
|
|
@@ -197,11 +197,11 @@ function confirmProps(props: ModalProps) {
|
|
|
197
197
|
|
|
198
198
|
// Create a state to track whether the Modal is rendering or not.
|
|
199
199
|
// This is the only prop that controls whether the modal is rendered or not.
|
|
200
|
-
type
|
|
200
|
+
type ModalState = {
|
|
201
201
|
isRendered: boolean,
|
|
202
202
|
};
|
|
203
203
|
|
|
204
|
-
class Modal extends React.Component<ModalProps,
|
|
204
|
+
class Modal extends React.Component<ModalProps, ModalState> {
|
|
205
205
|
static defaultProps: {hardwareAccelerated: boolean, visible: boolean} = {
|
|
206
206
|
visible: true,
|
|
207
207
|
hardwareAccelerated: false,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @flow strict-local
|
|
8
|
+
* @format
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
// NOTE: This file supports backwards compatibility of subpath (deep) imports
|
|
12
|
+
// from 'react-native' with platform-specific extensions. It can be deleted
|
|
13
|
+
// once we remove the "./*" mapping from package.json "exports".
|
|
14
|
+
|
|
15
|
+
import BaseViewConfig from './BaseViewConfig';
|
|
16
|
+
|
|
17
|
+
export default BaseViewConfig;
|
|
@@ -12,9 +12,9 @@ import type {PartialViewConfig} from '../Renderer/shims/ReactNativeTypes';
|
|
|
12
12
|
|
|
13
13
|
import BaseViewConfig from './BaseViewConfig';
|
|
14
14
|
|
|
15
|
-
export type PartialViewConfigWithoutName =
|
|
15
|
+
export type PartialViewConfigWithoutName = Omit<
|
|
16
16
|
PartialViewConfig,
|
|
17
|
-
|
|
17
|
+
'uiViewClassName',
|
|
18
18
|
>;
|
|
19
19
|
|
|
20
20
|
const PlatformBaseViewConfig: PartialViewConfigWithoutName = BaseViewConfig;
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
* @format
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
export * from '../../../src/private/
|
|
12
|
-
import NativeDevMenu from '../../../src/private/
|
|
11
|
+
export * from '../../../src/private/devsupport/devmenu/specs/NativeDevMenu';
|
|
12
|
+
import NativeDevMenu from '../../../src/private/devsupport/devmenu/specs/NativeDevMenu';
|
|
13
13
|
export default NativeDevMenu;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @flow strict-local
|
|
8
|
+
* @format
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
// NOTE: This file supports backwards compatibility of subpath (deep) imports
|
|
12
|
+
// from 'react-native' with platform-specific extensions. It can be deleted
|
|
13
|
+
// once we remove the "./*" mapping from package.json "exports".
|
|
14
|
+
|
|
15
|
+
import RCTNetworking from './RCTNetworking';
|
|
16
|
+
|
|
17
|
+
export default RCTNetworking;
|