react-native-windows 0.74.10 → 0.75.0-preview.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.flowconfig +8 -2
- package/Common/Common.vcxproj +8 -0
- package/Common/Utilities.cpp +2 -2
- package/Directory.Build.targets +5 -0
- package/Folly/Folly.vcxproj +10 -2
- package/Folly/Folly.vcxproj.filters +0 -7
- package/Folly/TEMP_UntilFollyUpdate/ConstexprMath.h +970 -0
- package/Folly/TEMP_UntilFollyUpdate/json.cpp +1110 -0
- package/Folly/TEMP_UntilFollyUpdate/lang/ToAscii.cpp +4 -2
- package/Libraries/Animated/AnimatedImplementation.js +2 -0
- package/Libraries/Animated/NativeAnimatedHelper.js +4 -0
- package/Libraries/Animated/createAnimatedComponent.js +10 -4
- package/Libraries/Animated/useAnimatedProps.js +56 -28
- package/Libraries/BatchedBridge/MessageQueue.js +1 -0
- package/Libraries/Components/Button.js +10 -5
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +11 -2
- package/Libraries/Components/Flyout/Flyout.js +10 -10
- package/Libraries/Components/Flyout/FlyoutNativeComponent.js +8 -7
- package/Libraries/Components/Pressable/Pressable.js +13 -6
- package/Libraries/Components/Pressable/Pressable.windows.js +13 -6
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +4 -0
- package/Libraries/Components/ScrollView/ScrollView.js +109 -29
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +6 -0
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.windows.js +6 -0
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +13 -1
- package/Libraries/Components/StatusBar/StatusBar.js +1 -21
- package/Libraries/Components/Switch/Switch.windows.js +2 -0
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +0 -15
- package/Libraries/Components/TextInput/InputAccessoryView.js +10 -1
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +0 -12
- package/Libraries/Components/TextInput/TextInput.d.ts +0 -19
- package/Libraries/Components/TextInput/TextInput.js +20 -73
- package/Libraries/Components/TextInput/TextInput.windows.js +21 -75
- package/Libraries/Components/TextInput/WindowsTextInputNativeComponent.js +27 -12
- package/Libraries/Components/Touchable/Touchable.js +2 -2
- package/Libraries/Components/Touchable/TouchableHighlight.d.ts +4 -10
- package/Libraries/Components/Touchable/TouchableHighlight.js +3 -1
- package/Libraries/Components/Touchable/TouchableHighlight.windows.js +3 -1
- package/Libraries/Components/Touchable/TouchableOpacity.d.ts +4 -32
- package/Libraries/Components/Touchable/TouchableOpacity.js +3 -1
- package/Libraries/Components/Touchable/TouchableOpacity.windows.js +3 -1
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +8 -0
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +117 -111
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.windows.js +129 -110
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +6 -0
- package/Libraries/Components/View/ReactNativeViewAttributes.js +1 -0
- package/Libraries/Components/View/ReactNativeViewAttributes.windows.js +1 -0
- package/Libraries/Components/View/View.js +0 -11
- package/Libraries/Components/View/View.windows.js +0 -11
- package/Libraries/Components/View/ViewAccessibility.js +4 -4
- package/Libraries/Components/View/ViewAccessibility.windows.js +4 -4
- package/Libraries/Components/View/ViewPropTypes.d.ts +21 -59
- package/Libraries/Components/View/ViewPropTypes.js +7 -0
- package/Libraries/Components/View/ViewPropTypes.windows.js +7 -0
- package/Libraries/Core/Devtools/loadBundleFromServer.js +3 -3
- package/Libraries/Core/Devtools/loadBundleFromServer.windows.js +153 -0
- package/Libraries/Core/Devtools/parseErrorStack.js +5 -5
- package/Libraries/Core/Devtools/parseHermesStack.js +22 -16
- package/Libraries/Core/ErrorHandlers.js +116 -0
- package/Libraries/Core/ExceptionsManager.js +2 -2
- package/Libraries/Core/ReactNativeVersion.js +3 -3
- package/Libraries/Core/setUpDeveloperTools.js +3 -1
- package/Libraries/Core/setUpPerformance.js +6 -4
- package/Libraries/Core/setUpReactDevTools.js +70 -10
- package/Libraries/Core/setUpTimers.js +50 -31
- package/Libraries/Debugging/DebuggingOverlayRegistry.js +1 -1
- package/Libraries/Image/Image.android.js +23 -13
- package/Libraries/Image/Image.d.ts +14 -15
- package/Libraries/Image/Image.ios.js +21 -11
- package/Libraries/Image/Image.windows.js +21 -11
- package/Libraries/Image/ImageProps.js +16 -5
- package/Libraries/Image/ImageTypes.flow.js +7 -2
- package/Libraries/Image/ImageUtils.js +1 -0
- package/Libraries/Image/ImageViewNativeComponent.js +2 -1
- package/Libraries/Inspector/ElementBox.js +6 -3
- package/Libraries/Inspector/ElementProperties.js +1 -1
- package/Libraries/Interaction/TouchHistoryMath.js +4 -4
- package/Libraries/IntersectionObserver/IntersectionObserverManager.js +6 -26
- package/Libraries/JSInspector/NetworkAgent.js +1 -1
- package/Libraries/LogBox/Data/LogBoxData.js +39 -29
- package/Libraries/LogBox/Data/LogBoxLog.js +114 -2
- package/Libraries/LogBox/Data/parseLogBoxLog.js +168 -53
- package/Libraries/LogBox/LogBox.js +29 -12
- package/Libraries/LogBox/LogBoxNotificationContainer.js +4 -0
- package/Libraries/LogBox/UI/LogBoxInspector.js +8 -70
- package/Libraries/LogBox/UI/LogBoxInspectorBody.js +87 -0
- package/Libraries/LogBox/UI/LogBoxInspectorFooter.js +6 -42
- package/Libraries/LogBox/UI/LogBoxInspectorFooterButton.js +58 -0
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +5 -66
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.windows.js +5 -66
- package/Libraries/LogBox/UI/LogBoxInspectorHeaderButton.js +76 -0
- package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js +8 -5
- package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.windows.js +8 -5
- package/Libraries/LogBox/UI/LogBoxNotification.js +13 -152
- package/Libraries/LogBox/UI/LogBoxNotificationCountBadge.js +63 -0
- package/Libraries/LogBox/UI/LogBoxNotificationDismissButton.js +67 -0
- package/Libraries/LogBox/UI/LogBoxNotificationMessage.js +57 -0
- package/Libraries/NativeComponent/BaseViewConfig.android.js +5 -0
- package/Libraries/NativeComponent/BaseViewConfig.ios.js +5 -0
- package/Libraries/NativeComponent/BaseViewConfig.windows.js +5 -0
- package/Libraries/NativeComponent/NativeComponentRegistry.js +12 -5
- package/Libraries/NativeComponent/StaticViewConfigValidator.js +3 -0
- package/Libraries/Network/XMLHttpRequest.js +5 -1
- package/Libraries/NewAppScreen/components/LearnMoreLinks.js +3 -3
- package/Libraries/Pressability/Pressability.js +3 -51
- package/Libraries/Pressability/Pressability.windows.js +3 -51
- package/Libraries/ReactNative/AppRegistry.d.ts +4 -0
- package/Libraries/ReactNative/AppRegistry.js +2 -4
- package/Libraries/ReactNative/BridgelessUIManager.js +1 -21
- package/Libraries/ReactNative/FabricUIManager.js +0 -51
- package/Libraries/ReactNative/ReactFabricPublicInstance/warnForStyleProps.js +1 -0
- package/Libraries/ReactNative/RendererImplementation.js +20 -2
- package/Libraries/ReactNative/UIManager.d.ts +0 -21
- package/Libraries/ReactNative/UIManagerProperties.js +0 -3
- package/Libraries/ReactNative/__mocks__/FabricUIManager.js +5 -341
- package/Libraries/ReactNative/getNativeComponentAttributes.js +8 -8
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +15682 -27088
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +5082 -4381
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +3480 -2571
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +15943 -27543
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +5303 -4606
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +3450 -2572
- package/Libraries/Renderer/shims/ReactFabric.js +2 -2
- package/Libraries/Renderer/shims/ReactFeatureFlags.js +2 -2
- package/Libraries/Renderer/shims/ReactNative.js +2 -3
- package/Libraries/Renderer/shims/ReactNativeTypes.js +24 -3
- package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +2 -2
- package/Libraries/Renderer/shims/createReactNativeComponentClass.js +2 -2
- package/Libraries/Share/Share.d.ts +16 -10
- package/Libraries/Share/Share.js +14 -15
- package/Libraries/StyleSheet/StyleSheet.d.ts +1 -1
- package/Libraries/StyleSheet/StyleSheet.js +3 -10
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +21 -21
- package/Libraries/StyleSheet/StyleSheetTypes.js +24 -18
- package/Libraries/StyleSheet/flattenStyle.js +1 -0
- package/Libraries/StyleSheet/processFilter.js +132 -0
- package/Libraries/StyleSheet/processTransform.js +18 -3
- package/Libraries/Text/Text.js +151 -128
- package/Libraries/Text/Text.windows.js +144 -127
- package/Libraries/Text/TextNativeComponent.js +5 -4
- package/Libraries/Text/TextProps.js +6 -6
- package/Libraries/Text/TextProps.windows.js +6 -6
- package/Libraries/TurboModule/TurboModuleRegistry.js +2 -1
- package/Libraries/Types/CodegenTypes.js +3 -0
- package/Libraries/Utilities/{LoadingView.android.js → DevLoadingView.js} +33 -11
- package/Libraries/Utilities/Dimensions.js +1 -0
- package/Libraries/Utilities/HMRClient.js +36 -8
- package/Libraries/Utilities/HMRClientProdShim.js +1 -0
- package/Libraries/Utilities/NativePlatformConstantsWin.js +2 -2
- package/Libraries/Utilities/Platform.android.js +4 -4
- package/Libraries/Utilities/RCTLog.js +1 -0
- package/Libraries/Utilities/ReactNativeTestTools.js +12 -24
- package/Libraries/Utilities/verifyComponentAttributeEquivalence.js +11 -6
- package/Libraries/__tests__/ViewWindows-test.js +6 -6
- package/Libraries/promiseRejectionTrackingOptions.js +1 -0
- package/Microsoft.ReactNative/Base/FollyIncludes.h +1 -1
- package/Microsoft.ReactNative/ComponentView.idl +0 -17
- package/Microsoft.ReactNative/Fabric/AbiState.cpp +3 -45
- package/Microsoft.ReactNative/Fabric/AbiState.h +0 -6
- package/Microsoft.ReactNative/Fabric/Composition/ImageComponentView.cpp +10 -6
- package/Microsoft.ReactNative/Fabric/Composition/ImageComponentView.h +4 -4
- package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.cpp +12 -3
- package/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.cpp +1 -1
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp +7 -12
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputShadowNode.cpp +1 -2
- package/Microsoft.ReactNative/Fabric/Composition/UriImageManager.cpp +9 -3
- package/Microsoft.ReactNative/Fabric/Composition/UriImageManager.h +1 -1
- package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.cpp +11 -18
- package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.h +3 -5
- package/Microsoft.ReactNative/Fabric/WindowsImageManager.cpp +23 -11
- package/Microsoft.ReactNative/Fabric/WindowsImageManager.h +5 -2
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewEventEmitter.cpp +2 -10
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/TextLayoutManager.cpp +107 -36
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/TextLayoutManager.h +18 -12
- package/Microsoft.ReactNative/Modules/DevSettingsModule.cpp +4 -0
- package/Microsoft.ReactNative/Modules/DevSettingsModule.h +1 -0
- package/Microsoft.ReactNative/Modules/ImageViewManagerModule.cpp +1 -2
- package/Microsoft.ReactNative/Modules/NativeUIManager.cpp +7 -4
- package/Microsoft.ReactNative/Modules/NativeUIManager.h +1 -1
- package/Microsoft.ReactNative/Modules/PlatformConstantsWinModule.cpp +2 -2
- package/Microsoft.ReactNative/Modules/PlatformConstantsWinModule.h +3 -3
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp +11 -17
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.h +1 -1
- package/Microsoft.ReactNative/Timer.idl +1 -3
- package/Microsoft.ReactNative/Utils/BatchingEventEmitter.cpp +1 -1
- package/Microsoft.ReactNative/Utils/LocalBundleReader.cpp +2 -3
- package/Microsoft.ReactNative/Utils/ValueUtils.cpp +1 -1
- package/Microsoft.ReactNative/Views/DynamicAutomationPeer.cpp +2 -2
- package/Microsoft.ReactNative/Views/TextInputViewManager.cpp +1 -1
- package/Microsoft.ReactNative/packages.lock.json +45 -72
- package/Microsoft.ReactNative.Cxx/JSI/LongLivedJsiValue.h +1 -1
- package/Microsoft.ReactNative.Cxx/Microsoft.ReactNative.Cxx.vcxitems +5 -0
- package/Microsoft.ReactNative.Cxx/Microsoft.ReactNative.Cxx.vcxitems.filters +1 -0
- package/Microsoft.ReactNative.Cxx/TurboModuleProvider.cpp +14 -6
- package/Microsoft.ReactNative.Cxx/TurboModuleProvider.h +2 -2
- package/Microsoft.ReactNative.Managed/Microsoft.ReactNative.Managed.csproj +1 -1
- package/Microsoft.ReactNative.Managed/packages.lock.json +3 -3
- package/PropertySheets/ARM64EC.props +13 -0
- package/PropertySheets/Application/ARM64EC.props +13 -0
- package/PropertySheets/DynamicLibrary/ARM64EC.props +13 -0
- package/PropertySheets/External/Microsoft.ReactNative.WindowsSdk.Default.props +4 -4
- package/PropertySheets/Generated/PackageVersion.g.props +4 -4
- package/PropertySheets/JSEngine.props +2 -0
- package/PropertySheets/StaticLibrary/ARM64EC.props +13 -0
- package/README.md +21 -21
- package/ReactCommon/ReactCommon.vcxproj +11 -1
- package/ReactCommon/ReactCommon.vcxproj.filters +19 -12
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/JSExecutor.cpp +67 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/JSExecutor.h +180 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/NativeToJsBridge.cpp +351 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jsi/jsi/test/testlib.cpp +6 -3
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/bridging/Base.h +152 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/bridging/Bridging.h +2 -1
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/bridging/CallbackWrapper.h +13 -15
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/bridging/EventEmitter.h +137 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/bridging/Function.h +283 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon/TurboModule.cpp +7 -10
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon/TurboModule.h +162 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon/TurboModuleUtils.h +2 -4
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/scrollview/ScrollViewProps.cpp +33 -8
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/runtime/JSRuntimeFactory.cpp +45 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/runtime/JSRuntimeFactory.h +67 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/runtime/ReactInstance.cpp +104 -74
- package/Scripts/StripAdditionalPlatformsFromNuspec.ps1 +1 -1
- package/Scripts/Tfs/Layout-MSRN-Headers.ps1 +10 -6
- package/Scripts/rnw-dependencies.ps1 +36 -23
- package/Shared/HermesRuntimeHolder.cpp +19 -1
- package/Shared/HermesRuntimeHolder.h +8 -1
- package/Shared/HermesSamplingProfiler.cpp +1 -2
- package/Shared/Networking/WinRTWebSocketResource.cpp +3 -3
- package/Shared/OInstance.cpp +1 -2
- package/Shared/Shared.vcxitems +21 -15
- package/Shared/Shared.vcxitems.filters +8 -3
- package/Shared/Threading/BatchingQueueThread.cpp +6 -2
- package/Shared/Threading/BatchingQueueThread.h +2 -2
- package/Shared/Utils/CppWinrtLessExceptions.h +2 -2
- package/codegen/NativeAppStateSpec.g.h +8 -8
- package/codegen/NativeBlobModuleSpec.g.h +0 -10
- package/codegen/NativeDOMSpec.g.h +136 -0
- package/codegen/NativeDevSettingsSpec.g.h +11 -5
- package/codegen/NativeIdleCallbacksSpec.g.h +64 -0
- package/codegen/NativeIntersectionObserverSpec.g.h +14 -14
- package/codegen/NativeMicrotasksSpec.g.h +34 -0
- package/codegen/NativePerformanceSpec.g.h +35 -7
- package/codegen/NativePlatformConstantsWindowsSpec.g.h +81 -0
- package/codegen/NativePushNotificationManagerIOSSpec.g.h +15 -19
- package/codegen/NativeReactNativeFeatureFlagsSpec.g.h +111 -39
- package/codegen/NativeUIManagerSpec.g.h +5 -17
- package/codegen/react/components/rnwcore/Props.cpp +1 -1
- package/codegen/react/components/rnwcore/Props.h +16 -12
- package/codegen/react/components/rnwcore/States.h +0 -26
- package/codegen/rnwcoreJSI-generated.cpp +688 -463
- package/codegen/rnwcoreJSI.h +1374 -2867
- package/fmt/TEMP_UntilFmtUpdate/core.h +2925 -0
- package/fmt/fmt.vcxproj +10 -2
- package/jest/mockComponent.js +7 -0
- package/jest/renderer.js +25 -14
- package/jest/setup.js +19 -13
- package/package.json +29 -27
- package/rn-get-polyfills.js +1 -0
- package/src/private/core/composeStyles.js +27 -0
- package/src/private/featureflags/ReactNativeFeatureFlags.js +93 -33
- package/src/private/featureflags/ReactNativeFeatureFlagsBase.js +23 -4
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +56 -0
- package/src/private/fusebox/setUpFuseboxReactDevToolsDispatcher.js +108 -0
- package/src/private/specs/modules/NativeBlobModule.js +4 -2
- package/src/private/specs/modules/NativeDevSettings.js +1 -0
- package/src/private/specs/modules/NativePushNotificationManagerIOS.js +0 -4
- package/src/private/specs/modules/NativeUIManager.js +0 -7
- package/src/private/webapis/dom/geometry/DOMRectReadOnly.js +24 -24
- package/src/private/webapis/dom/nodes/ReactNativeElement.js +11 -14
- package/src/private/webapis/dom/nodes/ReadOnlyCharacterData.js +2 -3
- package/src/private/webapis/dom/nodes/ReadOnlyElement.js +24 -54
- package/src/private/webapis/dom/nodes/ReadOnlyNode.js +5 -13
- package/src/private/webapis/dom/nodes/specs/NativeDOM.js +468 -0
- package/src/private/webapis/dom/nodes/specs/__mocks__/NativeDOMMock.js +413 -0
- package/src/private/webapis/dom/oldstylecollections/DOMRectList.js +4 -4
- package/src/private/webapis/dom/oldstylecollections/HTMLCollection.js +4 -4
- package/src/private/webapis/dom/oldstylecollections/NodeList.js +5 -5
- package/src/private/webapis/idlecallbacks/specs/NativeIdleCallbacks.js +34 -0
- package/src/private/webapis/microtasks/specs/NativeMicrotasks.js +21 -0
- package/src/private/webapis/performance/EventCounts.js +1 -1
- package/src/private/webapis/performance/MemoryInfo.js +9 -9
- package/src/private/webapis/performance/Performance.js +10 -56
- package/src/private/webapis/performance/PerformanceObserver.js +30 -22
- package/src/private/webapis/performance/RawPerformanceEntry.js +2 -7
- package/src/private/webapis/performance/ReactNativeStartupTiming.js +18 -18
- package/src/private/webapis/performance/UserTiming.js +63 -0
- package/src/private/webapis/performance/{NativePerformance.js → specs/NativePerformance.js} +3 -2
- package/src/private/webapis/performance/{NativePerformanceObserver.js → specs/NativePerformanceObserver.js} +2 -2
- package/src/private/webapis/performance/{__mocks__ → specs/__mocks__}/NativePerformance.js +1 -1
- package/src/private/webapis/performance/{__mocks__ → specs/__mocks__}/NativePerformanceObserver.js +3 -4
- package/stubs/glog/logging.h +1 -0
- package/template/cpp-lib/proj/MyLib.vcxproj +1 -1
- package/template/cs-lib/proj/MyLib.csproj +1 -1
- package/template/metro.config.js +13 -2
- package/templates/cpp-app/template.config.js +1 -1
- package/templates/cpp-lib/example/metro.config.js +2 -2
- package/templates/cpp-lib/template.config.js +1 -1
- package/templates/old/generateWrapper.js +4 -1
- package/types/modules/globals.d.ts +4 -0
- package/Libraries/Lists/FlatList.windows.js +0 -717
- package/Libraries/NativeModules/specs/NativeAnimationsDebugModule.js +0 -13
- package/Libraries/Utilities/LoadingView.ios.js +0 -50
- package/Libraries/Utilities/LoadingView.js +0 -16
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon/TurboModuleBinding.cpp +0 -178
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/utils/jsi-utils.cpp +0 -39
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/utils/jsi-utils.h +0 -31
- package/ReactCommon/TEMP_UntilReactCommonUpdate/yoga/yoga/YGEnums.h +0 -137
- package/ReactCommon/TEMP_UntilReactCommonUpdate/yoga/yoga/algorithm/CalculateLayout.cpp +0 -2375
- package/ReactCommon/TEMP_UntilReactCommonUpdate/yoga/yoga/enums/ExperimentalFeature.h +0 -40
- package/codegen/NativeAnimationsDebugModuleSpec.g.h +0 -40
- package/codegen/NativePlatformConstantsWinSpec.g.h +0 -81
- package/jest/ReactNativeInternalFeatureFlagsMock.js +0 -13
- package/src/private/featureflags/NativeReactNativeFeatureFlags.js +0 -44
- package/src/private/featureflags/__tests__/ReactNativeFeatureFlags-test.js +0 -92
- package/src/private/specs/modules/NativeAnimationsDebugModule.js +0 -20
- package/src/private/webapis/dom/oldstylecollections/__tests__/DOMRectList-test.js +0 -85
- package/src/private/webapis/dom/oldstylecollections/__tests__/HTMLCollection-test.js +0 -80
- package/src/private/webapis/dom/oldstylecollections/__tests__/NodeList-test.js +0 -161
- package/src/private/webapis/performance/__tests__/EventCounts-test.js +0 -116
- package/src/private/webapis/performance/__tests__/NativePerformanceMock-test.js +0 -82
- package/src/private/webapis/performance/__tests__/NativePerformanceObserverMock-test.js +0 -108
- package/src/private/webapis/performance/__tests__/Performance-test.js +0 -117
- package/src/private/webapis/performance/__tests__/PerformanceObserver-test.js +0 -208
- package/template/metro.devMode.config.js +0 -56
- /package/src/private/specs/modules/{NativePlatformConstantsWin.js → NativePlatformConstantsWindows.js} +0 -0
|
@@ -49,12 +49,12 @@ Copy-Item -Force -Recurse -Path $ReactWindowsRoot\codegen -Destination $TargetRo
|
|
|
49
49
|
Copy-Item -Force -Recurse -Path $ReactCommonOverrideRoot\* -Destination $ReactNativeRoot\ReactCommon\
|
|
50
50
|
|
|
51
51
|
# Microsoft.ReactNative.CXX project JSI files
|
|
52
|
-
Copy-Item -Force -Path $
|
|
53
|
-
Copy-Item -Force -Path $
|
|
54
|
-
Copy-Item -Force -Path $
|
|
55
|
-
Copy-Item -Force -Path $
|
|
56
|
-
Copy-Item -Force -Path $
|
|
57
|
-
Copy-Item -Force -Path $
|
|
52
|
+
Copy-Item -Force -Path $NodeApiJsiRoot\jsi\jsi\decorator.h -Destination $TargetRoot\Microsoft.ReactNative.Cxx\jsi\
|
|
53
|
+
Copy-Item -Force -Path $NodeApiJsiRoot\jsi\jsi\instrumentation.h -Destination $TargetRoot\Microsoft.ReactNative.Cxx\jsi\
|
|
54
|
+
Copy-Item -Force -Path $NodeApiJsiRoot\jsi\jsi\jsi.cpp -Destination $TargetRoot\Microsoft.ReactNative.Cxx\jsi\
|
|
55
|
+
Copy-Item -Force -Path $NodeApiJsiRoot\jsi\jsi\jsi.h -Destination $TargetRoot\Microsoft.ReactNative.Cxx\jsi\
|
|
56
|
+
Copy-Item -Force -Path $NodeApiJsiRoot\jsi\jsi\jsi-inl.h -Destination $TargetRoot\Microsoft.ReactNative.Cxx\jsi\
|
|
57
|
+
Copy-Item -Force -Path $NodeApiJsiRoot\jsi\jsi\threadsafe.h -Destination $TargetRoot\Microsoft.ReactNative.Cxx\jsi\
|
|
58
58
|
|
|
59
59
|
# Microsoft.ReactNative.CXX project Node-API files
|
|
60
60
|
New-Item $TargetRoot\Microsoft.ReactNative.Cxx\node-api -ItemType Directory -Force
|
|
@@ -80,6 +80,10 @@ New-Item -ItemType Directory -Path $TargetRoot\Microsoft.ReactNative.Cxx\ReactCo
|
|
|
80
80
|
Copy-Item -Force -Path $ReactNativeRoot\ReactCommon\callinvoker\ReactCommon\CallInvoker.h -Destination $TargetRoot\Microsoft.ReactNative.Cxx\ReactCommon\
|
|
81
81
|
Copy-Item -Force -Path $ReactNativeRoot\ReactCommon\callinvoker\ReactCommon\SchedulerPriority.h -Destination $TargetRoot\Microsoft.ReactNative.Cxx\ReactCommon\
|
|
82
82
|
Copy-Item -Force -Path $ReactNativeRoot\ReactCommon\react\bridging\CallbackWrapper.h -Destination $TargetRoot\Microsoft.ReactNative.Cxx\ReactCommon\
|
|
83
|
+
Copy-Item -Force -Path $ReactNativeRoot\ReactCommon\react\bridging\EventEmitter.h -Destination $TargetRoot\Microsoft.ReactNative.Cxx\ReactCommon\
|
|
84
|
+
Copy-Item -Force -Path $ReactNativeRoot\ReactCommon\react\bridging\Function.h -Destination $TargetRoot\Microsoft.ReactNative.Cxx\ReactCommon\
|
|
85
|
+
Copy-Item -Force -Path $ReactNativeRoot\ReactCommon\react\bridging\Base.h -Destination $TargetRoot\Microsoft.ReactNative.Cxx\ReactCommon\
|
|
86
|
+
Copy-Item -Force -Path $ReactNativeRoot\ReactCommon\react\bridging\Convert.h -Destination $TargetRoot\Microsoft.ReactNative.Cxx\ReactCommon\
|
|
83
87
|
Copy-Item -Force -Path $ReactNativeRoot\ReactCommon\react\bridging\LongLivedObject.cpp -Destination $TargetRoot\Microsoft.ReactNative.Cxx\ReactCommon\
|
|
84
88
|
Copy-Item -Force -Path $ReactNativeRoot\ReactCommon\react\bridging\LongLivedObject.h -Destination $TargetRoot\Microsoft.ReactNative.Cxx\ReactCommon\
|
|
85
89
|
Copy-Item -Force -Path $ReactNativeRoot\ReactCommon\react\nativemodule\core\ReactCommon\TurboModule.cpp -Destination $TargetRoot\Microsoft.ReactNative.Cxx\ReactCommon\
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
# Troubleshoot RNW dependencies
|
|
2
3
|
param(
|
|
3
4
|
[switch]$Install = $false,
|
|
@@ -65,24 +66,23 @@ $vsComponents = @('Microsoft.Component.MSBuild',
|
|
|
65
66
|
'Microsoft.VisualStudio.Component.VC.Tools.x86.x64',
|
|
66
67
|
'Microsoft.VisualStudio.ComponentGroup.UWP.Support',
|
|
67
68
|
'Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core',
|
|
68
|
-
'Microsoft.VisualStudio.Component.Windows10SDK.19041'
|
|
69
|
+
'Microsoft.VisualStudio.Component.Windows10SDK.19041',
|
|
70
|
+
'Microsoft.VisualStudio.Component.Windows11SDK.22621');
|
|
69
71
|
|
|
70
72
|
# UWP.VC is not needed to build the projects with msbuild, but the VS IDE requires it.
|
|
71
73
|
if (!($tagsToInclude.Contains('buildLab'))) {
|
|
72
74
|
$vsComponents += 'Microsoft.VisualStudio.ComponentGroup.UWP.VC';
|
|
73
75
|
}
|
|
74
76
|
|
|
75
|
-
# Windows11SDK is only needed for the more experimental composition projects using newer WinAppSDK versions
|
|
76
|
-
if ($tagsToInclude.Contains('rnwDev')) {
|
|
77
|
-
$vsComponents += 'Microsoft.VisualStudio.Component.Windows11SDK.22000';
|
|
78
|
-
}
|
|
79
|
-
|
|
80
77
|
$vsWorkloads = @('Microsoft.VisualStudio.Workload.ManagedDesktop',
|
|
81
78
|
'Microsoft.VisualStudio.Workload.NativeDesktop',
|
|
82
79
|
'Microsoft.VisualStudio.Workload.Universal');
|
|
83
80
|
|
|
84
81
|
$vsAll = ($vsComponents + $vsWorkloads);
|
|
85
82
|
|
|
83
|
+
# The minimum winget version to check for
|
|
84
|
+
$wingetver = "1.7.11261";
|
|
85
|
+
|
|
86
86
|
# The minimum VS version to check for
|
|
87
87
|
# Note: For install to work, whatever min version you specify here must be met by the current package available on winget.
|
|
88
88
|
$vsver = "17.9";
|
|
@@ -127,7 +127,7 @@ function Get-VSPathPropertyForEachInstall {
|
|
|
127
127
|
[String[]]$paths = ($output | Where-Object { (Test-Path $_) });
|
|
128
128
|
return $paths;
|
|
129
129
|
}
|
|
130
|
-
|
|
130
|
+
|
|
131
131
|
return $null;
|
|
132
132
|
}
|
|
133
133
|
|
|
@@ -187,26 +187,26 @@ function GetVSChannelAndProduct {
|
|
|
187
187
|
param(
|
|
188
188
|
[string]$VsWhere
|
|
189
189
|
)
|
|
190
|
-
|
|
190
|
+
|
|
191
191
|
if ($VsWhere) {
|
|
192
192
|
$channelId = & $VsWhere -version $vsver -property channelId;
|
|
193
193
|
$productId = & $VsWhere -version $vsver -property productId;
|
|
194
|
-
|
|
194
|
+
|
|
195
195
|
# Channel/product not found, check one more time for pre-release
|
|
196
196
|
if (($channelId -eq $null) -or ($productId -eq $null)) {
|
|
197
197
|
$channelId = & $VsWhere -version $vsver -property channelId -prerelease;
|
|
198
198
|
$productId = & $VsWhere -version $vsver -property productId -prerelease;
|
|
199
199
|
}
|
|
200
|
-
|
|
200
|
+
|
|
201
201
|
return $channelId, $productId;
|
|
202
202
|
}
|
|
203
|
-
|
|
203
|
+
|
|
204
204
|
return $null, $null;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
function InstallVS {
|
|
208
208
|
$vsWhere = Get-VSWhere;
|
|
209
|
-
|
|
209
|
+
|
|
210
210
|
$channelId, $productId = GetVSChannelAndProduct -VsWhere $vsWhere
|
|
211
211
|
|
|
212
212
|
if (($vsWhere -eq $null) -or ($channelId -eq $null) -or ($productId -eq $null)) {
|
|
@@ -223,7 +223,7 @@ function InstallVS {
|
|
|
223
223
|
|
|
224
224
|
$channelId, $productId = GetVSChannelAndProduct -VsWhere $vsWhere
|
|
225
225
|
}
|
|
226
|
-
|
|
226
|
+
|
|
227
227
|
# Final check before attempting install
|
|
228
228
|
if (($vsWhere -eq $null) -or ($channelId -eq $null) -or ($productId -eq $null)) {
|
|
229
229
|
throw "Unable to find or install a compatible version of Visual Studio >= ($vsver).";
|
|
@@ -240,8 +240,9 @@ function CheckNode {
|
|
|
240
240
|
try {
|
|
241
241
|
$nodeVersion = (Get-Command node -ErrorAction Stop).Version;
|
|
242
242
|
Write-Verbose "Node version found: $nodeVersion";
|
|
243
|
-
$
|
|
244
|
-
|
|
243
|
+
$major = $nodeVersion.Major;
|
|
244
|
+
$minor = $nodeVersion.Minor;
|
|
245
|
+
return ($major -gt 18) -or (($major -eq 18) -and ($minor -ge 18));
|
|
245
246
|
} catch { Write-Debug $_ }
|
|
246
247
|
|
|
247
248
|
Write-Verbose "Node not found.";
|
|
@@ -331,7 +332,7 @@ function InstallCppWinRT_VSIX {
|
|
|
331
332
|
$url = "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/CppWinRTTeam/vsextensions/cppwinrt101804264/2.0.210304.5/vspackage";
|
|
332
333
|
Write-Verbose "Downloading CppWinRT VSIX from $url";
|
|
333
334
|
Invoke-WebRequest -UseBasicParsing $url -OutFile $env:TEMP\Microsoft.Windows.CppWinRT.vsix;
|
|
334
|
-
|
|
335
|
+
|
|
335
336
|
$vsWhere = Get-VSWhere;
|
|
336
337
|
if ($vsWhere -eq $null) {
|
|
337
338
|
return;
|
|
@@ -437,10 +438,10 @@ $requirements = @(
|
|
|
437
438
|
},
|
|
438
439
|
@{
|
|
439
440
|
Id=[CheckId]::Node;
|
|
440
|
-
Name = 'Node.js (LTS, >= 18.
|
|
441
|
+
Name = 'Node.js (LTS, >= 18.18)';
|
|
441
442
|
Tags = @('appDev');
|
|
442
443
|
Valid = { CheckNode; }
|
|
443
|
-
Install = { WinGetInstall OpenJS.NodeJS.LTS "18.
|
|
444
|
+
Install = { WinGetInstall OpenJS.NodeJS.LTS "18.18.0" };
|
|
444
445
|
HasVerboseOutput = $true;
|
|
445
446
|
},
|
|
446
447
|
@{
|
|
@@ -517,18 +518,30 @@ $requirements = @(
|
|
|
517
518
|
}
|
|
518
519
|
);
|
|
519
520
|
|
|
521
|
+
function InstallWinGet {
|
|
522
|
+
Write-Verbose "Updating WinGet version...";
|
|
523
|
+
Invoke-WebRequest -Uri https://aka.ms/getwinget -OutFile "$env:TEMP\winget.msixbundle";
|
|
524
|
+
Add-AppPackage -ForceApplicationShutdown $env:TEMP\winget.msixbundle;
|
|
525
|
+
Remove-Item $env:TEMP\winget.msixbundle;
|
|
526
|
+
}
|
|
527
|
+
|
|
520
528
|
function EnsureWinGetForInstall {
|
|
521
529
|
Write-Verbose "Checking for WinGet...";
|
|
522
530
|
try {
|
|
523
531
|
# Check if winget.exe is in PATH
|
|
524
532
|
if (Get-Command "winget.exe" -CommandType Application -ErrorAction Ignore) {
|
|
525
533
|
Write-Verbose "WinGet found in PATH.";
|
|
526
|
-
|
|
534
|
+
Write-Verbose "Validating WinGet version...";
|
|
535
|
+
$wingetverfound = & winget -v;
|
|
536
|
+
if ([System.Version]$wingetverfound.Substring(1) -ge [System.Version]$wingetver ){
|
|
537
|
+
Write-Verbose "WinGet version found: $wingetverfound";
|
|
538
|
+
return;
|
|
539
|
+
}
|
|
527
540
|
}
|
|
541
|
+
InstallWinGet;
|
|
542
|
+
$installedwingetver = & winget -v;
|
|
543
|
+
Write-Verbose "WinGet version installed: $installedwingetver";
|
|
528
544
|
} catch { Write-Debug $_ }
|
|
529
|
-
|
|
530
|
-
Write-Host "WinGet is required to install dependencies. See https://learn.microsoft.com/en-us/windows/package-manager/winget/ for more information.";
|
|
531
|
-
throw "WinGet needed to install.";
|
|
532
545
|
}
|
|
533
546
|
|
|
534
547
|
function WinGetInstall {
|
|
@@ -546,7 +559,7 @@ function WinGetInstall {
|
|
|
546
559
|
& winget install "$wingetPackage" --accept-source-agreements --accept-package-agreements
|
|
547
560
|
}
|
|
548
561
|
}
|
|
549
|
-
|
|
562
|
+
|
|
550
563
|
function IsElevated {
|
|
551
564
|
return [bool](([System.Security.Principal.WindowsIdentity]::GetCurrent()).groups -match "S-1-5-32-544");
|
|
552
565
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
#include <NodeApiJsiRuntime.h>
|
|
11
11
|
#include <crash/verifyElseCrash.h>
|
|
12
12
|
#include <cxxreact/SystraceSection.h>
|
|
13
|
+
#include <jsinspector-modern/ConsoleMessage.h>
|
|
13
14
|
#include <jsinspector-modern/InspectorInterfaces.h>
|
|
14
15
|
#include <mutex>
|
|
15
16
|
#include "SafeLoadLibrary.h"
|
|
@@ -408,11 +409,28 @@ facebook::jsi::Runtime &HermesJSRuntime::getRuntime() noexcept {
|
|
|
408
409
|
return *m_holder->getRuntime();
|
|
409
410
|
}
|
|
410
411
|
|
|
412
|
+
void HermesJSRuntime::addConsoleMessage(
|
|
413
|
+
facebook::jsi::Runtime &runtime,
|
|
414
|
+
facebook::react::jsinspector_modern::ConsoleMessage message) {
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
bool HermesJSRuntime::supportsConsole() const {
|
|
419
|
+
return false;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
std::unique_ptr<facebook::react::jsinspector_modern::StackTrace> HermesJSRuntime::captureStackTrace(
|
|
423
|
+
facebook::jsi::Runtime &runtime,
|
|
424
|
+
size_t framesToSkip) {
|
|
425
|
+
return std::make_unique<facebook::react::jsinspector_modern::StackTrace>();
|
|
426
|
+
}
|
|
427
|
+
|
|
411
428
|
std::unique_ptr<facebook::react::jsinspector_modern::RuntimeAgentDelegate> HermesJSRuntime::createAgentDelegate(
|
|
412
429
|
facebook::react::jsinspector_modern::FrontendChannel frontendChannel,
|
|
413
430
|
facebook::react::jsinspector_modern::SessionState &sessionState,
|
|
414
431
|
std::unique_ptr<facebook::react::jsinspector_modern::RuntimeAgentDelegate::ExportedState> previouslyExportedState,
|
|
415
|
-
const facebook::react::jsinspector_modern::ExecutionContextDescription &executionContextDescription
|
|
432
|
+
const facebook::react::jsinspector_modern::ExecutionContextDescription &executionContextDescription,
|
|
433
|
+
facebook::react::RuntimeExecutor runtimeExecutor) {
|
|
416
434
|
(void)frontendChannel;
|
|
417
435
|
(void)sessionState;
|
|
418
436
|
return nullptr;
|
|
@@ -58,12 +58,19 @@ class HermesJSRuntime : public facebook::react::JSRuntime {
|
|
|
58
58
|
HermesJSRuntime(std::shared_ptr<Microsoft::JSI::RuntimeHolderLazyInit> hermesRuntimeHolder);
|
|
59
59
|
|
|
60
60
|
facebook::jsi::Runtime &getRuntime() noexcept override;
|
|
61
|
+
void addConsoleMessage(facebook::jsi::Runtime &runtime, facebook::react::jsinspector_modern::ConsoleMessage message)
|
|
62
|
+
override;
|
|
63
|
+
bool supportsConsole() const override;
|
|
64
|
+
std::unique_ptr<facebook::react::jsinspector_modern::StackTrace> captureStackTrace(
|
|
65
|
+
facebook::jsi::Runtime &runtime,
|
|
66
|
+
size_t framesToSkip = 0) override;
|
|
61
67
|
|
|
62
68
|
std::unique_ptr<facebook::react::jsinspector_modern::RuntimeAgentDelegate> createAgentDelegate(
|
|
63
69
|
facebook::react::jsinspector_modern::FrontendChannel frontendChannel,
|
|
64
70
|
facebook::react::jsinspector_modern::SessionState &sessionState,
|
|
65
71
|
std::unique_ptr<facebook::react::jsinspector_modern::RuntimeAgentDelegate::ExportedState> previouslyExportedState,
|
|
66
|
-
const facebook::react::jsinspector_modern::ExecutionContextDescription &executionContextDescription
|
|
72
|
+
const facebook::react::jsinspector_modern::ExecutionContextDescription &executionContextDescription,
|
|
73
|
+
facebook::react::RuntimeExecutor runtimeExecutor) override;
|
|
67
74
|
|
|
68
75
|
private:
|
|
69
76
|
std::shared_ptr<Microsoft::JSI::RuntimeHolderLazyInit> m_holder;
|
|
@@ -54,8 +54,7 @@ IAsyncOperation<winrt::hstring> getTraceFilePath() noexcept {
|
|
|
54
54
|
.count();
|
|
55
55
|
|
|
56
56
|
os << hermesDataPath.c_str() << L"\\cpu_" << now << L".cpuprofile";
|
|
57
|
-
|
|
58
|
-
co_return winrt::hstring(os.str());
|
|
57
|
+
co_return winrt::hstring(os.view());
|
|
59
58
|
}
|
|
60
59
|
|
|
61
60
|
} // namespace
|
|
@@ -64,9 +64,9 @@ auto resume_in_queue(const Mso::DispatchQueue &queue) noexcept {
|
|
|
64
64
|
|
|
65
65
|
void await_resume() const noexcept {}
|
|
66
66
|
|
|
67
|
-
void await_suspend(
|
|
67
|
+
void await_suspend(winrt::impl::coroutine_handle<> resume) noexcept {
|
|
68
68
|
m_callback = [context = resume.address()]() noexcept {
|
|
69
|
-
|
|
69
|
+
winrt::impl::coroutine_handle<>::from_address(context)();
|
|
70
70
|
};
|
|
71
71
|
m_queue.Post(std::move(m_callback));
|
|
72
72
|
}
|
|
@@ -310,7 +310,7 @@ void WinRTWebSocketResource::Connect(string &&url, const Protocols &protocols, c
|
|
|
310
310
|
|
|
311
311
|
if (FAILED(hr)) {
|
|
312
312
|
// See
|
|
313
|
-
// https://docs.microsoft.com/uwp/api/windows.networking.sockets.messagewebsocketmessagereceivedeventargs.getdatareader?view=winrt-
|
|
313
|
+
// https://docs.microsoft.com/uwp/api/windows.networking.sockets.messagewebsocketmessagereceivedeventargs.getdatareader?view=winrt-22621#remarks
|
|
314
314
|
if (hr == WININET_E_CONNECTION_ABORTED) {
|
|
315
315
|
string errorMessage{"[0x80072EFE] Underlying TCP connection suddenly terminated"};
|
|
316
316
|
self->m_errorHandler({errorMessage, ErrorType::Connection});
|
package/Shared/OInstance.cpp
CHANGED
|
@@ -196,8 +196,7 @@ std::unique_ptr<const facebook::react::JSBigString> JsBigStringFromPath(
|
|
|
196
196
|
return facebook::react::FileMappingBigString::fromPath(bundlePath);
|
|
197
197
|
#else
|
|
198
198
|
std::wstring bundlePath;
|
|
199
|
-
|
|
200
|
-
if (devSettings->bundleRootPath._Starts_with("resource://")) {
|
|
199
|
+
if (devSettings->bundleRootPath.starts_with("resource://")) {
|
|
201
200
|
auto uri = winrt::Windows::Foundation::Uri(
|
|
202
201
|
winrt::to_hstring(devSettings->bundleRootPath), winrt::to_hstring(jsBundleRelativePath));
|
|
203
202
|
bundlePath = uri.ToString();
|
package/Shared/Shared.vcxitems
CHANGED
|
@@ -481,6 +481,8 @@
|
|
|
481
481
|
<ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Utils\ThemeUtils.cpp" />
|
|
482
482
|
<ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Views\DevMenu.cpp" />
|
|
483
483
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\cxxreact\Instance.cpp" />
|
|
484
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\cxxreact\JSExecutor.cpp" />
|
|
485
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\graphics\ColorComponents.cpp" />
|
|
484
486
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\runtimescheduler\RuntimeScheduler.cpp" DisableSpecificWarnings="4715;%(DisableSpecificWarnings)" />
|
|
485
487
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\runtimescheduler\RuntimeScheduler_Modern.cpp" DisableSpecificWarnings="4715;%(DisableSpecificWarnings)" />
|
|
486
488
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\runtimescheduler\RuntimeScheduler_Legacy.cpp" DisableSpecificWarnings="4715;%(DisableSpecificWarnings)" />
|
|
@@ -490,17 +492,20 @@
|
|
|
490
492
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\utils\CoreFeatures.cpp" />
|
|
491
493
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\featureflags\ReactNativeFeatureFlags.cpp" />
|
|
492
494
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\featureflags\ReactNativeFeatureFlagsAccessor.cpp" />
|
|
493
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\
|
|
494
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\
|
|
495
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\
|
|
496
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\PageTarget.cpp" />
|
|
497
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\InspectorUtilities.cpp" />
|
|
498
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\Parsing.cpp" />
|
|
495
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\CdpJson.cpp" />
|
|
496
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\ExecutionContext.cpp" />
|
|
497
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\ExecutionContextManager.cpp" />
|
|
499
498
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\FallbackRuntimeAgentDelegate.cpp" />
|
|
499
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\FallbackRuntimeTargetDelegate.cpp" />
|
|
500
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\ConsoleMessage.cpp" />
|
|
501
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\HostAgent.cpp" />
|
|
502
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\HostTarget.cpp" />
|
|
503
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\InspectorUtilities.cpp" />
|
|
504
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\InstanceAgent.cpp" />
|
|
505
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\InstanceTarget.cpp" />
|
|
500
506
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\RuntimeAgent.cpp" />
|
|
501
507
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\RuntimeTarget.cpp" />
|
|
502
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\
|
|
503
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\ExecutionContext.cpp" />
|
|
508
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\RuntimeTargetConsole.cpp" />
|
|
504
509
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\utils\jsi-utils.cpp" />
|
|
505
510
|
</ItemGroup>
|
|
506
511
|
<ItemGroup>
|
|
@@ -508,6 +513,7 @@
|
|
|
508
513
|
</ItemGroup>
|
|
509
514
|
<ItemGroup Condition="'$(UseFabric)' == 'true'">
|
|
510
515
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\config\ReactNativeConfig.cpp" />
|
|
516
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\performance\timeline\PerformanceEntryReporter.cpp" />
|
|
511
517
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\attributedstring\AttributedString.cpp" />
|
|
512
518
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\attributedstring\AttributedStringBox.cpp" DisableSpecificWarnings="4715;%(DisableSpecificWarnings)" />
|
|
513
519
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\view\BaseViewProps.cpp" DisableSpecificWarnings="4459;4715;%(DisableSpecificWarnings)" />
|
|
@@ -517,6 +523,7 @@
|
|
|
517
523
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\componentregistry\ComponentDescriptorProviderRegistry.cpp" />
|
|
518
524
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\componentregistry\ComponentDescriptorRegistry.cpp" />
|
|
519
525
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\componentregistry\componentNameByReactViewName.cpp" />
|
|
526
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\image\ImageComponentDescriptor.cpp" />
|
|
520
527
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\image\ImageEventEmitter.cpp" />
|
|
521
528
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\image\ImageProps.cpp" />
|
|
522
529
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\image\ImageShadowNode.cpp" />
|
|
@@ -536,7 +543,6 @@
|
|
|
536
543
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\ParagraphEventEmitter.cpp" />
|
|
537
544
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\ParagraphProps.cpp" />
|
|
538
545
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\ParagraphShadowNode.cpp" DisableSpecificWarnings="4305;%(DisableSpecificWarnings)" />
|
|
539
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\ParagraphLayoutManager.cpp" />
|
|
540
546
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\RawTextProps.cpp" />
|
|
541
547
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\TextShadowNode.cpp" />
|
|
542
548
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\RawTextShadowNode.cpp" />
|
|
@@ -547,7 +553,6 @@
|
|
|
547
553
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\view\ViewShadowNode.cpp" />
|
|
548
554
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\view\YogaLayoutableShadowNode.cpp" DisableSpecificWarnings="4701;4715;%(DisableSpecificWarnings)" />
|
|
549
555
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\view\YogaStylableProps.cpp" DisableSpecificWarnings="4715;%(DisableSpecificWarnings)" />
|
|
550
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\BatchedEventQueue.cpp" />
|
|
551
556
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\ComponentDescriptor.cpp" />
|
|
552
557
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\ValueFactoryEventPayload.cpp" />
|
|
553
558
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\DynamicPropsUtilities.cpp" />
|
|
@@ -556,7 +561,6 @@
|
|
|
556
561
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\EventEmitter.cpp" />
|
|
557
562
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\EventListener.cpp" />
|
|
558
563
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\EventTarget.cpp" />
|
|
559
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\EventLogger.cpp" />
|
|
560
564
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\EventQueue.cpp" />
|
|
561
565
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\EventQueueProcessor.cpp" />
|
|
562
566
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\LayoutableShadowNode.cpp" />
|
|
@@ -574,10 +578,10 @@
|
|
|
574
578
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\ShadowNodeFragment.cpp" />
|
|
575
579
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\ShadowNodeTraits.cpp" />
|
|
576
580
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\State.cpp" />
|
|
577
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\UnbatchedEventQueue.cpp" />
|
|
578
581
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\InstanceHandle.cpp" />
|
|
579
582
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\debug\DebugStringConvertible.cpp" />
|
|
580
583
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\debug\DebugStringConvertibleItem.cpp" />
|
|
584
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\dom\DOM.cpp" />
|
|
581
585
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\graphics\Color.cpp" />
|
|
582
586
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\graphics\Transform.cpp" />
|
|
583
587
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\imagemanager\ImageResponse.cpp" />
|
|
@@ -591,10 +595,9 @@
|
|
|
591
595
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\ShadowTreeRegistry.cpp" />
|
|
592
596
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\ShadowView.cpp" />
|
|
593
597
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\ShadowViewMutation.cpp" DisableSpecificWarnings="4715;%(DisableSpecificWarnings)" />
|
|
594
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\Stubs.cpp" />
|
|
595
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\StubView.cpp" />
|
|
596
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\StubViewTree.cpp" />
|
|
597
598
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\TelemetryController.cpp" />
|
|
599
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\updateMountedFlag.cpp" />
|
|
600
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\observers\events\EventPerformanceLogger.cpp" />
|
|
598
601
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\scheduler\Scheduler.cpp" />
|
|
599
602
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\scheduler\SurfaceHandler.cpp" />
|
|
600
603
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\scheduler\SurfaceManager.cpp" />
|
|
@@ -604,10 +607,13 @@
|
|
|
604
607
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\uimanager\bindingUtils.cpp" />
|
|
605
608
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\uimanager\PointerEventsProcessor.cpp" />
|
|
606
609
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\uimanager\PointerHoverTracker.cpp" />
|
|
610
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\uimanager\consistency\LatestShadowTreeRevisionProvider.cpp" />
|
|
611
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\uimanager\consistency\LazyShadowTreeRevisionConsistencyManager.cpp" />
|
|
607
612
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\uimanager\SurfaceRegistryBinding.cpp" DisableSpecificWarnings="4715;%(DisableSpecificWarnings)" />
|
|
608
613
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\uimanager\UIManager.cpp" />
|
|
609
614
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\uimanager\UIManagerBinding.cpp" DisableSpecificWarnings="4389;4715;%(DisableSpecificWarnings)" />
|
|
610
615
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\runtime\BufferedRuntimeExecutor.cpp" />
|
|
616
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\runtime\JSRuntimeFactory.cpp" />
|
|
611
617
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\runtime\ReactInstance.cpp" />
|
|
612
618
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\runtime\TimerManager.cpp" />
|
|
613
619
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jserrorhandler\JsErrorHandler.cpp" />
|
|
@@ -310,18 +310,23 @@
|
|
|
310
310
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\featureflags\ReactNativeFeatureFlagsAccessor.cpp" />
|
|
311
311
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\InstanceTarget.cpp" />
|
|
312
312
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\InstanceAgent.cpp" />
|
|
313
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\
|
|
314
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\
|
|
313
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\HostAgent.cpp" />
|
|
314
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\HostTarget.cpp" />
|
|
315
315
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\InspectorUtilities.cpp" />
|
|
316
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\Parsing.cpp" />
|
|
317
316
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\RuntimeAgent.cpp" />
|
|
318
317
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\cxxreact\Instance.cpp" />
|
|
319
318
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\FallbackRuntimeAgentDelegate.cpp" />
|
|
319
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\FallbackRuntimeTargetDelegate.cpp" />
|
|
320
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\ConsoleMessage.cpp" />
|
|
320
321
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\RuntimeTarget.cpp" />
|
|
321
322
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\ExecutionContextManager.cpp" />
|
|
322
323
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\ExecutionContext.cpp" />
|
|
324
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\CdpJson.cpp" />
|
|
323
325
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\utils\jsi-utils.cpp" />
|
|
324
326
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\TextDrawing.cpp" />
|
|
327
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\graphics\ColorComponents.cpp" />
|
|
328
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\cxxreact\JSExecutor.cpp" />
|
|
329
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\RuntimeTargetConsole.cpp" />
|
|
325
330
|
<ClCompile Include="$(MSBuildThisFileDirectory)Networking\NetworkPropertyIds.cpp" />
|
|
326
331
|
</ItemGroup>
|
|
327
332
|
<ItemGroup>
|
|
@@ -16,7 +16,9 @@ BatchingQueueCallInvoker::BatchingQueueCallInvoker(
|
|
|
16
16
|
std::shared_ptr<facebook::react::MessageQueueThread> const &queueThread)
|
|
17
17
|
: m_queueThread(queueThread) {}
|
|
18
18
|
|
|
19
|
-
void BatchingQueueCallInvoker::invokeAsync(
|
|
19
|
+
void BatchingQueueCallInvoker::invokeAsync(
|
|
20
|
+
const std::string &methodName,
|
|
21
|
+
facebook::react::NativeMethodCallFunc &&func) noexcept {
|
|
20
22
|
EnsureQueue();
|
|
21
23
|
m_taskQueue->emplace_back(std::move(func));
|
|
22
24
|
|
|
@@ -58,7 +60,9 @@ void BatchingQueueCallInvoker::quitSynchronous() noexcept {
|
|
|
58
60
|
m_queueThread->quitSynchronous();
|
|
59
61
|
}
|
|
60
62
|
|
|
61
|
-
void BatchingQueueCallInvoker::invokeSync(
|
|
63
|
+
void BatchingQueueCallInvoker::invokeSync(
|
|
64
|
+
const std::string &methodName,
|
|
65
|
+
facebook::react::NativeMethodCallFunc &&func) noexcept {
|
|
62
66
|
assert(false && "Not supported");
|
|
63
67
|
std::terminate();
|
|
64
68
|
}
|
|
@@ -16,12 +16,12 @@ namespace Microsoft::ReactNative {
|
|
|
16
16
|
struct BatchingQueueCallInvoker : facebook::react::NativeMethodCallInvoker {
|
|
17
17
|
BatchingQueueCallInvoker(std::shared_ptr<facebook::react::MessageQueueThread> const &queueThread);
|
|
18
18
|
|
|
19
|
-
void invokeAsync(const std::string &methodName,
|
|
19
|
+
void invokeAsync(const std::string &methodName, facebook::react::NativeMethodCallFunc &&func) noexcept override;
|
|
20
20
|
void EnsureQueue() noexcept;
|
|
21
21
|
void onBatchComplete() noexcept;
|
|
22
22
|
void quitSynchronous() noexcept;
|
|
23
23
|
void PostBatch() noexcept;
|
|
24
|
-
void invokeSync(const std::string &methodName,
|
|
24
|
+
void invokeSync(const std::string &methodName, facebook::react::NativeMethodCallFunc &&func) noexcept override;
|
|
25
25
|
|
|
26
26
|
private:
|
|
27
27
|
std::shared_ptr<facebook::react::MessageQueueThread> m_queueThread;
|
|
@@ -35,7 +35,7 @@ struct lessthrow_await_adapter {
|
|
|
35
35
|
return async.Status() == winrt::Windows::Foundation::AsyncStatus::Completed;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
void await_suspend(
|
|
38
|
+
void await_suspend(winrt::impl::coroutine_handle<> handle) const {
|
|
39
39
|
auto context = winrt::capture<winrt::impl::IContextCallback>(WINRT_IMPL_CoGetObjectContext);
|
|
40
40
|
|
|
41
41
|
async.Completed([handle, context = std::move(context)](auto const &, winrt::Windows::Foundation::AsyncStatus) {
|
|
@@ -43,7 +43,7 @@ struct lessthrow_await_adapter {
|
|
|
43
43
|
args.data = handle.address();
|
|
44
44
|
|
|
45
45
|
auto callback = [](winrt::impl::com_callback_args *args) noexcept -> int32_t {
|
|
46
|
-
|
|
46
|
+
winrt::impl::coroutine_handle<>::from_address(args->data)();
|
|
47
47
|
return S_OK;
|
|
48
48
|
};
|
|
49
49
|
|
|
@@ -13,25 +13,25 @@
|
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
-
struct AppStateSpec_AppStateConstants {
|
|
17
|
-
std::string initialAppState;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
16
|
struct AppStateSpec_AppState {
|
|
21
17
|
std::string app_state;
|
|
22
18
|
};
|
|
23
19
|
|
|
20
|
+
struct AppStateSpec_AppStateConstants {
|
|
21
|
+
std::string initialAppState;
|
|
22
|
+
};
|
|
24
23
|
|
|
25
|
-
|
|
24
|
+
|
|
25
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(AppStateSpec_AppState*) noexcept {
|
|
26
26
|
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
27
|
-
{L"
|
|
27
|
+
{L"app_state", &AppStateSpec_AppState::app_state},
|
|
28
28
|
};
|
|
29
29
|
return fieldMap;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(
|
|
32
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(AppStateSpec_AppStateConstants*) noexcept {
|
|
33
33
|
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
34
|
-
{L"
|
|
34
|
+
{L"initialAppState", &AppStateSpec_AppStateConstants::initialAppState},
|
|
35
35
|
};
|
|
36
36
|
return fieldMap;
|
|
37
37
|
}
|
|
@@ -28,9 +28,6 @@ inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(BlobModuleSpec_Cons
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
struct BlobModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
31
|
-
static constexpr auto constants = std::tuple{
|
|
32
|
-
TypedConstant<BlobModuleSpec_Constants>{0},
|
|
33
|
-
};
|
|
34
31
|
static constexpr auto methods = std::tuple{
|
|
35
32
|
Method<void() noexcept>{0, L"addNetworkingHandler"},
|
|
36
33
|
Method<void(double) noexcept>{1, L"addWebSocketHandler"},
|
|
@@ -42,15 +39,8 @@ struct BlobModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
42
39
|
|
|
43
40
|
template <class TModule>
|
|
44
41
|
static constexpr void ValidateModule() noexcept {
|
|
45
|
-
constexpr auto constantCheckResults = CheckConstants<TModule, BlobModuleSpec>();
|
|
46
42
|
constexpr auto methodCheckResults = CheckMethods<TModule, BlobModuleSpec>();
|
|
47
43
|
|
|
48
|
-
REACT_SHOW_CONSTANT_SPEC_ERRORS(
|
|
49
|
-
0,
|
|
50
|
-
"BlobModuleSpec_Constants",
|
|
51
|
-
" REACT_GET_CONSTANTS(GetConstants) BlobModuleSpec_Constants GetConstants() noexcept {/*implementation*/}\n"
|
|
52
|
-
" REACT_GET_CONSTANTS(GetConstants) static BlobModuleSpec_Constants GetConstants() noexcept {/*implementation*/}\n");
|
|
53
|
-
|
|
54
44
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
55
45
|
0,
|
|
56
46
|
"addNetworkingHandler",
|