@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
|
@@ -10,20 +10,21 @@
|
|
|
10
10
|
|
|
11
11
|
'use strict';
|
|
12
12
|
|
|
13
|
-
import type XMLHttpRequest from '
|
|
13
|
+
import type XMLHttpRequest from '../../../../../Libraries/Network/XMLHttpRequest';
|
|
14
14
|
import type {ListRenderItemInfo} from '@react-native/virtualized-lists';
|
|
15
15
|
|
|
16
|
-
import ScrollView from '
|
|
17
|
-
import React from 'react';
|
|
16
|
+
import ScrollView from '../../../../../Libraries/Components/ScrollView/ScrollView';
|
|
17
|
+
import * as React from 'react';
|
|
18
18
|
|
|
19
19
|
const TouchableHighlight =
|
|
20
|
-
require('
|
|
21
|
-
const View = require('
|
|
22
|
-
const FlatList = require('
|
|
23
|
-
const StyleSheet =
|
|
24
|
-
|
|
20
|
+
require('../../../../../Libraries/Components/Touchable/TouchableHighlight').default;
|
|
21
|
+
const View = require('../../../../../Libraries/Components/View/View').default;
|
|
22
|
+
const FlatList = require('../../../../../Libraries/Lists/FlatList').default;
|
|
23
|
+
const StyleSheet =
|
|
24
|
+
require('../../../../../Libraries/StyleSheet/StyleSheet').default;
|
|
25
|
+
const Text = require('../../../../../Libraries/Text/Text').default;
|
|
25
26
|
const WebSocketInterceptor =
|
|
26
|
-
require('
|
|
27
|
+
require('../../../../../Libraries/WebSocket/WebSocketInterceptor').default;
|
|
27
28
|
const XHRInterceptor = require('./XHRInterceptor').default;
|
|
28
29
|
|
|
29
30
|
const LISTVIEW_CELL_HEIGHT = 15;
|
package/src/private/{inspector → devsupport/devmenu/elementinspector}/ReactDevToolsOverlay.js
RENAMED
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
* @flow
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import type {InspectedViewRef} from '
|
|
12
|
-
import type {PointerEvent} from '
|
|
13
|
-
import type {GestureResponderEvent} from '
|
|
14
|
-
import type {ReactDevToolsAgent} from '
|
|
11
|
+
import type {InspectedViewRef} from '../../../../../Libraries/ReactNative/AppContainer-dev';
|
|
12
|
+
import type {PointerEvent} from '../../../../../Libraries/Types/CoreEventTypes';
|
|
13
|
+
import type {GestureResponderEvent} from '../../../../../Libraries/Types/CoreEventTypes';
|
|
14
|
+
import type {ReactDevToolsAgent} from '../../../../../Libraries/Types/ReactDevToolsTypes';
|
|
15
15
|
import type {InspectedElement} from './Inspector';
|
|
16
16
|
|
|
17
|
-
import View from '
|
|
18
|
-
import ReactNativeFeatureFlags from '
|
|
19
|
-
import StyleSheet from '
|
|
17
|
+
import View from '../../../../../Libraries/Components/View/View';
|
|
18
|
+
import ReactNativeFeatureFlags from '../../../../../Libraries/ReactNative/ReactNativeFeatureFlags';
|
|
19
|
+
import StyleSheet from '../../../../../Libraries/StyleSheet/StyleSheet';
|
|
20
20
|
import ElementBox from './ElementBox';
|
|
21
21
|
import * as React from 'react';
|
|
22
22
|
|
|
@@ -10,14 +10,15 @@
|
|
|
10
10
|
|
|
11
11
|
'use strict';
|
|
12
12
|
|
|
13
|
-
import type {ViewStyleProp} from '
|
|
14
|
-
import type {____FlattenStyleProp_Internal} from '
|
|
13
|
+
import type {ViewStyleProp} from '../../../../../Libraries/StyleSheet/StyleSheet';
|
|
14
|
+
import type {____FlattenStyleProp_Internal} from '../../../../../Libraries/StyleSheet/StyleSheetTypes';
|
|
15
15
|
|
|
16
|
-
import React from 'react';
|
|
16
|
+
import * as React from 'react';
|
|
17
17
|
|
|
18
|
-
const View = require('
|
|
19
|
-
const StyleSheet =
|
|
20
|
-
|
|
18
|
+
const View = require('../../../../../Libraries/Components/View/View').default;
|
|
19
|
+
const StyleSheet =
|
|
20
|
+
require('../../../../../Libraries/StyleSheet/StyleSheet').default;
|
|
21
|
+
const Text = require('../../../../../Libraries/Text/Text').default;
|
|
21
22
|
|
|
22
23
|
type Props = $ReadOnly<{
|
|
23
24
|
style?: ?____FlattenStyleProp_Internal<ViewStyleProp>,
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
|
|
11
11
|
'use strict';
|
|
12
12
|
|
|
13
|
-
import typeof XMLHttpRequestT from '
|
|
13
|
+
import typeof XMLHttpRequestT from '../../../../../Libraries/Network/XMLHttpRequest';
|
|
14
14
|
|
|
15
15
|
const XMLHttpRequest: XMLHttpRequestT =
|
|
16
|
-
require('
|
|
16
|
+
require('../../../../../Libraries/Network/XMLHttpRequest').default;
|
|
17
17
|
// $FlowFixMe[method-unbinding]
|
|
18
18
|
const originalXHROpen = XMLHttpRequest.prototype.open;
|
|
19
19
|
// $FlowFixMe[method-unbinding]
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* @flow
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import type {TouchedViewDataAtPoint} from '
|
|
12
|
-
import type {HostInstance} from '
|
|
11
|
+
import type {TouchedViewDataAtPoint} from '../../../../../Libraries/Renderer/shims/ReactNativeTypes';
|
|
12
|
+
import type {HostInstance} from '../../../types/HostInstance';
|
|
13
13
|
|
|
14
14
|
const invariant = require('invariant');
|
|
15
15
|
|
|
@@ -10,13 +10,14 @@
|
|
|
10
10
|
|
|
11
11
|
'use strict';
|
|
12
12
|
|
|
13
|
-
import React from 'react';
|
|
13
|
+
import * as React from 'react';
|
|
14
14
|
|
|
15
|
-
const View = require('
|
|
16
|
-
const StyleSheet =
|
|
17
|
-
|
|
15
|
+
const View = require('../../../../../Libraries/Components/View/View').default;
|
|
16
|
+
const StyleSheet =
|
|
17
|
+
require('../../../../../Libraries/StyleSheet/StyleSheet').default;
|
|
18
|
+
const Text = require('../../../../../Libraries/Text/Text').default;
|
|
18
19
|
const PerformanceLogger =
|
|
19
|
-
require('
|
|
20
|
+
require('../../../../../Libraries/Utilities/GlobalPerformanceLogger').default;
|
|
20
21
|
|
|
21
22
|
class PerformanceOverlay extends React.Component<{...}> {
|
|
22
23
|
render(): React.Node {
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* @format
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import type {TurboModule} from '
|
|
11
|
+
import type {TurboModule} from '../../../../../Libraries/TurboModule/RCTExport';
|
|
12
12
|
|
|
13
|
-
import * as TurboModuleRegistry from '
|
|
13
|
+
import * as TurboModuleRegistry from '../../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
14
14
|
|
|
15
15
|
export interface Spec extends TurboModule {
|
|
16
16
|
+show: () => void;
|
package/src/private/{debugging → devsupport/rndevtools}/ReactDevToolsSettingsManager.android.js
RENAMED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @format
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import NativeReactDevToolsSettingsManager from '
|
|
11
|
+
import NativeReactDevToolsSettingsManager from './specs/NativeReactDevToolsSettingsManager';
|
|
12
12
|
|
|
13
13
|
module.exports = {
|
|
14
14
|
setGlobalHookSettings(settings: string) {
|
package/src/private/{debugging → devsupport/rndevtools}/ReactDevToolsSettingsManager.win32.js
RENAMED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @format
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import NativeReactDevToolsSettingsManager from '
|
|
11
|
+
import NativeReactDevToolsSettingsManager from './specs/NativeReactDevToolsSettingsManager';
|
|
12
12
|
|
|
13
13
|
module.exports = {
|
|
14
14
|
setGlobalHookSettings(settings: string) {
|
package/src/private/{debugging → devsupport/rndevtools}/setUpFuseboxReactDevToolsDispatcher.js
RENAMED
|
@@ -66,7 +66,7 @@ export class Domain {
|
|
|
66
66
|
* Globally bound object providing a hook for React DevTools runtime API calls
|
|
67
67
|
* over CDP.
|
|
68
68
|
*
|
|
69
|
-
* @see {@link ./__docs__/FuseboxReactDevToolsDispatcher.excalidraw
|
|
69
|
+
* @see {@link ./__docs__/FuseboxReactDevToolsDispatcher.excalidraw.svg}
|
|
70
70
|
*/
|
|
71
71
|
class FuseboxReactDevToolsDispatcher {
|
|
72
72
|
static #domainNameToDomainMap: Map<DomainName, Domain> = new Map();
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* @oncall react_native
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import type {TurboModule} from '
|
|
12
|
+
import type {TurboModule} from '../../../../../Libraries/TurboModule/RCTExport';
|
|
13
13
|
|
|
14
|
-
import * as TurboModuleRegistry from '
|
|
14
|
+
import * as TurboModuleRegistry from '../../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
15
15
|
|
|
16
16
|
export type ReloadAndProfileConfig = {
|
|
17
17
|
shouldReloadAndProfile: boolean,
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* @format
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import type {TurboModule} from '
|
|
11
|
+
import type {TurboModule} from '../../../../../Libraries/TurboModule/RCTExport';
|
|
12
12
|
|
|
13
|
-
import * as TurboModuleRegistry from '
|
|
13
|
+
import * as TurboModuleRegistry from '../../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
14
14
|
|
|
15
15
|
export interface Spec extends TurboModule {
|
|
16
16
|
+setGlobalHookSettings: (settings: string) => void;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
|
-
* @generated SignedSource<<
|
|
7
|
+
* @generated SignedSource<<074f41df4d09a9053b71cf4255b144a5>>
|
|
8
8
|
* @flow strict
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -30,7 +30,6 @@ export type ReactNativeFeatureFlagsJsOnly = $ReadOnly<{
|
|
|
30
30
|
jsOnlyTestFlag: Getter<boolean>,
|
|
31
31
|
animatedShouldDebounceQueueFlush: Getter<boolean>,
|
|
32
32
|
animatedShouldUseSingleOp: Getter<boolean>,
|
|
33
|
-
avoidAnimatedRefInvalidation: Getter<boolean>,
|
|
34
33
|
avoidStateUpdateInAnimatedPropsMemo: Getter<boolean>,
|
|
35
34
|
disableInteractionManager: Getter<boolean>,
|
|
36
35
|
enableAccessToHostTreeInFabric: Getter<boolean>,
|
|
@@ -50,43 +49,43 @@ export type ReactNativeFeatureFlags = $ReadOnly<{
|
|
|
50
49
|
commonTestFlagWithoutNativeImplementation: Getter<boolean>,
|
|
51
50
|
animatedShouldSignalBatch: Getter<boolean>,
|
|
52
51
|
cxxNativeAnimatedEnabled: Getter<boolean>,
|
|
52
|
+
disableMainQueueSyncDispatchIOS: Getter<boolean>,
|
|
53
53
|
disableMountItemReorderingAndroid: Getter<boolean>,
|
|
54
|
+
enableAccessibilityOrder: Getter<boolean>,
|
|
54
55
|
enableAccumulatedUpdatesInRawPropsAndroid: Getter<boolean>,
|
|
55
56
|
enableBridgelessArchitecture: Getter<boolean>,
|
|
56
57
|
enableCppPropsIteratorSetter: Getter<boolean>,
|
|
58
|
+
enableCustomFocusSearchOnClippedElementsAndroid: Getter<boolean>,
|
|
57
59
|
enableEagerRootViewAttachment: Getter<boolean>,
|
|
58
60
|
enableFabricLogs: Getter<boolean>,
|
|
59
61
|
enableFabricRenderer: Getter<boolean>,
|
|
62
|
+
enableFixForParentTagDuringReparenting: Getter<boolean>,
|
|
63
|
+
enableFontScaleChangesUpdatingLayout: Getter<boolean>,
|
|
60
64
|
enableIOSViewClipToPaddingBox: Getter<boolean>,
|
|
61
|
-
enableImagePrefetchingAndroid: Getter<boolean>,
|
|
62
65
|
enableJSRuntimeGCOnMemoryPressureOnIOS: Getter<boolean>,
|
|
63
66
|
enableLayoutAnimationsOnAndroid: Getter<boolean>,
|
|
64
67
|
enableLayoutAnimationsOnIOS: Getter<boolean>,
|
|
65
|
-
enableLongTaskAPI: Getter<boolean>,
|
|
66
68
|
enableMainQueueModulesOnIOS: Getter<boolean>,
|
|
67
69
|
enableNativeCSSParsing: Getter<boolean>,
|
|
68
70
|
enableNewBackgroundAndBorderDrawables: Getter<boolean>,
|
|
69
71
|
enablePropsUpdateReconciliationAndroid: Getter<boolean>,
|
|
70
|
-
enableReportEventPaintTime: Getter<boolean>,
|
|
71
72
|
enableSynchronousStateUpdates: Getter<boolean>,
|
|
72
|
-
enableUIConsistency: Getter<boolean>,
|
|
73
73
|
enableViewCulling: Getter<boolean>,
|
|
74
74
|
enableViewRecycling: Getter<boolean>,
|
|
75
75
|
enableViewRecyclingForText: Getter<boolean>,
|
|
76
76
|
enableViewRecyclingForView: Getter<boolean>,
|
|
77
77
|
fixMappingOfEventPrioritiesBetweenFabricAndReact: Getter<boolean>,
|
|
78
|
-
fixMountingCoordinatorReportedPendingTransactionsOnAndroid: Getter<boolean>,
|
|
79
78
|
fuseboxEnabledRelease: Getter<boolean>,
|
|
80
79
|
fuseboxNetworkInspectionEnabled: Getter<boolean>,
|
|
81
|
-
removeTurboModuleManagerDelegateMutex: Getter<boolean>,
|
|
82
|
-
throwExceptionInsteadOfDeadlockOnTurboModuleSetupDuringSyncRenderIOS: Getter<boolean>,
|
|
83
80
|
traceTurboModulePromiseRejectionsOnAndroid: Getter<boolean>,
|
|
81
|
+
updateRuntimeShadowNodeReferencesOnCommit: Getter<boolean>,
|
|
84
82
|
useAlwaysAvailableJSErrorHandling: Getter<boolean>,
|
|
85
83
|
useEditTextStockAndroidFocusBehavior: Getter<boolean>,
|
|
86
84
|
useFabricInterop: Getter<boolean>,
|
|
87
85
|
useNativeViewConfigsInBridgelessMode: Getter<boolean>,
|
|
88
86
|
useOptimizedEventBatchingOnAndroid: Getter<boolean>,
|
|
89
87
|
useRawPropsJsiValue: Getter<boolean>,
|
|
88
|
+
useShadowNodeStateOnClone: Getter<boolean>,
|
|
90
89
|
useTurboModuleInterop: Getter<boolean>,
|
|
91
90
|
useTurboModules: Getter<boolean>,
|
|
92
91
|
}>;
|
|
@@ -106,11 +105,6 @@ export const animatedShouldDebounceQueueFlush: Getter<boolean> = createJavaScrip
|
|
|
106
105
|
*/
|
|
107
106
|
export const animatedShouldUseSingleOp: Getter<boolean> = createJavaScriptFlagGetter('animatedShouldUseSingleOp', false);
|
|
108
107
|
|
|
109
|
-
/**
|
|
110
|
-
* Changes `useAnimatedProps` to avoid invalidating the callback ref whenever `props` changes.
|
|
111
|
-
*/
|
|
112
|
-
export const avoidAnimatedRefInvalidation: Getter<boolean> = createJavaScriptFlagGetter('avoidAnimatedRefInvalidation', false);
|
|
113
|
-
|
|
114
108
|
/**
|
|
115
109
|
* Changes `useAnimatedPropsMemo` to avoid state updates to invalidate the cached `AnimatedProps`.
|
|
116
110
|
*/
|
|
@@ -172,10 +166,18 @@ export const animatedShouldSignalBatch: Getter<boolean> = createNativeFlagGetter
|
|
|
172
166
|
* Use a C++ implementation of Native Animated instead of the platform implementation.
|
|
173
167
|
*/
|
|
174
168
|
export const cxxNativeAnimatedEnabled: Getter<boolean> = createNativeFlagGetter('cxxNativeAnimatedEnabled', false);
|
|
169
|
+
/**
|
|
170
|
+
* Disable sync dispatch on the main queue on iOS
|
|
171
|
+
*/
|
|
172
|
+
export const disableMainQueueSyncDispatchIOS: Getter<boolean> = createNativeFlagGetter('disableMainQueueSyncDispatchIOS', false);
|
|
175
173
|
/**
|
|
176
174
|
* Prevent FabricMountingManager from reordering mountItems, which may lead to invalid state on the UI thread
|
|
177
175
|
*/
|
|
178
176
|
export const disableMountItemReorderingAndroid: Getter<boolean> = createNativeFlagGetter('disableMountItemReorderingAndroid', false);
|
|
177
|
+
/**
|
|
178
|
+
* When enabled, the accessibilityOrder prop will propagate to native platforms and define the accessibility order.
|
|
179
|
+
*/
|
|
180
|
+
export const enableAccessibilityOrder: Getter<boolean> = createNativeFlagGetter('enableAccessibilityOrder', false);
|
|
179
181
|
/**
|
|
180
182
|
* When enabled, Android will accumulate updates in rawProps to reduce the number of mounting instructions for cascading re-renders.
|
|
181
183
|
*/
|
|
@@ -188,6 +190,10 @@ export const enableBridgelessArchitecture: Getter<boolean> = createNativeFlagGet
|
|
|
188
190
|
* Enable prop iterator setter-style construction of Props in C++ (this flag is not used in Java).
|
|
189
191
|
*/
|
|
190
192
|
export const enableCppPropsIteratorSetter: Getter<boolean> = createNativeFlagGetter('enableCppPropsIteratorSetter', false);
|
|
193
|
+
/**
|
|
194
|
+
* This enables the fabric implementation of focus search so that we can focus clipped elements
|
|
195
|
+
*/
|
|
196
|
+
export const enableCustomFocusSearchOnClippedElementsAndroid: Getter<boolean> = createNativeFlagGetter('enableCustomFocusSearchOnClippedElementsAndroid', true);
|
|
191
197
|
/**
|
|
192
198
|
* Feature flag to configure eager attachment of the root view/initialisation of the JS code.
|
|
193
199
|
*/
|
|
@@ -201,13 +207,17 @@ export const enableFabricLogs: Getter<boolean> = createNativeFlagGetter('enableF
|
|
|
201
207
|
*/
|
|
202
208
|
export const enableFabricRenderer: Getter<boolean> = createNativeFlagGetter('enableFabricRenderer', false);
|
|
203
209
|
/**
|
|
204
|
-
*
|
|
210
|
+
* This feature flag enables a fix for reparenting fix in differentiator
|
|
205
211
|
*/
|
|
206
|
-
export const
|
|
212
|
+
export const enableFixForParentTagDuringReparenting: Getter<boolean> = createNativeFlagGetter('enableFixForParentTagDuringReparenting', false);
|
|
213
|
+
/**
|
|
214
|
+
* Enables font scale changes updating layout for measurable nodes.
|
|
215
|
+
*/
|
|
216
|
+
export const enableFontScaleChangesUpdatingLayout: Getter<boolean> = createNativeFlagGetter('enableFontScaleChangesUpdatingLayout', false);
|
|
207
217
|
/**
|
|
208
|
-
*
|
|
218
|
+
* iOS Views will clip to their padding box vs border box
|
|
209
219
|
*/
|
|
210
|
-
export const
|
|
220
|
+
export const enableIOSViewClipToPaddingBox: Getter<boolean> = createNativeFlagGetter('enableIOSViewClipToPaddingBox', false);
|
|
211
221
|
/**
|
|
212
222
|
* Trigger JS runtime GC on memory pressure event on iOS
|
|
213
223
|
*/
|
|
@@ -220,10 +230,6 @@ export const enableLayoutAnimationsOnAndroid: Getter<boolean> = createNativeFlag
|
|
|
220
230
|
* When enabled, LayoutAnimations API will animate state changes on iOS.
|
|
221
231
|
*/
|
|
222
232
|
export const enableLayoutAnimationsOnIOS: Getter<boolean> = createNativeFlagGetter('enableLayoutAnimationsOnIOS', true);
|
|
223
|
-
/**
|
|
224
|
-
* Enables the reporting of long tasks through `PerformanceObserver`. Only works if the event loop is enabled.
|
|
225
|
-
*/
|
|
226
|
-
export const enableLongTaskAPI: Getter<boolean> = createNativeFlagGetter('enableLongTaskAPI', false);
|
|
227
233
|
/**
|
|
228
234
|
* Makes modules requiring main queue setup initialize on the main thread, during React Native init.
|
|
229
235
|
*/
|
|
@@ -235,23 +241,15 @@ export const enableNativeCSSParsing: Getter<boolean> = createNativeFlagGetter('e
|
|
|
235
241
|
/**
|
|
236
242
|
* Use BackgroundDrawable and BorderDrawable instead of CSSBackgroundDrawable
|
|
237
243
|
*/
|
|
238
|
-
export const enableNewBackgroundAndBorderDrawables: Getter<boolean> = createNativeFlagGetter('enableNewBackgroundAndBorderDrawables',
|
|
244
|
+
export const enableNewBackgroundAndBorderDrawables: Getter<boolean> = createNativeFlagGetter('enableNewBackgroundAndBorderDrawables', true);
|
|
239
245
|
/**
|
|
240
246
|
* When enabled, Android will receive prop updates based on the differences between the last rendered shadow node and the last committed shadow node.
|
|
241
247
|
*/
|
|
242
248
|
export const enablePropsUpdateReconciliationAndroid: Getter<boolean> = createNativeFlagGetter('enablePropsUpdateReconciliationAndroid', false);
|
|
243
|
-
/**
|
|
244
|
-
* Report paint time inside the Event Timing API implementation (PerformanceObserver).
|
|
245
|
-
*/
|
|
246
|
-
export const enableReportEventPaintTime: Getter<boolean> = createNativeFlagGetter('enableReportEventPaintTime', false);
|
|
247
249
|
/**
|
|
248
250
|
* Dispatches state updates synchronously in Fabric (e.g.: updates the scroll position in the shadow tree synchronously from the main thread).
|
|
249
251
|
*/
|
|
250
252
|
export const enableSynchronousStateUpdates: Getter<boolean> = createNativeFlagGetter('enableSynchronousStateUpdates', false);
|
|
251
|
-
/**
|
|
252
|
-
* Ensures that JavaScript always has a consistent view of the state of the UI (e.g.: commits done in other threads are not immediately propagated to JS during its execution).
|
|
253
|
-
*/
|
|
254
|
-
export const enableUIConsistency: Getter<boolean> = createNativeFlagGetter('enableUIConsistency', false);
|
|
255
253
|
/**
|
|
256
254
|
* Enables View Culling: as soon as a view goes off screen, it can be reused anywhere in the UI and pieced together with other items to create new UI elements.
|
|
257
255
|
*/
|
|
@@ -272,10 +270,6 @@ export const enableViewRecyclingForView: Getter<boolean> = createNativeFlagGette
|
|
|
272
270
|
* Uses the default event priority instead of the discreet event priority by default when dispatching events from Fabric to React.
|
|
273
271
|
*/
|
|
274
272
|
export const fixMappingOfEventPrioritiesBetweenFabricAndReact: Getter<boolean> = createNativeFlagGetter('fixMappingOfEventPrioritiesBetweenFabricAndReact', false);
|
|
275
|
-
/**
|
|
276
|
-
* Fixes a limitation on Android where the mounting coordinator would report there are no pending transactions but some of them were actually not processed due to the use of the push model.
|
|
277
|
-
*/
|
|
278
|
-
export const fixMountingCoordinatorReportedPendingTransactionsOnAndroid: Getter<boolean> = createNativeFlagGetter('fixMountingCoordinatorReportedPendingTransactionsOnAndroid', false);
|
|
279
273
|
/**
|
|
280
274
|
* Flag determining if the React Native DevTools (Fusebox) CDP backend should be enabled in release builds. This flag is global and should not be changed across React Host lifetimes.
|
|
281
275
|
*/
|
|
@@ -284,18 +278,14 @@ export const fuseboxEnabledRelease: Getter<boolean> = createNativeFlagGetter('fu
|
|
|
284
278
|
* Enable network inspection support in the React Native DevTools CDP backend. Requires `enableBridgelessArchitecture`. This flag is global and should not be changed across React Host lifetimes.
|
|
285
279
|
*/
|
|
286
280
|
export const fuseboxNetworkInspectionEnabled: Getter<boolean> = createNativeFlagGetter('fuseboxNetworkInspectionEnabled', false);
|
|
287
|
-
/**
|
|
288
|
-
* When enabled, mutex _turboModuleManagerDelegateMutex in RCTTurboModuleManager will not be used
|
|
289
|
-
*/
|
|
290
|
-
export const removeTurboModuleManagerDelegateMutex: Getter<boolean> = createNativeFlagGetter('removeTurboModuleManagerDelegateMutex', false);
|
|
291
|
-
/**
|
|
292
|
-
* Throw an exception instead of deadlocking when a TurboModule that requires main queue setup is initialized during a synchronous render on iOS.
|
|
293
|
-
*/
|
|
294
|
-
export const throwExceptionInsteadOfDeadlockOnTurboModuleSetupDuringSyncRenderIOS: Getter<boolean> = createNativeFlagGetter('throwExceptionInsteadOfDeadlockOnTurboModuleSetupDuringSyncRenderIOS', false);
|
|
295
281
|
/**
|
|
296
282
|
* Enables storing js caller stack when creating promise in native module. This is useful in case of Promise rejection and tracing the cause.
|
|
297
283
|
*/
|
|
298
284
|
export const traceTurboModulePromiseRejectionsOnAndroid: Getter<boolean> = createNativeFlagGetter('traceTurboModulePromiseRejectionsOnAndroid', false);
|
|
285
|
+
/**
|
|
286
|
+
* When enabled, runtime shadow node references will be updated during the commit. This allows running RSNRU from any thread without corrupting the renderer state.
|
|
287
|
+
*/
|
|
288
|
+
export const updateRuntimeShadowNodeReferencesOnCommit: Getter<boolean> = createNativeFlagGetter('updateRuntimeShadowNodeReferencesOnCommit', false);
|
|
299
289
|
/**
|
|
300
290
|
* In Bridgeless mode, use the always available javascript error reporting pipeline.
|
|
301
291
|
*/
|
|
@@ -320,6 +310,10 @@ export const useOptimizedEventBatchingOnAndroid: Getter<boolean> = createNativeF
|
|
|
320
310
|
* Instead of using folly::dynamic as internal representation in RawProps and RawValue, use jsi::Value
|
|
321
311
|
*/
|
|
322
312
|
export const useRawPropsJsiValue: Getter<boolean> = createNativeFlagGetter('useRawPropsJsiValue', false);
|
|
313
|
+
/**
|
|
314
|
+
* Use the state stored on the source shadow node when cloning it instead of reading in the most recent state on the shadow node family.
|
|
315
|
+
*/
|
|
316
|
+
export const useShadowNodeStateOnClone: Getter<boolean> = createNativeFlagGetter('useShadowNodeStateOnClone', false);
|
|
323
317
|
/**
|
|
324
318
|
* In Bridgeless mode, should legacy NativeModules use the TurboModule system?
|
|
325
319
|
*/
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
|
-
* @generated SignedSource<<
|
|
7
|
+
* @generated SignedSource<<e0337d40c3467e2e65e4c2bd27519f9a>>
|
|
8
8
|
* @flow strict
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -27,43 +27,43 @@ export interface Spec extends TurboModule {
|
|
|
27
27
|
+commonTestFlagWithoutNativeImplementation?: () => boolean;
|
|
28
28
|
+animatedShouldSignalBatch?: () => boolean;
|
|
29
29
|
+cxxNativeAnimatedEnabled?: () => boolean;
|
|
30
|
+
+disableMainQueueSyncDispatchIOS?: () => boolean;
|
|
30
31
|
+disableMountItemReorderingAndroid?: () => boolean;
|
|
32
|
+
+enableAccessibilityOrder?: () => boolean;
|
|
31
33
|
+enableAccumulatedUpdatesInRawPropsAndroid?: () => boolean;
|
|
32
34
|
+enableBridgelessArchitecture?: () => boolean;
|
|
33
35
|
+enableCppPropsIteratorSetter?: () => boolean;
|
|
36
|
+
+enableCustomFocusSearchOnClippedElementsAndroid?: () => boolean;
|
|
34
37
|
+enableEagerRootViewAttachment?: () => boolean;
|
|
35
38
|
+enableFabricLogs?: () => boolean;
|
|
36
39
|
+enableFabricRenderer?: () => boolean;
|
|
40
|
+
+enableFixForParentTagDuringReparenting?: () => boolean;
|
|
41
|
+
+enableFontScaleChangesUpdatingLayout?: () => boolean;
|
|
37
42
|
+enableIOSViewClipToPaddingBox?: () => boolean;
|
|
38
|
-
+enableImagePrefetchingAndroid?: () => boolean;
|
|
39
43
|
+enableJSRuntimeGCOnMemoryPressureOnIOS?: () => boolean;
|
|
40
44
|
+enableLayoutAnimationsOnAndroid?: () => boolean;
|
|
41
45
|
+enableLayoutAnimationsOnIOS?: () => boolean;
|
|
42
|
-
+enableLongTaskAPI?: () => boolean;
|
|
43
46
|
+enableMainQueueModulesOnIOS?: () => boolean;
|
|
44
47
|
+enableNativeCSSParsing?: () => boolean;
|
|
45
48
|
+enableNewBackgroundAndBorderDrawables?: () => boolean;
|
|
46
49
|
+enablePropsUpdateReconciliationAndroid?: () => boolean;
|
|
47
|
-
+enableReportEventPaintTime?: () => boolean;
|
|
48
50
|
+enableSynchronousStateUpdates?: () => boolean;
|
|
49
|
-
+enableUIConsistency?: () => boolean;
|
|
50
51
|
+enableViewCulling?: () => boolean;
|
|
51
52
|
+enableViewRecycling?: () => boolean;
|
|
52
53
|
+enableViewRecyclingForText?: () => boolean;
|
|
53
54
|
+enableViewRecyclingForView?: () => boolean;
|
|
54
55
|
+fixMappingOfEventPrioritiesBetweenFabricAndReact?: () => boolean;
|
|
55
|
-
+fixMountingCoordinatorReportedPendingTransactionsOnAndroid?: () => boolean;
|
|
56
56
|
+fuseboxEnabledRelease?: () => boolean;
|
|
57
57
|
+fuseboxNetworkInspectionEnabled?: () => boolean;
|
|
58
|
-
+removeTurboModuleManagerDelegateMutex?: () => boolean;
|
|
59
|
-
+throwExceptionInsteadOfDeadlockOnTurboModuleSetupDuringSyncRenderIOS?: () => boolean;
|
|
60
58
|
+traceTurboModulePromiseRejectionsOnAndroid?: () => boolean;
|
|
59
|
+
+updateRuntimeShadowNodeReferencesOnCommit?: () => boolean;
|
|
61
60
|
+useAlwaysAvailableJSErrorHandling?: () => boolean;
|
|
62
61
|
+useEditTextStockAndroidFocusBehavior?: () => boolean;
|
|
63
62
|
+useFabricInterop?: () => boolean;
|
|
64
63
|
+useNativeViewConfigsInBridgelessMode?: () => boolean;
|
|
65
64
|
+useOptimizedEventBatchingOnAndroid?: () => boolean;
|
|
66
65
|
+useRawPropsJsiValue?: () => boolean;
|
|
66
|
+
+useShadowNodeStateOnClone?: () => boolean;
|
|
67
67
|
+useTurboModuleInterop?: () => boolean;
|
|
68
68
|
+useTurboModules?: () => boolean;
|
|
69
69
|
}
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import type {ExtendedError} from '../../../../Libraries/Core/ExtendedError';
|
|
12
|
-
import type {Component as ReactComponent} from 'react';
|
|
13
12
|
|
|
14
13
|
import ExceptionsManager, {
|
|
15
14
|
SyntheticError,
|
|
16
15
|
} from '../../../../Libraries/Core/ExceptionsManager';
|
|
16
|
+
import * as React from 'react';
|
|
17
17
|
|
|
18
18
|
type ErrorInfo = {
|
|
19
19
|
+componentStack?: ?string,
|
|
20
20
|
// $FlowFixMe[unclear-type] unknown props and state.
|
|
21
|
-
+errorBoundary?: ?
|
|
21
|
+
+errorBoundary?: ?React.Component<any, any>,
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
function getExtendedError(
|
|
@@ -59,6 +59,9 @@ export interface Spec extends TurboModule {
|
|
|
59
59
|
+voidFuncAssert?: () => void;
|
|
60
60
|
+getObjectAssert?: (arg: Object) => Object;
|
|
61
61
|
+promiseAssert?: () => Promise<void>;
|
|
62
|
+
|
|
63
|
+
// Android-only
|
|
64
|
+
+getImageUrl?: () => Promise<string | null>;
|
|
62
65
|
}
|
|
63
66
|
|
|
64
67
|
export default (TurboModuleRegistry.getEnforcing<Spec>(
|
|
@@ -38,10 +38,10 @@ export type MeasureLayoutOnSuccessCallback = (
|
|
|
38
38
|
* The methods described here are available on most of the default components provided by React Native.
|
|
39
39
|
* Note, however, that they are not available on composite components that aren't directly backed by a
|
|
40
40
|
* native view. This will generally include most components that you define in your own app.
|
|
41
|
-
* For more information, see [Direct Manipulation](https://reactnative.dev/docs/direct-manipulation).
|
|
41
|
+
* For more information, see [Direct Manipulation](https://reactnative.dev/docs/the-new-architecture/direct-manipulation-new-architecture).
|
|
42
42
|
* @see https://github.com/facebook/react-native/blob/master/Libraries/Renderer/shims/ReactNativeTypes.js#L87
|
|
43
43
|
*/
|
|
44
|
-
export interface
|
|
44
|
+
export interface LegacyHostInstanceMethods {
|
|
45
45
|
/**
|
|
46
46
|
* Removes focus from an input or view. This is the opposite of `focus()`.
|
|
47
47
|
*/
|
|
@@ -100,9 +100,17 @@ export interface NativeMethods {
|
|
|
100
100
|
* This function sends props straight to native. They will not participate in
|
|
101
101
|
* future diff process - this means that if you do not include them in the
|
|
102
102
|
* next render, they will remain active (see [Direct
|
|
103
|
-
* Manipulation](https://reactnative.dev/docs/direct-manipulation)).
|
|
103
|
+
* Manipulation](https://reactnative.dev/docs/the-new-architecture/direct-manipulation-new-architecture)).
|
|
104
104
|
*/
|
|
105
105
|
setNativeProps(nativeProps: {...}): void;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
export type HostInstance =
|
|
108
|
+
export type HostInstance = LegacyHostInstanceMethods;
|
|
109
|
+
|
|
110
|
+
/** @deprecated Use HostInstance instead */
|
|
111
|
+
export type NativeMethods = LegacyHostInstanceMethods;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @deprecated Use HostInstance instead.
|
|
115
|
+
*/
|
|
116
|
+
export type NativeMethodsMixin = LegacyHostInstanceMethods;
|
|
@@ -226,9 +226,7 @@ export default class Performance {
|
|
|
226
226
|
* Returns a double, measured in milliseconds.
|
|
227
227
|
* https://developer.mozilla.org/en-US/docs/Web/API/Performance/now
|
|
228
228
|
*/
|
|
229
|
-
now()
|
|
230
|
-
return getCurrentTimeStamp();
|
|
231
|
-
}
|
|
229
|
+
now: () => DOMHighResTimeStamp = getCurrentTimeStamp;
|
|
232
230
|
|
|
233
231
|
/**
|
|
234
232
|
* An extension that allows to get back to JS all currently logged marks/measures
|
package/types/index.d.ts
CHANGED
|
@@ -143,7 +143,7 @@ export * as CodegenTypes from '../Libraries/Types/CodegenTypesNamespace';
|
|
|
143
143
|
export * from '../Libraries/Types/CoreEventTypes';
|
|
144
144
|
export * from '../Libraries/Utilities/Appearance';
|
|
145
145
|
export * from '../Libraries/Utilities/BackHandler';
|
|
146
|
-
export * from '../src/private/devmenu/DevMenu';
|
|
146
|
+
export * from '../src/private/devsupport/devmenu/DevMenu';
|
|
147
147
|
export * from '../Libraries/Utilities/DevSettings';
|
|
148
148
|
export * from '../Libraries/Utilities/Dimensions';
|
|
149
149
|
export * from '../Libraries/Utilities/PixelRatio';
|
|
@@ -39,7 +39,7 @@ export type MeasureLayoutOnSuccessCallback = (
|
|
|
39
39
|
* The methods described here are available on most of the default components provided by React Native.
|
|
40
40
|
* Note, however, that they are not available on composite components that aren't directly backed by a
|
|
41
41
|
* native view. This will generally include most components that you define in your own app.
|
|
42
|
-
* For more information, see [Direct Manipulation](https://reactnative.dev/docs/direct-manipulation).
|
|
42
|
+
* For more information, see [Direct Manipulation](https://reactnative.dev/docs/the-new-architecture/direct-manipulation-new-architecture).
|
|
43
43
|
* @see https://github.com/facebook/react-native/blob/master/Libraries/Renderer/shims/ReactNativeTypes.js#L87
|
|
44
44
|
*/
|
|
45
45
|
export interface NativeMethods {
|
|
@@ -95,7 +95,7 @@ export interface NativeMethods {
|
|
|
95
95
|
* This function sends props straight to native. They will not participate in
|
|
96
96
|
* future diff process - this means that if you do not include them in the
|
|
97
97
|
* next render, they will remain active (see [Direct
|
|
98
|
-
* Manipulation](https://reactnative.dev/docs/direct-manipulation)).
|
|
98
|
+
* Manipulation](https://reactnative.dev/docs/the-new-architecture/direct-manipulation-new-architecture)).
|
|
99
99
|
*/
|
|
100
100
|
setNativeProps(nativeProps: object): void;
|
|
101
101
|
|