react-native-windows 0.77.0 → 0.78.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 +1 -1
- package/Chakra/ChakraTracing.cpp +1 -1
- package/Libraries/Animated/animations/Animation.js +22 -1
- package/Libraries/Animated/animations/DecayAnimation.js +1 -0
- package/Libraries/Animated/animations/SpringAnimation.js +1 -0
- package/Libraries/Animated/animations/TimingAnimation.js +1 -0
- package/Libraries/Animated/nodes/AnimatedAddition.js +9 -2
- package/Libraries/Animated/nodes/AnimatedColor.js +4 -1
- package/Libraries/Animated/nodes/AnimatedDiffClamp.js +10 -2
- package/Libraries/Animated/nodes/AnimatedDivision.js +9 -2
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +5 -1
- package/Libraries/Animated/nodes/AnimatedModulo.js +5 -2
- package/Libraries/Animated/nodes/AnimatedMultiplication.js +9 -2
- package/Libraries/Animated/nodes/AnimatedNode.js +25 -46
- package/Libraries/Animated/nodes/AnimatedObject.js +9 -2
- package/Libraries/Animated/nodes/AnimatedProps.js +5 -1
- package/Libraries/Animated/nodes/AnimatedStyle.js +5 -1
- package/Libraries/Animated/nodes/AnimatedSubtraction.js +9 -2
- package/Libraries/Animated/nodes/AnimatedTracking.js +5 -1
- package/Libraries/Animated/nodes/AnimatedTransform.js +5 -1
- package/Libraries/Animated/nodes/AnimatedValue.js +49 -4
- package/Libraries/Animated/nodes/AnimatedValueXY.js +3 -1
- package/Libraries/Animated/useAnimatedProps.js +0 -43
- package/Libraries/Components/Button.windows.js +3 -0
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +1 -1
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js +3 -1
- package/Libraries/Components/LayoutConformance/LayoutConformance.d.ts +21 -0
- package/Libraries/Components/LayoutConformance/LayoutConformance.js +59 -0
- package/Libraries/Components/LayoutConformance/LayoutConformanceNativeComponent.js +29 -0
- package/Libraries/Components/Pressable/Pressable.windows.js +3 -0
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +1 -0
- package/Libraries/Components/TextInput/TextInput.d.ts +5 -0
- package/Libraries/Components/TextInput/TextInput.flow.js +6 -0
- package/Libraries/Components/TextInput/TextInput.js +6 -0
- package/Libraries/Components/TextInput/TextInput.windows.js +9 -0
- package/Libraries/Components/Touchable/TouchableBounce.windows.js +2 -0
- package/Libraries/Components/Touchable/TouchableNativeFeedback.windows.js +2 -0
- package/Libraries/Components/Touchable/TouchableOpacity.windows.js +2 -0
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.windows.js +2 -0
- package/Libraries/Components/View/View.windows.js +3 -0
- package/Libraries/Components/View/ViewAccessibility.d.ts +7 -2
- package/Libraries/Components/View/ViewAccessibility.windows.js +1 -0
- package/Libraries/Components/View/ViewPropTypes.d.ts +0 -7
- package/Libraries/Components/View/ViewPropTypes.js +0 -9
- package/Libraries/Components/View/ViewPropTypes.windows.js +1 -9
- package/Libraries/Core/ReactNativeVersion.js +2 -2
- package/Libraries/Core/setUpBatchedBridge.js +1 -16
- package/Libraries/EventEmitter/RCTEventEmitter.js +2 -6
- package/Libraries/Image/AssetSourceResolver.js +11 -0
- package/Libraries/Image/AssetSourceResolver.windows.js +11 -0
- package/Libraries/Image/Image.windows.js +2 -0
- package/Libraries/Inspector/BorderBox.js +26 -14
- package/Libraries/Inspector/BoxInspector.js +60 -42
- package/Libraries/Inspector/ElementBox.js +55 -48
- package/Libraries/Inspector/StyleInspector.js +36 -30
- package/Libraries/LayoutAnimation/LayoutAnimation.js +2 -2
- package/Libraries/Lists/FlatList.d.ts +1 -1
- package/Libraries/Modal/Modal.js +2 -0
- package/Libraries/Modal/Modal.windows.js +2 -0
- package/Libraries/NativeComponent/BaseViewConfig.android.js +0 -2
- package/Libraries/NativeComponent/BaseViewConfig.ios.js +0 -2
- package/Libraries/NativeComponent/BaseViewConfig.windows.js +0 -2
- package/Libraries/Network/RCTNetworking.android.js +24 -16
- package/Libraries/Network/RCTNetworking.ios.js +1 -46
- package/Libraries/Network/RCTNetworking.windows.js +1 -46
- package/Libraries/Network/RCTNetworkingEventDefinitions.flow.js +57 -0
- package/Libraries/ReactNative/UIManagerProperties.js +3 -1
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +15828 -26461
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +3907 -2560
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +4399 -2878
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +16102 -26908
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +4034 -2695
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +4535 -3045
- package/Libraries/Renderer/shims/ReactNativeTypes.js +5 -6
- package/Libraries/StyleSheet/processTransform.js +6 -0
- package/Libraries/Text/Text.d.ts +6 -1
- package/Libraries/Text/Text.windows.js +4 -0
- package/Libraries/Text/TextProps.js +2 -2
- package/Libraries/Text/TextProps.windows.js +3 -2
- package/Libraries/Utilities/BackHandler.android.js +5 -4
- package/Libraries/Utilities/BackHandler.ios.js +4 -5
- package/Libraries/Utilities/BackHandler.windows.js +5 -4
- package/Microsoft.ReactNative/CompositionComponentView.idl +13 -1
- package/Microsoft.ReactNative/Fabric/ComponentView.cpp +0 -1
- package/Microsoft.ReactNative/Fabric/Composition/ComponentViewRegistry.cpp +0 -5
- package/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.cpp +92 -17
- package/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.h +9 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionEventHandler.cpp +13 -33
- package/Microsoft.ReactNative/Fabric/Composition/CompositionEventHandler.h +1 -3
- package/Microsoft.ReactNative/Fabric/Composition/CompositionRootAutomationProvider.cpp +43 -5
- package/Microsoft.ReactNative/Fabric/Composition/CompositionRootAutomationProvider.h +2 -1
- package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.cpp +12 -10
- package/Microsoft.ReactNative/Fabric/Composition/ContentIslandComponentView.cpp +11 -9
- package/Microsoft.ReactNative/Fabric/Composition/ContentIslandComponentView.h +1 -1
- package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.cpp +191 -329
- package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.h +3 -61
- package/Microsoft.ReactNative/Fabric/Composition/PortalComponentView.cpp +66 -0
- package/Microsoft.ReactNative/Fabric/Composition/PortalComponentView.h +52 -0
- package/Microsoft.ReactNative/Fabric/Composition/ReactCompositionViewComponentBuilder.cpp +21 -0
- package/Microsoft.ReactNative/Fabric/Composition/ReactCompositionViewComponentBuilder.h +7 -4
- package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.cpp +79 -19
- package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.h +12 -6
- package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.cpp +71 -17
- package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.h +16 -0
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentDescriptor.h +5 -10
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp +4 -4
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputShadowNode.cpp +138 -110
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputShadowNode.h +27 -27
- package/Microsoft.ReactNative/Fabric/Composition/Theme.cpp +1 -1
- package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.cpp +38 -33
- package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.h +0 -2
- package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.cpp +5 -16
- package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.h +0 -3
- package/Microsoft.ReactNative/Fabric/ImageManager.cpp +9 -0
- package/Microsoft.ReactNative/Fabric/WindowsComponentDescriptorRegistry.cpp +0 -2
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/graphics/PlatformColorUtils.cpp +1 -1
- package/Microsoft.ReactNative/IReactCompositionViewComponentBuilder.idl +5 -0
- package/Microsoft.ReactNative/IReactContext.cpp +2 -2
- package/Microsoft.ReactNative/IReactContext.h +1 -1
- package/Microsoft.ReactNative/IReactContext.idl +2 -2
- package/Microsoft.ReactNative/IReactPackageBuilder.idl +3 -3
- package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +97 -87
- package/Microsoft.ReactNative/Modules/AccessibilityInfoModule.cpp +4 -0
- package/Microsoft.ReactNative/Modules/AlertModule.cpp +9 -4
- package/Microsoft.ReactNative/Modules/Animated/NativeAnimatedNodeManager.cpp +1 -1
- package/Microsoft.ReactNative/Modules/Animated/PropsAnimatedNode.cpp +32 -35
- package/Microsoft.ReactNative/Modules/Animated/PropsAnimatedNode.h +7 -4
- package/Microsoft.ReactNative/Modules/AppStateModule.cpp +1 -1
- package/Microsoft.ReactNative/Modules/AppThemeModuleUwp.cpp +2 -2
- package/Microsoft.ReactNative/Modules/AppearanceModule.cpp +2 -2
- package/Microsoft.ReactNative/Modules/DeviceInfoModule.cpp +3 -3
- package/Microsoft.ReactNative/Modules/I18nManagerModule.cpp +1 -1
- package/Microsoft.ReactNative/Modules/LogBoxModule.cpp +7 -5
- package/Microsoft.ReactNative/Modules/LogBoxModule.h +2 -1
- package/Microsoft.ReactNative/Modules/NativeUIManager.cpp +10 -10
- package/Microsoft.ReactNative/Modules/PaperUIManagerModule.cpp +24 -24
- package/Microsoft.ReactNative/Modules/Timing.cpp +2 -2
- package/Microsoft.ReactNative/ReactHost/IReactInstance.h +5 -0
- package/Microsoft.ReactNative/ReactHost/React.h +0 -3
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp +39 -16
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.h +4 -2
- package/Microsoft.ReactNative/ReactNativeHost.cpp +9 -4
- package/Microsoft.ReactNative/ReactNativeIsland.idl +5 -1
- package/Microsoft.ReactNative/ReactPackageBuilder.cpp +3 -3
- package/Microsoft.ReactNative/ReactPackageBuilder.h +4 -4
- package/Microsoft.ReactNative/Utils/Helpers.cpp +0 -2
- package/Microsoft.ReactNative/Views/DevMenu.cpp +6 -6
- package/Microsoft.ReactNative/Views/DevMenu.h +1 -1
- package/Microsoft.ReactNative/Views/ViewManagerBase.cpp +2 -2
- package/Microsoft.ReactNative/Views/ViewPanel.cpp +1 -1
- package/Microsoft.ReactNative/Views/ViewViewManager.cpp +2 -2
- package/Microsoft.ReactNative/XamlUIService.cpp +13 -7
- package/Microsoft.ReactNative/XamlUIService.h +4 -1
- package/Microsoft.ReactNative/XamlUIService.idl +2 -0
- package/Microsoft.ReactNative.Cxx/JSI/JsiAbiApi.h +6 -2
- package/Microsoft.ReactNative.Cxx/ReactContext.h +1 -1
- package/Microsoft.ReactNative.Cxx/XamlUtils.h +12 -0
- package/PropertySheets/Generated/PackageVersion.g.props +3 -3
- package/PropertySheets/React.Cpp.props +3 -0
- package/PropertySheets/WebView2.props +1 -1
- package/PropertySheets/WinUI.props +5 -4
- package/ReactCommon/ReactCommon.vcxproj +5 -1
- package/ReactCommon/ReactCommon.vcxproj.filters +1 -1
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/JSExecutor.cpp +3 -3
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/NativeToJsBridge.cpp +3 -3
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jsi/jsi/test/testlib.cpp +91 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/componentregistry/ComponentDescriptorRegistry.cpp +1 -12
- package/{Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputState.h → ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/textinput/TextInputState.h} +37 -35
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/view/AccessibilityPrimitives.h +1 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/view/accessibilityPropsConversions.h +4 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/imagemanager/ImageRequestParams.h +30 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/runtimescheduler/SchedulerPriorityUtils.h +4 -3
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/uimanager/primitives.h +179 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/runtime/ReactInstance.cpp +43 -57
- package/Shared/HermesRuntimeHolder.cpp +2 -2
- package/Shared/Shared.vcxitems +8 -14
- package/Shared/Shared.vcxitems.filters +4 -16
- package/Shared/Threading/BatchingQueueThread.cpp +3 -3
- package/codegen/NativeCPUTimeSpec.g.h +41 -0
- package/codegen/NativeFantomSpec.g.h +78 -0
- package/codegen/NativePerformanceSpec.g.h +31 -43
- package/codegen/NativeReactNativeFeatureFlagsSpec.g.h +84 -84
- package/codegen/react/components/rnwcore/ActivityIndicatorView.g.h +212 -0
- package/codegen/react/components/rnwcore/AndroidDrawerLayout.g.h +295 -0
- package/codegen/react/components/rnwcore/AndroidHorizontalScrollContentView.g.h +200 -0
- package/codegen/react/components/rnwcore/AndroidProgressBar.g.h +224 -0
- package/codegen/react/components/rnwcore/AndroidSwipeRefreshLayout.g.h +250 -0
- package/codegen/react/components/rnwcore/AndroidSwitch.g.h +267 -0
- package/codegen/react/components/rnwcore/DebuggingOverlay.g.h +234 -0
- package/codegen/react/components/rnwcore/InputAccessory.g.h +200 -0
- package/codegen/react/components/rnwcore/ModalHostView.g.h +283 -0
- package/codegen/react/components/rnwcore/PullToRefreshView.g.h +246 -0
- package/codegen/react/components/rnwcore/SafeAreaView.g.h +197 -0
- package/codegen/react/components/rnwcore/Switch.g.h +263 -0
- package/codegen/react/components/rnwcore/UnimplementedNativeView.g.h +200 -0
- package/codegen/rnwcoreJSI-generated.cpp +90 -57
- package/codegen/rnwcoreJSI.h +241 -104
- package/index.js +5 -0
- package/index.windows.js +5 -0
- package/just-task.js +1 -1
- package/package.json +25 -26
- package/src/private/animated/NativeAnimatedValidation.js +1 -1
- package/src/private/featureflags/ReactNativeFeatureFlags.js +33 -27
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +5 -5
- package/src/private/renderer/errorhandling/ErrorHandlers.js +12 -55
- package/src/private/specs/modules/{NativeJSCSamplingProfiler.js → NativeCPUTime.js} +7 -2
- package/src/private/specs/modules/NativeFantom.js +37 -0
- package/src/private/utilities/ensureInstance.js +21 -0
- package/src/private/webapis/dom/nodes/ReactNativeElement.js +49 -6
- package/src/private/webapis/dom/nodes/ReadOnlyNode.js +17 -9
- package/src/private/webapis/intersectionobserver/IntersectionObserver.js +11 -11
- package/src/private/webapis/intersectionobserver/IntersectionObserverEntry.js +1 -1
- package/src/private/webapis/intersectionobserver/IntersectionObserverManager.js +1 -1
- package/src/private/webapis/intersectionobserver/specs/NativeIntersectionObserver.js +1 -0
- package/src/private/webapis/performance/Performance.js +0 -12
- package/src/private/webapis/performance/specs/NativePerformance.js +0 -11
- package/types/index.d.ts +1 -0
- package/Libraries/HeapCapture/HeapCapture.js +0 -29
- package/Libraries/HeapCapture/NativeJSCHeapCapture.js +0 -13
- package/Libraries/Performance/NativeJSCSamplingProfiler.js +0 -13
- package/Libraries/Performance/SamplingProfiler.js +0 -39
- package/Libraries/ReactNative/__mocks__/FabricUIManager.js +0 -334
- package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentDescriptor.h +0 -39
- package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewShadowNode.cpp +0 -18
- package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewShadowNode.h +0 -39
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputState.cpp +0 -34
- package/Microsoft.ReactNative/Fabric/ReactNativeConfigProperties.cpp +0 -53
- package/Microsoft.ReactNative/Fabric/ReactNativeConfigProperties.h +0 -26
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/core/LayoutableShadowNode.cpp +0 -363
- package/codegen/NativeJSCSamplingProfilerSpec.g.h +0 -35
- package/src/private/webapis/dom/nodes/specs/__mocks__/NativeDOMMock.js +0 -413
- package/src/private/webapis/intersectionobserver/specs/__mocks__/NativeIntersectionObserver.js +0 -181
- package/src/private/webapis/mutationobserver/specs/__mocks__/NativeMutationObserver.js +0 -327
|
@@ -22,5 +22,14 @@ ImageRequest ImageManager::requestImage(const ImageSource &imageSource, SurfaceI
|
|
|
22
22
|
return ((Microsoft::ReactNative::WindowsImageManager *)self_)->requestImage(imageSource, surfaceId);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
ImageRequest ImageManager::requestImage(
|
|
26
|
+
const ImageSource &imageSource,
|
|
27
|
+
SurfaceId /*surfaceId*/,
|
|
28
|
+
const ImageRequestParams & /*imageRequestParams*/,
|
|
29
|
+
Tag /*tag*/) const {
|
|
30
|
+
// Not implemented.
|
|
31
|
+
return {imageSource, nullptr, {}};
|
|
32
|
+
}
|
|
33
|
+
|
|
25
34
|
} // namespace react
|
|
26
35
|
} // namespace facebook
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
#include <Fabric/AbiComponentDescriptor.h>
|
|
8
8
|
#include <Fabric/AbiViewComponentDescriptor.h>
|
|
9
|
-
#include <Fabric/Composition/Modal/WindowsModalHostViewComponentDescriptor.h>
|
|
10
9
|
#include <Fabric/Composition/TextInput/WindowsTextInputComponentDescriptor.h>
|
|
11
10
|
#include <react/components/rnwcore/ComponentDescriptors.h>
|
|
12
11
|
#include <react/renderer/components/image/ImageComponentDescriptor.h>
|
|
@@ -37,7 +36,6 @@ WindowsComponentDescriptorRegistry::WindowsComponentDescriptorRegistry()
|
|
|
37
36
|
facebook::react::ActivityIndicatorViewComponentDescriptor>());
|
|
38
37
|
add(facebook::react::concreteComponentDescriptorProvider<facebook::react::DebuggingOverlayComponentDescriptor>());
|
|
39
38
|
add(facebook::react::concreteComponentDescriptorProvider<facebook::react::ImageComponentDescriptor>());
|
|
40
|
-
add(facebook::react::concreteComponentDescriptorProvider<facebook::react::WindowsModalHostViewComponentDescriptor>());
|
|
41
39
|
add(facebook::react::concreteComponentDescriptorProvider<facebook::react::ParagraphComponentDescriptor>());
|
|
42
40
|
add(facebook::react::concreteComponentDescriptorProvider<facebook::react::RawTextComponentDescriptor>());
|
|
43
41
|
add(facebook::react::concreteComponentDescriptorProvider<facebook::react::ScrollViewComponentDescriptor>());
|
package/Microsoft.ReactNative/Fabric/platform/react/renderer/graphics/PlatformColorUtils.cpp
CHANGED
|
@@ -16,7 +16,7 @@ winrt::Windows::UI::Color ResolvePlatformColor(const std::vector<std::string> &s
|
|
|
16
16
|
for (auto platformColor : semanticItems) {
|
|
17
17
|
#ifndef CORE_ABI
|
|
18
18
|
// If XAML is loaded, look in application resources
|
|
19
|
-
if (xaml::
|
|
19
|
+
if (xaml::TryGetCurrentUwpXamlApplication()) {
|
|
20
20
|
xaml::Media::Brush brush{Microsoft::ReactNative::BrushFromColorObject(platformColor)};
|
|
21
21
|
if (auto scb{brush.try_as<xaml::Media::SolidColorBrush>()}) {
|
|
22
22
|
return scb.Color();
|
|
@@ -21,6 +21,10 @@ namespace Microsoft.ReactNative.Composition
|
|
|
21
21
|
[experimental]
|
|
22
22
|
delegate void ComponentIslandComponentViewInitializer(ContentIslandComponentView view);
|
|
23
23
|
|
|
24
|
+
[webhosthidden]
|
|
25
|
+
[experimental]
|
|
26
|
+
delegate void PortalComponentViewInitializer(PortalComponentView view);
|
|
27
|
+
|
|
24
28
|
[experimental]
|
|
25
29
|
[webhosthidden]
|
|
26
30
|
delegate Microsoft.UI.Composition.Visual CreateVisualDelegate(Microsoft.ReactNative.ComponentView view);
|
|
@@ -55,6 +59,7 @@ namespace Microsoft.ReactNative.Composition
|
|
|
55
59
|
{
|
|
56
60
|
void SetViewComponentViewInitializer(ViewComponentViewInitializer initializer);
|
|
57
61
|
void SetContentIslandComponentViewInitializer(ComponentIslandComponentViewInitializer initializer);
|
|
62
|
+
void SetPortalComponentViewInitializer(PortalComponentViewInitializer initializer);
|
|
58
63
|
void SetCreateVisualHandler(CreateVisualDelegate impl);
|
|
59
64
|
void SetViewFeatures(ComponentViewFeatures viewFeatures);
|
|
60
65
|
void SetUpdateLayoutMetricsHandler(UpdateLayoutMetricsDelegate impl);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
#include "pch.h"
|
|
5
5
|
#include "IReactContext.h"
|
|
6
6
|
#include "DynamicWriter.h"
|
|
7
|
-
#
|
|
7
|
+
#if !defined(CORE_ABI) && !defined(USE_FABRIC)
|
|
8
8
|
#include "XamlUIService.h"
|
|
9
9
|
#endif
|
|
10
10
|
|
|
@@ -121,7 +121,7 @@ LoadingState ReactContext::LoadingState() noexcept {
|
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
#
|
|
124
|
+
#if !defined(CORE_ABI) && !defined(USE_FABRIC)
|
|
125
125
|
// Deprecated: Use XamlUIService directly.
|
|
126
126
|
void ReactContext::DispatchEvent(
|
|
127
127
|
xaml::FrameworkElement const &view,
|
|
@@ -46,7 +46,7 @@ struct ReactContext : winrt::implements<ReactContext, IReactContext> {
|
|
|
46
46
|
IInspectable JSRuntime() noexcept;
|
|
47
47
|
LoadingState LoadingState() noexcept;
|
|
48
48
|
|
|
49
|
-
#
|
|
49
|
+
#if !defined(CORE_ABI) && !defined(USE_FABRIC)
|
|
50
50
|
void DispatchEvent(
|
|
51
51
|
xaml::FrameworkElement const &view,
|
|
52
52
|
hstring const &eventName,
|
|
@@ -5,7 +5,7 @@ import "IJSValueWriter.idl"; // The import is to be deprecated with IReactContex
|
|
|
5
5
|
import "IReactNotificationService.idl";
|
|
6
6
|
import "IReactPropertyBag.idl";
|
|
7
7
|
|
|
8
|
-
#
|
|
8
|
+
#if !defined(CORE_ABI) && !defined(USE_FABRIC)
|
|
9
9
|
#include "NamespaceRedirect.h" // The include is to be deprecated with IReactContext::DispatchEvent
|
|
10
10
|
#endif
|
|
11
11
|
|
|
@@ -185,7 +185,7 @@ namespace Microsoft.ReactNative
|
|
|
185
185
|
"It is an experimental property that may be removed or changed in a future version.")
|
|
186
186
|
Object JSRuntime { get; };
|
|
187
187
|
|
|
188
|
-
#
|
|
188
|
+
#if !defined(CORE_ABI) && !defined(USE_FABRIC)
|
|
189
189
|
[deprecated("Use @XamlUIService.DispatchEvent instead", deprecate, 1)]
|
|
190
190
|
DOC_STRING("Deprecated property. Use @XamlUIService.DispatchEvent instead. It will be removed in a future version.")
|
|
191
191
|
void DispatchEvent(XAML_NAMESPACE.FrameworkElement view, String eventName, JSValueArgWriter eventDataArgWriter);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import "IReactContext.idl";
|
|
5
5
|
import "IReactModuleBuilder.idl";
|
|
6
|
-
#
|
|
6
|
+
#if !defined(CORE_ABI) && !defined(USE_FABRIC)
|
|
7
7
|
import "IViewManager.idl";
|
|
8
8
|
#endif
|
|
9
9
|
|
|
@@ -14,7 +14,7 @@ namespace Microsoft.ReactNative
|
|
|
14
14
|
DOC_STRING("Provides information about a custom native module. See @IReactModuleBuilder.")
|
|
15
15
|
delegate Object ReactModuleProvider(IReactModuleBuilder moduleBuilder);
|
|
16
16
|
|
|
17
|
-
#
|
|
17
|
+
#if !defined(CORE_ABI) && !defined(USE_FABRIC)
|
|
18
18
|
DOC_STRING("Provides information about a custom view manager. See @IViewManager.")
|
|
19
19
|
delegate IViewManager ReactViewManagerProvider();
|
|
20
20
|
#endif
|
|
@@ -32,7 +32,7 @@ namespace Microsoft.ReactNative
|
|
|
32
32
|
"NOTE: TurboModules using JSI directly will not run correctly while using @ReactInstanceSettings.UseWebDebugger")
|
|
33
33
|
void AddTurboModule(String moduleName, ReactModuleProvider moduleProvider);
|
|
34
34
|
|
|
35
|
-
#
|
|
35
|
+
#if !defined(CORE_ABI) && !defined(USE_FABRIC)
|
|
36
36
|
DOC_STRING("Adds a custom view manager. See @ReactViewManagerProvider.")
|
|
37
37
|
void AddViewManager(String viewManagerName, ReactViewManagerProvider viewManagerProvider);
|
|
38
38
|
#endif
|
|
@@ -188,16 +188,11 @@
|
|
|
188
188
|
</ItemDefinitionGroup>
|
|
189
189
|
<ItemGroup>
|
|
190
190
|
<ClInclude Include="ABICxxModule.h" />
|
|
191
|
-
<ClInclude Include="ABIViewManager.h" />
|
|
192
191
|
<ClInclude Include="Base\CxxReactIncludes.h" />
|
|
193
192
|
<ClInclude Include="Base\FollyIncludes.h" />
|
|
194
193
|
<ClInclude Include="ReactHost\JSCallInvokerScheduler.h" />
|
|
195
194
|
<ClInclude Include="Utils\ShadowNodeTypeUtils.h" />
|
|
196
195
|
<ClInclude Include="Utils\BatchingEventEmitter.h" />
|
|
197
|
-
<ClInclude Include="DevMenuControl.h">
|
|
198
|
-
<DependentUpon>DevMenuControl.xaml</DependentUpon>
|
|
199
|
-
<SubType>Code</SubType>
|
|
200
|
-
</ClInclude>
|
|
201
196
|
<ClInclude Include="DocString.h" />
|
|
202
197
|
<ClInclude Include="DynamicReader.h">
|
|
203
198
|
<DependentUpon>IJSValueReader.idl</DependentUpon>
|
|
@@ -208,7 +203,6 @@
|
|
|
208
203
|
<ClInclude Include="JSDispatcherWriter.h">
|
|
209
204
|
<DependentUpon>IJSValueWriter.idl</DependentUpon>
|
|
210
205
|
</ClInclude>
|
|
211
|
-
<ClInclude Include="GlyphViewManager.h" />
|
|
212
206
|
<ClInclude Include="HResult.h" />
|
|
213
207
|
<ClInclude Include="IReactDispatcher.h">
|
|
214
208
|
<DependentUpon>IReactDispatcher.idl</DependentUpon>
|
|
@@ -265,20 +259,14 @@
|
|
|
265
259
|
<ClInclude Include="Modules\ImageViewManagerModule.h" />
|
|
266
260
|
<ClInclude Include="Modules\LinkingManagerModule.h" />
|
|
267
261
|
<ClInclude Include="Modules\LogBoxModule.h" />
|
|
268
|
-
<ClInclude Include="Modules\NativeUIManager.h" />
|
|
269
262
|
<ClInclude Include="Modules\ReactRootViewTagGenerator.h" />
|
|
270
263
|
<ClInclude Include="Modules\TimingModule.h" />
|
|
271
|
-
<ClInclude Include="Modules\PaperUIManagerModule.h" />
|
|
272
264
|
<ClInclude Include="NativeModulesProvider.h" />
|
|
273
265
|
<ClInclude Include="ReactHost\IReactInstance.h" />
|
|
274
|
-
<ClInclude Include="ReactHost\ViewManagerProvider.h" />
|
|
275
266
|
<ClInclude Include="RedBoxErrorInfo.h" />
|
|
276
267
|
<ClInclude Include="RedBoxErrorFrameInfo.h" />
|
|
277
268
|
<ClInclude Include="TurboModulesProvider.h" />
|
|
278
269
|
<ClInclude Include="Pch\pch.h" />
|
|
279
|
-
<ClInclude Include="ReactApplication.h">
|
|
280
|
-
<DependentUpon>ReactApplication.idl</DependentUpon>
|
|
281
|
-
</ClInclude>
|
|
282
270
|
<ClInclude Include="IReactContext.h">
|
|
283
271
|
<DependentUpon>IReactContext.idl</DependentUpon>
|
|
284
272
|
<SubType>Code</SubType>
|
|
@@ -317,7 +305,6 @@
|
|
|
317
305
|
<DependentUpon>Timer.idl</DependentUpon>
|
|
318
306
|
<SubType>Code</SubType>
|
|
319
307
|
</ClInclude>
|
|
320
|
-
<ClInclude Include="Utils\AccessibilityUtils.h" />
|
|
321
308
|
<ClInclude Include="Utils\Helpers.h" />
|
|
322
309
|
<ClInclude Include="Utils\KeyboardUtils.h" />
|
|
323
310
|
<ClInclude Include="Utils\LocalBundleReader.h" />
|
|
@@ -331,9 +318,57 @@
|
|
|
331
318
|
<ClInclude Include="Utils\UwpScriptStore.h" />
|
|
332
319
|
<ClInclude Include="Utils\ValueUtils.h" />
|
|
333
320
|
<ClInclude Include="Utils\XamlIslandUtils.h" />
|
|
321
|
+
<ClInclude Include="Utils\XamlUtils.h" />
|
|
322
|
+
<ClInclude Include="Views\DevMenu.h" />
|
|
323
|
+
<ClInclude Include="ReactPackageBuilder.h">
|
|
324
|
+
<DependentUpon>IReactPackageBuilder.idl</DependentUpon>
|
|
325
|
+
</ClInclude>
|
|
326
|
+
<ClInclude Include="IReactPropertyBag.h">
|
|
327
|
+
<DependentUpon>IReactPropertyBag.idl</DependentUpon>
|
|
328
|
+
<SubType>Code</SubType>
|
|
329
|
+
</ClInclude>
|
|
330
|
+
<ClInclude Include="RedBox.h" />
|
|
331
|
+
<ClInclude Include="ReactSupport.h" />
|
|
332
|
+
<ClInclude Include="TestHook.h" />
|
|
333
|
+
<ClInclude Include="QuirkSettings.h">
|
|
334
|
+
<DependentUpon>QuirkSettings.idl</DependentUpon>
|
|
335
|
+
<SubType>Code</SubType>
|
|
336
|
+
</ClInclude>
|
|
337
|
+
<ClInclude Include="ReactPointerEventArgs.h">
|
|
338
|
+
<DependentUpon>ReactPointerEventArgs.idl</DependentUpon>
|
|
339
|
+
<SubType>Code</SubType>
|
|
340
|
+
</ClInclude>
|
|
341
|
+
<ClInclude Include="XamlUIService.h">
|
|
342
|
+
<DependentUpon>XamlUIService.idl</DependentUpon>
|
|
343
|
+
<SubType>Code</SubType>
|
|
344
|
+
</ClInclude>
|
|
345
|
+
</ItemGroup>
|
|
346
|
+
<!-- Paper-only ClInclude -->
|
|
347
|
+
<ItemGroup Condition="'$(UseFabric)' != 'true'">
|
|
348
|
+
<ClInclude Include="ABIViewManager.h" />
|
|
349
|
+
<ClInclude Include="DevMenuControl.h">
|
|
350
|
+
<DependentUpon>DevMenuControl.xaml</DependentUpon>
|
|
351
|
+
<SubType>Code</SubType>
|
|
352
|
+
</ClInclude>
|
|
353
|
+
<ClInclude Include="GlyphViewManager.h" />
|
|
354
|
+
<ClInclude Include="LayoutService.h">
|
|
355
|
+
<DependentUpon>LayoutService.idl</DependentUpon>
|
|
356
|
+
<SubType>Code</SubType>
|
|
357
|
+
</ClInclude>
|
|
358
|
+
<ClInclude Include="Modules\NativeUIManager.h" />
|
|
359
|
+
<ClInclude Include="Modules\PaperUIManagerModule.h" />
|
|
360
|
+
<ClInclude Include="ReactApplication.h">
|
|
361
|
+
<DependentUpon>ReactApplication.idl</DependentUpon>
|
|
362
|
+
</ClInclude>
|
|
363
|
+
<ClInclude Include="ReactHost\ViewManagerProvider.h" />
|
|
364
|
+
<ClInclude Include="ReactRootView.h">
|
|
365
|
+
<DependentUpon>ReactRootView.idl</DependentUpon>
|
|
366
|
+
<SubType>Code</SubType>
|
|
367
|
+
</ClInclude>
|
|
368
|
+
<ClInclude Include="Utils\AccessibilityUtils.h" />
|
|
369
|
+
<ClInclude Include="ViewManagersProvider.h" />
|
|
334
370
|
<ClInclude Include="Views\ActivityIndicatorViewManager.h" />
|
|
335
371
|
<ClInclude Include="Views\ControlViewManager.h" />
|
|
336
|
-
<ClInclude Include="Views\DevMenu.h" />
|
|
337
372
|
<ClInclude Include="Views\DynamicAutomationPeer.h" />
|
|
338
373
|
<ClInclude Include="Views\DynamicAutomationProperties.h" />
|
|
339
374
|
<ClInclude Include="Views\DynamicValueProvider.h" />
|
|
@@ -384,55 +419,17 @@
|
|
|
384
419
|
<ClInclude Include="Views\ViewViewManager.h" />
|
|
385
420
|
<ClInclude Include="Views\VirtualTextViewManager.h" />
|
|
386
421
|
<ClInclude Include="Views\XamlFeatures.h" />
|
|
387
|
-
<ClInclude Include="XamlLoadState.h" />
|
|
388
|
-
<ClInclude Include="LayoutService.h">
|
|
389
|
-
<DependentUpon>LayoutService.idl</DependentUpon>
|
|
390
|
-
<SubType>Code</SubType>
|
|
391
|
-
</ClInclude>
|
|
392
|
-
<ClInclude Include="XamlUIService.h">
|
|
393
|
-
<DependentUpon>XamlUIService.idl</DependentUpon>
|
|
394
|
-
<SubType>Code</SubType>
|
|
395
|
-
</ClInclude>
|
|
396
|
-
<ClInclude Include="ReactPackageBuilder.h">
|
|
397
|
-
<DependentUpon>IReactPackageBuilder.idl</DependentUpon>
|
|
398
|
-
</ClInclude>
|
|
399
|
-
<ClInclude Include="IReactPropertyBag.h">
|
|
400
|
-
<DependentUpon>IReactPropertyBag.idl</DependentUpon>
|
|
401
|
-
<SubType>Code</SubType>
|
|
402
|
-
</ClInclude>
|
|
403
|
-
<ClInclude Include="ReactRootView.h">
|
|
404
|
-
<DependentUpon>ReactRootView.idl</DependentUpon>
|
|
405
|
-
<SubType>Code</SubType>
|
|
406
|
-
</ClInclude>
|
|
407
|
-
<ClInclude Include="RedBox.h" />
|
|
408
|
-
<ClInclude Include="ReactSupport.h" />
|
|
409
|
-
<ClInclude Include="TestHook.h" />
|
|
410
|
-
<ClInclude Include="QuirkSettings.h">
|
|
411
|
-
<DependentUpon>QuirkSettings.idl</DependentUpon>
|
|
412
|
-
<SubType>Code</SubType>
|
|
413
|
-
</ClInclude>
|
|
414
|
-
<ClInclude Include="ViewManagersProvider.h" />
|
|
415
422
|
<ClInclude Include="XamlHelper.h">
|
|
416
423
|
<DependentUpon>XamlHelper.idl</DependentUpon>
|
|
417
424
|
<SubType>Code</SubType>
|
|
418
425
|
</ClInclude>
|
|
426
|
+
<ClInclude Include="XamlLoadState.h" />
|
|
419
427
|
<ClInclude Include="XamlView.h" />
|
|
420
|
-
<ClInclude Include="ReactPointerEventArgs.h">
|
|
421
|
-
<DependentUpon>ReactPointerEventArgs.idl</DependentUpon>
|
|
422
|
-
<SubType>Code</SubType>
|
|
423
|
-
</ClInclude>
|
|
424
428
|
</ItemGroup>
|
|
425
429
|
<ItemGroup>
|
|
426
430
|
<ClCompile Include="ABICxxModule.cpp" />
|
|
427
|
-
<ClCompile Include="ABIViewManager.cpp" />
|
|
428
|
-
<ClCompile Include="Base\CoreUIManagers.cpp" />
|
|
429
431
|
<ClCompile Include="Utils\BatchingEventEmitter.cpp" />
|
|
430
432
|
<ClCompile Include="CxxReactUWP\JSBigString.cpp" />
|
|
431
|
-
<ClCompile Include="DevMenuControl.cpp">
|
|
432
|
-
<DependentUpon>DevMenuControl.xaml</DependentUpon>
|
|
433
|
-
<SubType>Code</SubType>
|
|
434
|
-
</ClCompile>
|
|
435
|
-
<ClCompile Include="GlyphViewManager.cpp" />
|
|
436
433
|
<ClCompile Include="Modules\AccessibilityInfoModule.cpp" />
|
|
437
434
|
<ClCompile Include="Modules\AlertModule.cpp" />
|
|
438
435
|
<ClCompile Include="Modules\Animated\AdditionAnimatedNode.cpp" />
|
|
@@ -467,8 +464,6 @@
|
|
|
467
464
|
<ClCompile Include="Modules\ImageViewManagerModule.cpp" />
|
|
468
465
|
<ClCompile Include="Modules\LinkingManagerModule.cpp" />
|
|
469
466
|
<ClCompile Include="Modules\LogBoxModule.cpp" />
|
|
470
|
-
<ClCompile Include="Modules\NativeUIManager.cpp" />
|
|
471
|
-
<ClCompile Include="Modules\PaperUIManagerModule.cpp" />
|
|
472
467
|
<ClCompile Include="ReactPointerEventArgs.cpp">
|
|
473
468
|
<DependentUpon>ReactPointerEventArgs.idl</DependentUpon>
|
|
474
469
|
<SubType>Code</SubType>
|
|
@@ -476,11 +471,7 @@
|
|
|
476
471
|
<ClCompile Include="Pch\pch.cpp">
|
|
477
472
|
<PrecompiledHeader>Create</PrecompiledHeader>
|
|
478
473
|
</ClCompile>
|
|
479
|
-
<ClCompile Include="ReactApplication.cpp">
|
|
480
|
-
<DependentUpon>ReactApplication.idl</DependentUpon>
|
|
481
|
-
</ClCompile>
|
|
482
474
|
<ClCompile Include="$(GeneratedFilesDir)module.g.cpp" />
|
|
483
|
-
<ClCompile Include="Utils\AccessibilityUtils.cpp" />
|
|
484
475
|
<ClCompile Include="Utils\KeyboardUtils.cpp" />
|
|
485
476
|
<ClCompile Include="Utils\LocalBundleReader.cpp" />
|
|
486
477
|
<ClCompile Include="Utils\ResourceBrushUtils.cpp" />
|
|
@@ -488,6 +479,37 @@
|
|
|
488
479
|
<ClCompile Include="Utils\UwpScriptStore.cpp" />
|
|
489
480
|
<ClCompile Include="Utils\ValueUtils.cpp" />
|
|
490
481
|
<ClCompile Include="Utils\XamlIslandUtils.cpp" />
|
|
482
|
+
<ClCompile Include="ReactSupport.cpp" />
|
|
483
|
+
<ClCompile Include="TestHook.cpp" />
|
|
484
|
+
<ClCompile Include="XamlUIService.cpp">
|
|
485
|
+
<DependentUpon>XamlUIService.idl</DependentUpon>
|
|
486
|
+
<SubType>Code</SubType>
|
|
487
|
+
</ClCompile>
|
|
488
|
+
</ItemGroup>
|
|
489
|
+
<!-- Paper-only ClCompile -->
|
|
490
|
+
<ItemGroup Condition="'$(UseFabric)' != 'true'">
|
|
491
|
+
<ClCompile Include="ABIViewManager.cpp" />
|
|
492
|
+
<ClCompile Include="Base\CoreUIManagers.cpp" />
|
|
493
|
+
<ClCompile Include="DevMenuControl.cpp">
|
|
494
|
+
<DependentUpon>DevMenuControl.xaml</DependentUpon>
|
|
495
|
+
<SubType>Code</SubType>
|
|
496
|
+
</ClCompile>
|
|
497
|
+
<ClCompile Include="GlyphViewManager.cpp" />
|
|
498
|
+
<ClCompile Include="LayoutService.cpp">
|
|
499
|
+
<DependentUpon>LayoutService.idl</DependentUpon>
|
|
500
|
+
<SubType>Code</SubType>
|
|
501
|
+
</ClCompile>
|
|
502
|
+
<ClCompile Include="Modules\NativeUIManager.cpp" />
|
|
503
|
+
<ClCompile Include="Modules\PaperUIManagerModule.cpp" />
|
|
504
|
+
<ClCompile Include="ReactApplication.cpp">
|
|
505
|
+
<DependentUpon>ReactApplication.idl</DependentUpon>
|
|
506
|
+
</ClCompile>
|
|
507
|
+
<ClCompile Include="ReactRootView.cpp">
|
|
508
|
+
<DependentUpon>ReactRootView.idl</DependentUpon>
|
|
509
|
+
<SubType>Code</SubType>
|
|
510
|
+
</ClCompile>
|
|
511
|
+
<ClCompile Include="Utils\AccessibilityUtils.cpp" />
|
|
512
|
+
<ClCompile Include="ViewManagersProvider.cpp" />
|
|
491
513
|
<ClCompile Include="Views\ActivityIndicatorViewManager.cpp" />
|
|
492
514
|
<ClCompile Include="Views\ConfigureBundlerDlg.cpp" />
|
|
493
515
|
<ClCompile Include="Views\ControlViewManager.cpp" />
|
|
@@ -536,53 +558,41 @@
|
|
|
536
558
|
<ClCompile Include="Views\ViewViewManager.cpp" />
|
|
537
559
|
<ClCompile Include="Views\VirtualTextViewManager.cpp" />
|
|
538
560
|
<ClCompile Include="Views\XamlFeatures.cpp" />
|
|
539
|
-
<ClCompile Include="XamlLoadState.cpp" />
|
|
540
|
-
<ClCompile Include="XamlView.cpp" />
|
|
541
|
-
<ClCompile Include="LayoutService.cpp">
|
|
542
|
-
<DependentUpon>LayoutService.idl</DependentUpon>
|
|
543
|
-
<SubType>Code</SubType>
|
|
544
|
-
</ClCompile>
|
|
545
|
-
<ClCompile Include="XamlUIService.cpp">
|
|
546
|
-
<DependentUpon>XamlUIService.idl</DependentUpon>
|
|
547
|
-
<SubType>Code</SubType>
|
|
548
|
-
</ClCompile>
|
|
549
|
-
<ClCompile Include="ReactRootView.cpp">
|
|
550
|
-
<DependentUpon>ReactRootView.idl</DependentUpon>
|
|
551
|
-
<SubType>Code</SubType>
|
|
552
|
-
</ClCompile>
|
|
553
|
-
<ClCompile Include="ReactSupport.cpp" />
|
|
554
|
-
<ClCompile Include="TestHook.cpp" />
|
|
555
|
-
<ClCompile Include="ViewManagersProvider.cpp" />
|
|
556
561
|
<ClCompile Include="XamlHelper.cpp">
|
|
557
562
|
<DependentUpon>XamlHelper.idl</DependentUpon>
|
|
558
563
|
<SubType>Code</SubType>
|
|
559
564
|
</ClCompile>
|
|
565
|
+
<ClCompile Include="XamlLoadState.cpp" />
|
|
566
|
+
<ClCompile Include="XamlView.cpp" />
|
|
560
567
|
</ItemGroup>
|
|
561
568
|
<ItemGroup>
|
|
562
569
|
<Midl Include="DesktopWindowMessage.idl" />
|
|
570
|
+
<Midl Include="DocString.idl" />
|
|
571
|
+
<Midl Include="ReactPointerEventArgs.idl" />
|
|
572
|
+
<Midl Include="XamlUIService.idl">
|
|
573
|
+
<SubType>Designer</SubType>
|
|
574
|
+
</Midl>
|
|
575
|
+
</ItemGroup>
|
|
576
|
+
<!-- Paper-only Midl -->
|
|
577
|
+
<ItemGroup Condition="'$(UseFabric)' != 'true'">
|
|
563
578
|
<Midl Include="DevMenuControl.idl">
|
|
564
579
|
<DependentUpon>DevMenuControl.xaml</DependentUpon>
|
|
565
580
|
<SubType>Code</SubType>
|
|
566
581
|
</Midl>
|
|
567
|
-
<Midl Include="DocString.idl" />
|
|
568
582
|
<Midl Include="IViewManager.idl" />
|
|
569
583
|
<Midl Include="IViewManagerCore.idl" />
|
|
570
|
-
<Midl Include="ReactApplication.idl" />
|
|
571
|
-
<Midl Include="Views\cppwinrt\AccessibilityAction.idl" />
|
|
572
|
-
<Midl Include="Views\cppwinrt\Effects.idl" />
|
|
573
|
-
<Midl Include="Views\cppwinrt\DynamicAutomationPeer.idl" />
|
|
574
|
-
<Midl Include="Views\cppwinrt\ViewPanel.idl" />
|
|
575
584
|
<Midl Include="LayoutService.idl">
|
|
576
585
|
<SubType>Designer</SubType>
|
|
577
586
|
</Midl>
|
|
578
|
-
<Midl Include="
|
|
579
|
-
<SubType>Designer</SubType>
|
|
580
|
-
</Midl>
|
|
587
|
+
<Midl Include="ReactApplication.idl" />
|
|
581
588
|
<Midl Include="ReactRootView.idl">
|
|
582
589
|
<SubType>Designer</SubType>
|
|
583
590
|
</Midl>
|
|
591
|
+
<Midl Include="Views\cppwinrt\AccessibilityAction.idl" />
|
|
592
|
+
<Midl Include="Views\cppwinrt\Effects.idl" />
|
|
593
|
+
<Midl Include="Views\cppwinrt\DynamicAutomationPeer.idl" />
|
|
594
|
+
<Midl Include="Views\cppwinrt\ViewPanel.idl" />
|
|
584
595
|
<Midl Include="XamlHelper.idl" />
|
|
585
|
-
<Midl Include="ReactPointerEventArgs.idl" />
|
|
586
596
|
</ItemGroup>
|
|
587
597
|
<ItemGroup>
|
|
588
598
|
<None Include="microsoft.reactnative.def" />
|
|
@@ -621,7 +631,7 @@
|
|
|
621
631
|
<Project>{a9d95a91-4db7-4f72-beb6-fe8a5c89bfbd}</Project>
|
|
622
632
|
</ProjectReference>
|
|
623
633
|
</ItemGroup>
|
|
624
|
-
<ItemGroup>
|
|
634
|
+
<ItemGroup Condition="'$(UseFabric)' != 'true'">
|
|
625
635
|
<Page Include="DevMenuControl.xaml">
|
|
626
636
|
<SubType>Designer</SubType>
|
|
627
637
|
</Page>
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
#include "pch.h"
|
|
5
5
|
#include "AccessibilityInfoModule.h"
|
|
6
|
+
#ifndef USE_FABRIC
|
|
6
7
|
#include <UI.Xaml.Automation.Peers.h>
|
|
7
8
|
#include <UI.Xaml.Controls.h>
|
|
8
9
|
#include <XamlUtils.h>
|
|
10
|
+
#endif
|
|
9
11
|
#include <uiautomationcore.h>
|
|
10
12
|
#include <uiautomationcoreapi.h>
|
|
11
13
|
#include <winrt/Windows.ApplicationModel.DataTransfer.h>
|
|
@@ -50,6 +52,7 @@ void AccessibilityInfo::setAccessibilityFocus(double /*reactTag*/) noexcept {
|
|
|
50
52
|
|
|
51
53
|
void AccessibilityInfo::announceForAccessibility(std::wstring announcement) noexcept {
|
|
52
54
|
m_context.UIDispatcher().Post([context = m_context, announcement = std::move(announcement)] {
|
|
55
|
+
#ifndef USE_FABRIC
|
|
53
56
|
// Windows requires a specific element to announce from. Unfortunately the react-native API does not provide a tag
|
|
54
57
|
// So we need to find something to raise the notification event from.
|
|
55
58
|
xaml::UIElement element{nullptr};
|
|
@@ -77,6 +80,7 @@ void AccessibilityInfo::announceForAccessibility(std::wstring announcement) noex
|
|
|
77
80
|
xaml::Automation::Peers::AutomationNotificationProcessing::ImportantMostRecent,
|
|
78
81
|
hstr,
|
|
79
82
|
hstr);
|
|
83
|
+
#endif
|
|
80
84
|
});
|
|
81
85
|
}
|
|
82
86
|
|
|
@@ -5,12 +5,15 @@
|
|
|
5
5
|
#include "AlertModule.h"
|
|
6
6
|
#include "Unicode.h"
|
|
7
7
|
|
|
8
|
+
#ifndef USE_FABRIC
|
|
8
9
|
#include <UI.Xaml.Controls.Primitives.h>
|
|
9
10
|
#include <UI.Xaml.Controls.h>
|
|
10
11
|
#include <UI.Xaml.Media.h>
|
|
11
12
|
#include <UI.Xaml.Shapes.h>
|
|
12
13
|
#include <Utils/ValueUtils.h>
|
|
13
14
|
#include <XamlUtils.h>
|
|
15
|
+
#endif
|
|
16
|
+
|
|
14
17
|
#include <winrt/Windows.UI.ViewManagement.h>
|
|
15
18
|
#include "Utils/Helpers.h"
|
|
16
19
|
|
|
@@ -36,6 +39,7 @@ void Alert::showAlert(
|
|
|
36
39
|
});
|
|
37
40
|
}
|
|
38
41
|
|
|
42
|
+
#ifndef USE_FABRIC
|
|
39
43
|
void Alert::ProcessPendingAlertRequestsXaml() noexcept {
|
|
40
44
|
const auto &pendingAlert = pendingAlerts.front();
|
|
41
45
|
const auto &args = pendingAlert.args;
|
|
@@ -155,8 +159,7 @@ void Alert::ProcessPendingAlertRequestsXaml() noexcept {
|
|
|
155
159
|
ProcessPendingAlertRequests();
|
|
156
160
|
});
|
|
157
161
|
}
|
|
158
|
-
|
|
159
|
-
#ifdef USE_FABRIC
|
|
162
|
+
#else
|
|
160
163
|
void Alert::ProcessPendingAlertRequestsMessageDialog() noexcept {
|
|
161
164
|
const auto &pendingAlert = pendingAlerts.front();
|
|
162
165
|
const auto &args = pendingAlert.args;
|
|
@@ -220,16 +223,18 @@ void Alert::ProcessPendingAlertRequests() noexcept {
|
|
|
220
223
|
if (pendingAlerts.empty())
|
|
221
224
|
return;
|
|
222
225
|
|
|
223
|
-
|
|
226
|
+
#ifndef USE_FABRIC
|
|
227
|
+
if (xaml::TryGetCurrentUwpXamlApplication()) {
|
|
224
228
|
ProcessPendingAlertRequestsXaml();
|
|
225
229
|
}
|
|
226
|
-
#
|
|
230
|
+
#else
|
|
227
231
|
else {
|
|
228
232
|
// If we don't have xaml loaded, fallback to using MessageDialog
|
|
229
233
|
ProcessPendingAlertRequestsMessageDialog();
|
|
230
234
|
}
|
|
231
235
|
#endif
|
|
232
236
|
}
|
|
237
|
+
|
|
233
238
|
Alert::Constants Alert::GetConstants() noexcept {
|
|
234
239
|
return m_constants;
|
|
235
240
|
}
|
|
@@ -50,7 +50,7 @@ comp::Compositor NativeAnimatedNodeManager::Compositor() const noexcept {
|
|
|
50
50
|
compositionContext);
|
|
51
51
|
}
|
|
52
52
|
#endif
|
|
53
|
-
#
|
|
53
|
+
#if !defined(CORE_ABI) && !defined(USE_FABRIC)
|
|
54
54
|
// TODO: Islands - need to get the XamlView associated with this animation in order to
|
|
55
55
|
// use the compositor Microsoft::ReactNative::GetCompositor(xamlView)
|
|
56
56
|
return Microsoft::ReactNative::GetCompositor();
|