react-native-windows 0.68.3 → 0.69.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 -3
- package/Chakra/ChakraHelpers.cpp +0 -1
- package/Directory.Build.props +3 -0
- package/Directory.Build.targets +1 -1
- package/Folly/TEMP_UntilFollyUpdate/dynamic-inl.h +1411 -0
- package/Folly/TEMP_UntilFollyUpdate/lang/ToAscii.cpp +336 -0
- package/Folly/TEMP_UntilFollyUpdate/lang/ToAscii.h +182 -0
- package/Libraries/ActionSheetIOS/ActionSheetIOS.js +7 -0
- package/Libraries/ActionSheetIOS/NativeActionSheetManager.js +1 -0
- package/Libraries/Alert/Alert.windows.js +2 -2
- package/Libraries/Animated/AnimatedImplementation.js +1 -1
- package/Libraries/Animated/NativeAnimatedHelper.js +55 -9
- package/Libraries/Animated/NativeAnimatedModule.js +1 -0
- package/Libraries/Animated/NativeAnimatedTurboModule.js +1 -0
- package/Libraries/Animated/animations/TimingAnimation.js +6 -11
- package/Libraries/Animated/createAnimatedComponent.js +2 -2
- package/Libraries/Animated/nodes/AnimatedColor.js +95 -29
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +19 -22
- package/Libraries/Animated/nodes/AnimatedNode.js +2 -2
- package/Libraries/Animated/nodes/AnimatedValue.js +1 -1
- package/Libraries/AppState/AppState.js +1 -1
- package/Libraries/Blob/URL.js +7 -1
- package/Libraries/Components/Button.js +3 -0
- package/Libraries/Components/Button.windows.js +4 -0
- package/Libraries/Components/DatePickerAndroid/NativeDatePickerAndroid.js +5 -0
- package/Libraries/Components/Pressable/Pressable.js +3 -3
- package/Libraries/Components/Pressable/Pressable.windows.js +3 -3
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +47 -38
- package/Libraries/Components/ScrollView/ScrollContentViewNativeComponent.js +15 -7
- package/Libraries/Components/ScrollView/ScrollView.js +1 -1
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +16 -3
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +3 -1
- package/Libraries/Components/Slider/Slider.js +0 -2
- package/Libraries/Components/Slider/SliderNativeComponent.js +0 -1
- package/Libraries/Components/StatusBar/StatusBar.js +6 -1
- package/Libraries/Components/Switch/Switch.js +11 -1
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +114 -109
- package/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js +17 -9
- package/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js +13 -5
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +10 -0
- package/Libraries/Components/TextInput/TextInput.js +1 -8
- package/Libraries/Components/TextInput/TextInput.windows.js +4 -9
- package/Libraries/Components/TextInput/TextInputState.js +10 -2
- package/Libraries/Components/TextInput/TextInputState.windows.js +10 -3
- package/Libraries/Components/TextInput/WindowsTextInputNativeComponent.js +1 -1
- package/Libraries/Components/Touchable/TouchableBounce.js +1 -0
- package/Libraries/Components/Touchable/TouchableHighlight.js +1 -0
- package/Libraries/Components/Touchable/TouchableHighlight.windows.js +6 -5
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +1 -0
- package/Libraries/Components/Touchable/TouchableOpacity.js +7 -1
- package/Libraries/Components/Touchable/TouchableOpacity.windows.js +11 -5
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +2 -0
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.windows.js +2 -0
- package/Libraries/Components/View/ReactNativeViewAttributes.js +1 -0
- package/Libraries/Components/View/ReactNativeViewAttributes.windows.js +1 -0
- package/Libraries/Components/View/View.windows.js +33 -1
- package/Libraries/Components/View/ViewNativeComponent.js +68 -8
- package/Libraries/Components/View/ViewPropTypes.js +36 -4
- package/Libraries/Components/View/ViewPropTypes.windows.js +36 -4
- package/Libraries/Core/Devtools/parseHermesStack.js +1 -1
- package/Libraries/Core/ExceptionsManager.js +1 -1
- package/Libraries/Core/RawEventEmitter.js +38 -0
- package/Libraries/Core/ReactNativeVersion.js +2 -2
- package/Libraries/Core/polyfillPromise.js +32 -0
- package/Libraries/Core/setUpReactDevTools.js +3 -2
- package/Libraries/EventEmitter/NativeEventEmitter.js +3 -3
- package/Libraries/EventEmitter/RCTDeviceEventEmitter.js +2 -1
- package/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js +3 -3
- package/Libraries/Events/CustomEvent.js +32 -0
- package/Libraries/Events/EventPolyfill.js +239 -0
- package/Libraries/Image/Image.android.js +0 -6
- package/Libraries/Image/Image.ios.js +0 -6
- package/Libraries/Image/Image.windows.js +2 -8
- package/Libraries/Image/ImageViewNativeComponent.js +18 -3
- package/Libraries/Image/TextInlineImageNativeComponent.js +23 -15
- package/Libraries/Inspector/Inspector.js +2 -4
- package/Libraries/Interaction/BridgeSpyStallHandler.js +4 -3
- package/Libraries/Interaction/InteractionManager.js +1 -12
- package/Libraries/Interaction/TaskQueue.js +5 -4
- package/Libraries/LayoutAnimation/LayoutAnimation.js +13 -0
- package/Libraries/Linking/Linking.js +1 -1
- package/Libraries/Lists/FlatList.js +27 -6
- package/Libraries/Lists/VirtualizedList.js +71 -55
- package/Libraries/Lists/VirtualizedListContext.js +7 -3
- package/Libraries/Lists/VirtualizedSectionList.js +2 -2
- package/Libraries/Lists/__tests__/{FillRateHelper-test.windows.js → FillRateHelper-test.js} +2 -2
- package/Libraries/Lists/__tests__/{FlatList-test.windows.js → FlatList-test.js} +2 -2
- package/Libraries/Lists/__tests__/{SectionList-test.windows.js → SectionList-test.js} +14 -14
- package/Libraries/Lists/__tests__/{VirtualizeUtils-test.windows.js → VirtualizeUtils-test.js} +3 -3
- package/Libraries/Lists/__tests__/{VirtualizedList-test.windows.js → VirtualizedList-test.js} +91 -42
- package/Libraries/Lists/__tests__/{VirtualizedSectionList-test.windows.js → VirtualizedSectionList-test.js} +13 -13
- package/Libraries/LogBox/Data/LogBoxData.js +2 -2
- package/Libraries/LogBox/Data/LogBoxLog.js +1 -1
- package/Libraries/LogBox/Data/LogBoxSymbolication.js +1 -1
- package/Libraries/LogBox/Data/parseLogBoxLog.js +1 -1
- package/Libraries/LogBox/LogBox.js +2 -21
- package/Libraries/LogBox/UI/LogBoxInspectorFooter.js +1 -0
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +2 -1
- package/Libraries/NativeComponent/BaseViewConfig.android.js +295 -0
- package/Libraries/NativeComponent/BaseViewConfig.ios.js +333 -0
- package/Libraries/NativeComponent/BaseViewConfig.windows.js +334 -0
- package/Libraries/NativeComponent/NativeComponentRegistry.js +0 -2
- package/Libraries/NativeComponent/PlatformBaseViewConfig.js +24 -0
- package/Libraries/NativeComponent/StaticViewConfigValidator.js +7 -42
- package/Libraries/NativeComponent/ViewConfig.js +4 -4
- package/Libraries/NativeComponent/ViewConfigIgnore.js +54 -0
- package/Libraries/Network/FormData.js +7 -1
- package/Libraries/Pressability/Pressability.js +115 -46
- package/Libraries/Pressability/Pressability.windows.js +190 -74
- package/Libraries/Pressability/PressabilityDebug.js +5 -9
- package/Libraries/PushNotificationIOS/NativePushNotificationManagerIOS.js +1 -0
- package/Libraries/ReactNative/AppContainer.js +1 -1
- package/Libraries/ReactNative/{DummyUIManager.js → BridgelessUIManager.js} +62 -40
- package/Libraries/ReactNative/PaperUIManager.windows.js +5 -5
- package/Libraries/ReactNative/ReactNativeFeatureFlags.js +39 -0
- package/Libraries/ReactNative/UIManager.js +2 -3
- package/Libraries/ReactNative/renderApplication.js +4 -0
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +8 -0
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +5908 -4906
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +2100 -1918
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +2567 -2352
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +5610 -4844
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +1710 -1556
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +1830 -1639
- package/Libraries/Renderer/shims/ReactNativeTypes.js +2 -1
- package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +2 -1
- package/Libraries/StyleSheet/EdgeInsetsPropType.js +4 -1
- package/Libraries/StyleSheet/StyleSheetTypes.js +59 -66
- package/Libraries/StyleSheet/normalizeColor.js +1 -1
- package/Libraries/StyleSheet/private/_StyleSheetTypesOverrides.js +15 -0
- package/Libraries/StyleSheet/private/_TransformStyle.js +53 -0
- package/Libraries/StyleSheet/processTransform.windows.js +272 -0
- package/Libraries/Text/Text.js +13 -7
- package/Libraries/Text/Text.windows.js +16 -7
- package/Libraries/Text/TextNativeComponent.js +2 -0
- package/Libraries/Text/TextProps.js +10 -0
- package/Libraries/Types/CoreEventTypes.js +13 -1
- package/Libraries/Types/CoreEventTypes.windows.js +26 -1
- package/Libraries/Utilities/Appearance.js +0 -8
- package/Libraries/Utilities/HMRClient.js +1 -1
- package/Libraries/Utilities/ReactNativeTestTools.js +1 -0
- package/Libraries/Utilities/codegenNativeComponent.js +17 -6
- package/Libraries/Utilities/stringifySafe.js +4 -1
- package/Libraries/Utilities/verifyComponentAttributeEquivalence.js +3 -3
- package/Libraries/WebSocket/WebSocket.js +1 -1
- package/Libraries/vendor/emitter/_EmitterSubscription.js +1 -1
- package/Libraries/vendor/emitter/_EventEmitter.js +1 -1
- package/Libraries/vendor/emitter/_EventSubscription.js +1 -1
- package/Microsoft.ReactNative/DynamicReader.cpp +3 -3
- package/Microsoft.ReactNative/Fabric/ComponentView.h +1 -0
- package/Microsoft.ReactNative/Fabric/ComponentViewRegistry.cpp +36 -2
- package/Microsoft.ReactNative/Fabric/ComponentViewRegistry.h +1 -0
- package/Microsoft.ReactNative/Fabric/DWriteHelpers.cpp +19 -0
- package/Microsoft.ReactNative/Fabric/DWriteHelpers.h +13 -0
- package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.cpp +65 -19
- package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.h +2 -0
- package/Microsoft.ReactNative/Fabric/ParagraphComponentView.cpp +36 -10
- package/Microsoft.ReactNative/Fabric/ScrollViewComponentView.cpp +2 -0
- package/Microsoft.ReactNative/Fabric/SliderComponentView.cpp +107 -0
- package/Microsoft.ReactNative/Fabric/SliderComponentView.h +51 -0
- package/Microsoft.ReactNative/Fabric/SwitchComponentView.cpp +109 -0
- package/Microsoft.ReactNative/Fabric/SwitchComponentView.h +52 -0
- package/Microsoft.ReactNative/Fabric/TextInput/WindowsTextInputComponentDescriptor.h +197 -0
- package/Microsoft.ReactNative/Fabric/TextInput/WindowsTextInputComponentView.cpp +308 -0
- package/Microsoft.ReactNative/Fabric/TextInput/WindowsTextInputComponentView.h +52 -0
- package/Microsoft.ReactNative/Fabric/TextInput/WindowsTextInputEventEmitter.cpp +31 -0
- package/Microsoft.ReactNative/Fabric/TextInput/WindowsTextInputEventEmitter.h +33 -0
- package/Microsoft.ReactNative/Fabric/TextInput/WindowsTextInputProps.cpp +81 -0
- package/Microsoft.ReactNative/Fabric/TextInput/WindowsTextInputProps.h +132 -0
- package/Microsoft.ReactNative/Fabric/TextInput/WindowsTextInputShadowNode.cpp +193 -0
- package/Microsoft.ReactNative/Fabric/TextInput/WindowsTextInputShadowNode.h +85 -0
- package/Microsoft.ReactNative/Fabric/TextInput/WindowsTextInputState.cpp +76 -0
- package/Microsoft.ReactNative/Fabric/TextInput/WindowsTextInputState.h +99 -0
- package/Microsoft.ReactNative/Fabric/ViewComponentView.cpp +35 -3
- package/Microsoft.ReactNative/Fabric/ViewComponentView.h +1 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/rncore/EventEmitters.h +5 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/rncore/Props.h +5 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/slider/SliderMeasurementsManager.cpp +46 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/slider/SliderMeasurementsManager.h +30 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/graphics/Color.cpp +2 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/graphics/conversions.h +1 -9
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/graphics/platform/cxx/react/renderer/graphics/Color.h +3 -1
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/TextLayoutManager.cpp +119 -57
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/TextLayoutManager.h +18 -1
- package/Microsoft.ReactNative/IViewManager.idl +3 -3
- package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +13 -107
- package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj.filters +2 -2
- package/Microsoft.ReactNative/Modules/AppStateModule.cpp +2 -0
- package/Microsoft.ReactNative/Modules/AppStateModule.h +2 -0
- package/Microsoft.ReactNative/Modules/CreateModules.cpp +3 -3
- package/Microsoft.ReactNative/Modules/NativeUIManager.cpp +7 -5
- package/Microsoft.ReactNative/Modules/TimingModule.cpp +2 -2
- package/Microsoft.ReactNative/Modules/TimingModule.h +2 -2
- package/Microsoft.ReactNative/ReactHost/{ReactContext.cpp → MsoReactContext.cpp} +1 -1
- package/Microsoft.ReactNative/ReactHost/{ReactContext.h → MsoReactContext.h} +0 -0
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp +14 -1
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.h +1 -1
- package/Microsoft.ReactNative/ReactHost/ReactNativeHeaders.h +1 -1
- package/Microsoft.ReactNative/ReactRootView.cpp +2 -1
- package/Microsoft.ReactNative/RedBox.cpp +3 -2
- package/Microsoft.ReactNative/Utils/ValueUtils.cpp +3 -2
- package/Microsoft.ReactNative/Views/ControlViewManager.cpp +32 -0
- package/Microsoft.ReactNative/Views/ControlViewManager.h +11 -0
- package/Microsoft.ReactNative/Views/DevMenu.cpp +2 -2
- package/Microsoft.ReactNative/Views/FrameworkElementTransferProperties.cpp +13 -2
- package/Microsoft.ReactNative/Views/FrameworkElementViewManager.cpp +149 -22
- package/Microsoft.ReactNative/Views/Image/ImageViewManager.cpp +1 -1
- package/Microsoft.ReactNative/Views/Image/Microsoft.UI.Composition.Effects_Impl.h +5 -11
- package/Microsoft.ReactNative/Views/Image/ReactImage.cpp +2 -1
- package/Microsoft.ReactNative/Views/SliderViewManager.cpp +12 -4
- package/Microsoft.ReactNative/Views/TextInputViewManager.cpp +1 -1
- package/Microsoft.ReactNative/Views/TextViewManager.cpp +2 -2
- package/Microsoft.ReactNative/Views/TouchEventHandler.cpp +163 -37
- package/Microsoft.ReactNative/Views/TouchEventHandler.h +11 -4
- package/Microsoft.ReactNative/Views/ViewPanel.cpp +3 -23
- package/Microsoft.ReactNative/Views/ViewPanel.h +2 -3
- package/Microsoft.ReactNative/Views/ViewViewManager.cpp +21 -0
- package/Microsoft.ReactNative/XamlUIService.cpp +1 -1
- package/Microsoft.ReactNative/XamlView.h +8 -3
- package/Microsoft.ReactNative.Cxx/CppWinRTIncludes.h +3 -5
- package/Microsoft.ReactNative.Cxx/DesktopWindowBridge.h +1 -1
- package/Microsoft.ReactNative.Cxx/JSI/JsiAbiApi.cpp +11 -2
- package/Microsoft.ReactNative.Cxx/JSI/JsiAbiApi.h +1 -0
- package/Microsoft.ReactNative.Cxx/JSI/NodeApiJsiRuntime.cpp +10 -1
- package/Microsoft.ReactNative.Cxx/JSValueReader.h +2 -2
- package/Microsoft.ReactNative.Cxx/JSValueWriter.h +5 -5
- package/Microsoft.ReactNative.Cxx/Microsoft.ReactNative.Cxx.vcxitems +5 -1
- package/Microsoft.ReactNative.Cxx/Microsoft.ReactNative.Cxx.vcxitems.filters +2 -3
- package/Microsoft.ReactNative.Cxx/NativeModules.h +1 -1
- package/Microsoft.ReactNative.Cxx/ReactContext.h +3 -3
- package/Microsoft.ReactNative.Cxx/ReactNonAbiValue.h +3 -3
- package/Microsoft.ReactNative.Cxx/XamlUtils.h +44 -5
- package/Microsoft.ReactNative.Managed/Microsoft.ReactNative.Managed.csproj +0 -6
- package/Mso/activeObject/activeObject.h +2 -2
- package/Mso/compilerAdapters/cppMacros.h +3 -5
- package/Mso/errorCode/errorProvider.h +2 -2
- package/Mso/errorCode/maybe.h +4 -4
- package/Mso/functional/functor.h +6 -6
- package/Mso/functional/functorRef.h +2 -2
- package/Mso/future/details/executor.h +2 -2
- package/Mso/future/details/futureFuncInl.h +4 -4
- package/Mso/future/details/ifuture.h +3 -3
- package/Mso/future/details/maybeInvoker.h +6 -6
- package/Mso/future/details/promiseGroupInl.h +4 -4
- package/Mso/future/details/promiseInl.h +4 -4
- package/Mso/future/details/resultTraits.h +4 -4
- package/Mso/future/details/whenAllInl.h +1 -1
- package/Mso/future/future.h +13 -13
- package/Mso/guid/msoGuidDetails.h +1 -1
- package/Mso/memoryApi/memoryApi.h +13 -7
- package/Mso/motifCpp/gTestAdapter.h +1 -1
- package/Mso/motifCpp/testInfo.h +7 -9
- package/Mso/object/make.h +8 -8
- package/Mso/object/objectRefCount.h +3 -5
- package/Mso/object/objectWithWeakRef.h +10 -14
- package/Mso/object/queryCast.h +4 -4
- package/Mso/object/refCountedObject.h +4 -4
- package/Mso/object/unknownObject.h +7 -7
- package/Mso/platformAdapters/windowsFirst.h +1 -1
- package/Mso/smartPtr/cntPtr.h +8 -8
- package/Mso/src/dispatchQueue/uiScheduler_winrt.cpp +2 -2
- package/Mso/src/future/futureImpl.h +1 -1
- package/Mso/src/memoryApi/memoryApi.cpp +4 -4
- package/PropertySheets/CppAppConsumeCSharpModule.props +3 -0
- package/PropertySheets/External/Microsoft.ReactNative.WinAppSDK.CSharpApp.props +26 -0
- package/PropertySheets/External/Microsoft.ReactNative.WinAppSDK.Common.props +12 -0
- package/PropertySheets/Generated/PackageVersion.g.props +3 -3
- package/PropertySheets/React.Cpp.props +13 -0
- package/PropertySheets/WinUI.props +3 -6
- package/ReactCommon/ReactCommon.vcxproj +2 -4
- package/ReactCommon/ReactCommon.vcxproj.filters +4 -1
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jsi/JSCRuntime.cpp +1480 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jsi/jsi/decorator.h +753 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jsi/jsi/jsi.h +1331 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jsi/jsi/test/testlib.cpp +1431 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/bridging/CallbackWrapper.h +103 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon/TurboModule.h +87 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon/TurboModuleUtils.h +61 -0
- package/ReactCommon/Yoga.cpp +1 -1
- package/Scripts/{Microsoft.ReactNative.ProjectReunion.nuspec → Microsoft.ReactNative.WindowsAppSDK.nuspec} +7 -9
- package/Scripts/OfficeReact.Win32.nuspec +1 -3
- package/Scripts/Tfs/Layout-MSRN-Headers.ps1 +2 -1
- package/Scripts/copyRNLibraries.js +8 -8
- package/Scripts/just.js +1 -1
- package/Scripts/rnw-dependencies.ps1 +41 -10
- package/Scripts/run-desktop-integration-tests.js +6 -6
- package/Shared/AbiSafe.h +3 -3
- package/Shared/BaseScriptStoreImpl.cpp +1 -1
- package/Shared/CppRuntimeOptions.h +50 -0
- package/Shared/DevSupportManager.cpp +32 -36
- package/Shared/DevSupportManager.h +1 -2
- package/Shared/HermesRuntimeHolder.cpp +23 -14
- package/Shared/HermesRuntimeHolder.h +8 -2
- package/Shared/IDevSupportManager.h +1 -2
- package/Shared/InspectorPackagerConnection.cpp +7 -5
- package/Shared/InspectorPackagerConnection.h +2 -2
- package/Shared/JSI/ChakraApi.cpp +0 -1
- package/Shared/JSI/ChakraRuntime.cpp +1 -2
- package/Shared/JSI/RuntimeHolder.h +2 -0
- package/Shared/Modules/HttpModule.cpp +1 -1
- package/Shared/Modules/HttpModule.h +2 -2
- package/Shared/Modules/WebSocketModule.cpp +1 -1
- package/Shared/Modules/WebSocketModule.h +8 -5
- package/Shared/{IHttpResource.h → Networking/IHttpResource.h} +4 -4
- package/Shared/{IWebSocketResource.h → Networking/IWebSocketResource.h} +2 -2
- package/Shared/Networking/OriginPolicy.h +15 -0
- package/Shared/Networking/OriginPolicyHttpFilter.cpp +746 -0
- package/Shared/Networking/OriginPolicyHttpFilter.h +112 -0
- package/Shared/{WinRTHttpResource.cpp → Networking/WinRTHttpResource.cpp} +129 -99
- package/Shared/{WinRTHttpResource.h → Networking/WinRTHttpResource.h} +8 -12
- package/Shared/Networking/WinRTTypes.h +30 -0
- package/Shared/{WinRTWebSocketResource.cpp → Networking/WinRTWebSocketResource.cpp} +2 -2
- package/Shared/{WinRTWebSocketResource.h → Networking/WinRTWebSocketResource.h} +3 -3
- package/Shared/OInstance.cpp +5 -5
- package/Shared/RuntimeOptions.cpp +93 -15
- package/Shared/RuntimeOptions.h +22 -9
- package/Shared/Shared.vcxitems +122 -7
- package/Shared/Shared.vcxitems.filters +40 -21
- package/Shared/Threading/BatchingQueueThread.cpp +1 -1
- package/Shared/tracing/fbsystrace.h +2 -2
- package/codegen/NativeActionSheetManagerSpec.g.h +6 -0
- package/codegen/NativeAnimatedModuleSpec.g.h +43 -37
- package/codegen/NativeAnimatedTurboModuleSpec.g.h +43 -37
- package/codegen/NativePushNotificationManagerIOSSpec.g.h +2 -0
- package/codegen/react/components/rnwcore/ComponentDescriptors.h +0 -1
- package/codegen/react/components/rnwcore/EventEmitters.cpp +133 -0
- package/codegen/react/components/rnwcore/EventEmitters.h +0 -18
- package/codegen/react/components/rnwcore/Props.cpp +0 -13
- package/codegen/react/components/rnwcore/Props.h +0 -16
- package/codegen/react/components/rnwcore/ShadowNodes.cpp +0 -1
- package/codegen/react/components/rnwcore/ShadowNodes.h +0 -10
- package/include/Shared/cdebug.h +9 -9
- package/index.js +30 -25
- package/index.windows.js +30 -25
- package/jest/preprocessor.js +24 -107
- package/jest/preprocessor_DO_NOT_USE.js +122 -0
- package/metro.config.js +3 -70
- package/package.json +29 -28
- package/react-native.config.js +40 -6
- package/rntypes/index.d.ts +19 -7
- package/stubs/glog/logging.h +1 -1
- package/template/cpp-app/src/App.h +0 -4
- package/template/cs-app/src/App.xaml.cs +0 -5
- package/template/cs-app/src/MainPage.xaml.cs +1 -10
- package/template/cs-app-WinAppSDK/MyApp/App.xaml +16 -0
- package/template/cs-app-WinAppSDK/MyApp/App.xaml.cs +70 -0
- package/template/cs-app-WinAppSDK/MyApp/MainWindow.xaml +14 -0
- package/template/cs-app-WinAppSDK/MyApp/MainWindow.xaml.cs +38 -0
- package/template/cs-app-WinAppSDK/MyApp/Package.appxmanifest +48 -0
- package/template/cs-app-WinAppSDK/MyApp/Properties/PublishProfiles/win10-arm64.pubxml +19 -0
- package/template/cs-app-WinAppSDK/MyApp/Properties/PublishProfiles/win10-x64.pubxml +19 -0
- package/template/cs-app-WinAppSDK/MyApp/Properties/PublishProfiles/win10-x86.pubxml +19 -0
- package/template/cs-app-WinAppSDK/MyApp/Properties/launchSettings.json +10 -0
- package/template/cs-app-WinAppSDK/MyApp/app.manifest +15 -0
- package/template/cs-app-WinAppSDK/proj/ExperimentalFeatures.props +23 -0
- package/template/cs-app-WinAppSDK/proj/MyApp.csproj +49 -0
- package/template/cs-app-WinAppSDK/proj/MyApp.sln +43 -0
- package/template/cs-app-WinAppSDK/proj/NuGet.Config +17 -0
- package/template/metro.devMode.config.js +2 -51
- package/typings-index.js +5 -1
- package/typings-index.js.map +1 -1
- package/Libraries/Components/SegmentedControlIOS/RCTSegmentedControlNativeComponent.js +0 -44
- package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.android.js +0 -45
- package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js +0 -123
- package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.windows.js +0 -45
- package/Libraries/Components/View/ReactNativeViewViewConfig.js +0 -360
- package/Libraries/Components/View/ReactNativeViewViewConfig.windows.js +0 -390
- package/Libraries/Components/View/ReactNativeViewViewConfigAndroid.js +0 -83
- package/Libraries/ReactNative/UIManagerInjection.js +0 -15
- package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +0 -24527
- package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +0 -8309
- package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +0 -8961
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +0 -24948
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +0 -8400
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +0 -9049
- package/PropertySheets/CppEnablePackageReferences.props +0 -13
- package/Shared/cdebug.cpp +0 -6
- package/include/Shared/ViewManager.h +0 -34
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
</CppWinRTNamespaceMergeDepth>
|
|
20
20
|
<CppWinRTLibs>true</CppWinRTLibs>
|
|
21
21
|
<BuildMSRNCxxReactCommon>false</BuildMSRNCxxReactCommon>
|
|
22
|
+
<DesktopCompatible Condition="'$(UseWinUI3)'=='true'">true</DesktopCompatible>
|
|
22
23
|
</PropertyGroup>
|
|
23
24
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
|
24
25
|
<Import Project="$(ReactNativeWindowsDir)PropertySheets\React.Cpp.props" />
|
|
@@ -283,7 +284,7 @@
|
|
|
283
284
|
<ClInclude Include="ReactHost\MoveOnCopy.h" />
|
|
284
285
|
<ClInclude Include="ReactHost\MsoUtils.h" />
|
|
285
286
|
<ClInclude Include="ReactHost\React.h" />
|
|
286
|
-
<ClInclude Include="ReactHost\
|
|
287
|
+
<ClInclude Include="ReactHost\MsoReactContext.h" />
|
|
287
288
|
<ClInclude Include="ReactHost\ReactErrorProvider.h" />
|
|
288
289
|
<ClInclude Include="ReactHost\ReactHost.h" />
|
|
289
290
|
<ClInclude Include="ReactHost\ReactInstanceWin.h" />
|
|
@@ -406,115 +407,20 @@
|
|
|
406
407
|
</ClInclude>
|
|
407
408
|
</ItemGroup>
|
|
408
409
|
<ItemGroup Condition="'$(UseFabric)' == 'true'">
|
|
409
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\config\ReactNativeConfig.cpp" />
|
|
410
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\attributedstring\AttributedString.cpp" />
|
|
411
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\attributedstring\AttributedStringBox.cpp" DisableSpecificWarnings="4715;%(DisableSpecificWarnings)" />
|
|
412
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\attributedstring\ParagraphAttributes.cpp" />
|
|
413
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\attributedstring\TextAttributes.cpp" DisableSpecificWarnings="4715;%(DisableSpecificWarnings)" />
|
|
414
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\componentregistry\ComponentDescriptorProviderRegistry.cpp" />
|
|
415
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\componentregistry\ComponentDescriptorRegistry.cpp" />
|
|
416
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\componentregistry\componentNameByReactViewName.cpp" />
|
|
417
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\image\ImageEventEmitter.cpp" />
|
|
418
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\image\ImageProps.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)" />
|
|
419
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\image\ImageShadowNode.cpp" />
|
|
420
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\image\ImageState.cpp" />
|
|
421
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\root\RootProps.cpp" />
|
|
422
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\root\RootShadowNode.cpp" />
|
|
423
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\scrollview\ScrollViewEventEmitter.cpp" DisableSpecificWarnings="4305;%(DisableSpecificWarnings)" />
|
|
424
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\scrollview\ScrollViewProps.cpp" DisableSpecificWarnings="4018;4305;4715;%(DisableSpecificWarnings)" />
|
|
425
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\scrollview\ScrollViewShadowNode.cpp" DisableSpecificWarnings="4305;%(DisableSpecificWarnings)" />
|
|
426
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\scrollview\ScrollViewState.cpp" />
|
|
427
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\TextProps.cpp" />
|
|
428
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\BaseTextProps.cpp" />
|
|
429
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\BaseTextShadowNode.cpp" />
|
|
430
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\ParagraphEventEmitter.cpp" />
|
|
431
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\ParagraphProps.cpp" />
|
|
432
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\ParagraphShadowNode.cpp" DisableSpecificWarnings="4018;4305;%(DisableSpecificWarnings)" />
|
|
433
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\RawTextProps.cpp" />
|
|
434
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\TextShadowNode.cpp" />
|
|
435
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\RawTextShadowNode.cpp" />
|
|
436
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\textinput\iostextinput\TextInputProps.cpp" />
|
|
437
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\textinput\iostextinput\TextInputShadowNode.cpp" />
|
|
438
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\view\AccessibilityProps.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)" />
|
|
439
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\view\TouchEventEmitter.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)" />
|
|
440
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\view\ViewEventEmitter.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)" />
|
|
441
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\view\ViewProps.cpp" DisableSpecificWarnings="4459;4715;%(DisableSpecificWarnings)" />
|
|
442
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\view\ViewShadowNode.cpp" />
|
|
443
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\view\YogaLayoutableShadowNode.cpp" DisableSpecificWarnings="4701;4715;%(DisableSpecificWarnings)" />
|
|
444
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\view\YogaStylableProps.cpp" DisableSpecificWarnings="4715;%(DisableSpecificWarnings)" />
|
|
445
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\BatchedEventQueue.cpp" />
|
|
446
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\ComponentDescriptor.cpp" />
|
|
447
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\EventBeat.cpp" />
|
|
448
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\EventDispatcher.cpp" DisableSpecificWarnings="4715;%(DisableSpecificWarnings)" />
|
|
449
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\EventEmitter.cpp" DisableSpecificWarnings="4244;%(DisableSpecificWarnings)" />
|
|
450
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\EventTarget.cpp" />
|
|
451
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\EventQueue.cpp" />
|
|
452
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\EventQueueProcessor.cpp" />
|
|
453
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\LayoutableShadowNode.cpp" />
|
|
454
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\LayoutConstraints.cpp" />
|
|
455
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\LayoutMetrics.cpp" />
|
|
456
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\Props.cpp" />
|
|
457
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\RawEvent.cpp" />
|
|
458
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\RawProps.cpp" DisableSpecificWarnings="4715;%(DisableSpecificWarnings)" />
|
|
459
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\RawPropsKey.cpp" />
|
|
460
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\RawPropsKeyMap.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)" />
|
|
461
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\RawPropsParser.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)" />
|
|
462
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\Sealable.cpp" />
|
|
463
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\ShadowNode.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)" />
|
|
464
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\ShadowNodeFamily.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)" />
|
|
465
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\ShadowNodeFamilyFragment.cpp" />
|
|
466
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\ShadowNodeFragment.cpp" />
|
|
467
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\ShadowNodeTraits.cpp" />
|
|
468
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\State.cpp" />
|
|
469
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\UnbatchedEventQueue.cpp" />
|
|
470
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\debug\DebugStringConvertible.cpp" />
|
|
471
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\debug\DebugStringConvertibleItem.cpp" />
|
|
472
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\graphics\Transform.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)" />
|
|
473
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\leakchecker\LeakChecker.cpp" />
|
|
474
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\leakchecker\WeakFamilyRegistry.cpp" />
|
|
475
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\Differentiator.cpp" DisableSpecificWarnings="4018;4389;%(DisableSpecificWarnings)" />
|
|
476
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\MountingCoordinator.cpp" DisableSpecificWarnings="4459;%(DisableSpecificWarnings)" />
|
|
477
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\MountingTransaction.cpp" />
|
|
478
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\ShadowTree.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)" />
|
|
479
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\ShadowTreeRegistry.cpp" />
|
|
480
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\ShadowView.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)" />
|
|
481
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\ShadowViewMutation.cpp" DisableSpecificWarnings="4715;%(DisableSpecificWarnings)" />
|
|
482
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\Stubs.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)" />
|
|
483
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\StubView.cpp" />
|
|
484
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\StubViewTree.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)" />
|
|
485
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\TelemetryController.cpp" DisableSpecificWarnings="4267;%(DisableSpecificWarnings)" />
|
|
486
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\runtimescheduler\RuntimeScheduler.cpp" DisableSpecificWarnings="4715;%(DisableSpecificWarnings)" />
|
|
487
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\runtimescheduler\RuntimeSchedulerBinding.cpp" />
|
|
488
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\runtimescheduler\Task.cpp" />
|
|
489
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\scheduler\Scheduler.cpp" />
|
|
490
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\scheduler\SurfaceHandler.cpp" />
|
|
491
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\scheduler\SurfaceManager.cpp" />
|
|
492
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\telemetry\SurfaceTelemetry.cpp" />
|
|
493
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\telemetry\TransactionTelemetry.cpp" />
|
|
494
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\templateprocessor\UITemplateProcessor.cpp" DisableSpecificWarnings="4244;%(DisableSpecificWarnings)" />
|
|
495
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\textlayoutmanager\TextMeasureCache.cpp" />
|
|
496
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\uimanager\bindingUtils.cpp" />
|
|
497
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\uimanager\SurfaceRegistryBinding.cpp" DisableSpecificWarnings="4715;%(DisableSpecificWarnings)" />
|
|
498
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\uimanager\UIManager.cpp" />
|
|
499
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\uimanager\UIManagerBinding.cpp" DisableSpecificWarnings="4389;4715;%(DisableSpecificWarnings)" />
|
|
500
|
-
<ClCompile Include="$(ReactNativeWindowsDir)codegen\react\components\rnwcore\Props.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)">
|
|
501
|
-
<ObjectFileName>$(IntDir)\codegenRnwCoreProps.obj</ObjectFileName>
|
|
502
|
-
</ClCompile>
|
|
503
|
-
<ClCompile Include="$(ReactNativeWindowsDir)codegen\react\components\rnwcore\ShadowNodes.cpp" />
|
|
504
410
|
<ClCompile Include="Fabric\ActivityIndicatorComponentView.cpp" />
|
|
505
|
-
<ClCompile Include="Fabric\ComponentViewRegistry.cpp" />
|
|
506
|
-
<ClCompile Include="Fabric\FabricUIManagerModule.cpp" />
|
|
507
411
|
<ClCompile Include="Fabric\ImageComponentView.cpp" />
|
|
508
|
-
<ClCompile Include="Fabric\ImageManager.cpp" />
|
|
509
|
-
<ClCompile Include="Fabric\ImageRequest.cpp" />
|
|
510
412
|
<ClCompile Include="Fabric\ParagraphComponentView.cpp" />
|
|
511
|
-
<ClCompile Include="Fabric\platform\react\renderer\
|
|
512
|
-
<ClCompile Include="Fabric\platform\react\renderer\graphics\Color.cpp" />
|
|
513
|
-
<ClCompile Include="Fabric\ReactNativeConfigProperties.cpp" />
|
|
413
|
+
<ClCompile Include="Fabric\platform\react\renderer\components\slider\SliderMeasurementsManager.cpp" />
|
|
514
414
|
<ClCompile Include="Fabric\ScrollViewComponentView.cpp" />
|
|
415
|
+
<ClCompile Include="Fabric\SliderComponentView.cpp" />
|
|
416
|
+
<ClCompile Include="Fabric\SwitchComponentView.cpp" />
|
|
417
|
+
<ClCompile Include="Fabric\TextInput\WindowsTextInputComponentView.cpp" />
|
|
418
|
+
<ClCompile Include="Fabric\TextInput\WindowsTextInputEventEmitter.cpp" />
|
|
419
|
+
<ClCompile Include="Fabric\TextInput\WindowsTextInputProps.cpp" />
|
|
420
|
+
<ClCompile Include="Fabric\TextInput\WindowsTextInputShadowNode.cpp" />
|
|
421
|
+
<ClCompile Include="Fabric\TextInput\WindowsTextInputState.cpp" DisableSpecificWarnings="4244;%(DisableSpecificWarnings)" />
|
|
515
422
|
<ClCompile Include="Fabric\TextComponentView.cpp" />
|
|
516
423
|
<ClCompile Include="Fabric\ViewComponentView.cpp" />
|
|
517
|
-
<ClCompile Include="SchedulerSettings.cpp" />
|
|
518
424
|
</ItemGroup>
|
|
519
425
|
<ItemGroup>
|
|
520
426
|
<ClCompile Include="ABICxxModule.cpp" />
|
|
@@ -591,7 +497,6 @@
|
|
|
591
497
|
<ClCompile Include="Modules\LinkingManagerModule.cpp" />
|
|
592
498
|
<ClCompile Include="Modules\LogBoxModule.cpp" />
|
|
593
499
|
<ClCompile Include="Modules\NativeUIManager.cpp" />
|
|
594
|
-
<ClCompile Include="Modules\ReactRootViewTagGenerator.cpp" />
|
|
595
500
|
<ClCompile Include="Modules\TimingModule.cpp" />
|
|
596
501
|
<ClCompile Include="Modules\PaperUIManagerModule.cpp" />
|
|
597
502
|
<ClCompile Include="NativeModulesProvider.cpp" />
|
|
@@ -618,7 +523,7 @@
|
|
|
618
523
|
<ClCompile Include="ReactHost\JSBundle_Win32.cpp" />
|
|
619
524
|
<ClCompile Include="ReactHost\JSCallInvokerScheduler.cpp" />
|
|
620
525
|
<ClCompile Include="ReactHost\MsoUtils.cpp" />
|
|
621
|
-
<ClCompile Include="ReactHost\
|
|
526
|
+
<ClCompile Include="ReactHost\MsoReactContext.cpp" />
|
|
622
527
|
<ClCompile Include="ReactHost\ReactErrorProvider.cpp" />
|
|
623
528
|
<ClCompile Include="ReactHost\ReactHost.cpp" />
|
|
624
529
|
<ClCompile Include="ReactHost\ReactInstanceWin.cpp" />
|
|
@@ -821,6 +726,7 @@
|
|
|
821
726
|
<PackageReference Include="Microsoft.Windows.CppWinRT" Version="$(CppWinRTVersion)" />
|
|
822
727
|
<PackageReference Include="ReactNative.Hermes.Windows" Version="$(HermesVersion)" />
|
|
823
728
|
<PackageReference Include="$(WinUIPackageName)" Version="$(WinUIPackageVersion)" />
|
|
729
|
+
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22000.194" />
|
|
824
730
|
</ItemGroup>
|
|
825
731
|
<Choose>
|
|
826
732
|
<When Condition="'$(EnableSourceLink)' == 'true'">
|
|
@@ -866,4 +772,4 @@
|
|
|
866
772
|
</ClCompile>
|
|
867
773
|
</ItemGroup>
|
|
868
774
|
</Target>
|
|
869
|
-
</Project>
|
|
775
|
+
</Project>
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<ClCompile Include="ReactHost\MsoUtils.cpp">
|
|
29
29
|
<Filter>ReactHost</Filter>
|
|
30
30
|
</ClCompile>
|
|
31
|
-
<ClCompile Include="ReactHost\
|
|
31
|
+
<ClCompile Include="ReactHost\MsoReactContext.cpp">
|
|
32
32
|
<Filter>ReactHost</Filter>
|
|
33
33
|
</ClCompile>
|
|
34
34
|
<ClCompile Include="ReactHost\ReactErrorProvider.cpp">
|
|
@@ -379,7 +379,7 @@
|
|
|
379
379
|
<ClInclude Include="ReactHost\React_Win.h">
|
|
380
380
|
<Filter>ReactHost</Filter>
|
|
381
381
|
</ClInclude>
|
|
382
|
-
<ClInclude Include="ReactHost\
|
|
382
|
+
<ClInclude Include="ReactHost\MsoReactContext.h">
|
|
383
383
|
<Filter>ReactHost</Filter>
|
|
384
384
|
</ClInclude>
|
|
385
385
|
<ClInclude Include="ReactHost\ReactErrorProvider.h">
|
|
@@ -20,6 +20,7 @@ void AppState::Initialize(winrt::Microsoft::ReactNative::ReactContext const &rea
|
|
|
20
20
|
auto currentApp = xaml::TryGetCurrentApplication();
|
|
21
21
|
|
|
22
22
|
if (!IsWinUI3Island() && currentApp != nullptr) {
|
|
23
|
+
#ifndef USE_WINUI3
|
|
23
24
|
m_enteredBackgroundRevoker = currentApp.EnteredBackground(
|
|
24
25
|
winrt::auto_revoke,
|
|
25
26
|
[weakThis = weak_from_this()](
|
|
@@ -39,6 +40,7 @@ void AppState::Initialize(winrt::Microsoft::ReactNative::ReactContext const &rea
|
|
|
39
40
|
strongThis->SetActive(true);
|
|
40
41
|
}
|
|
41
42
|
});
|
|
43
|
+
#endif
|
|
42
44
|
} else {
|
|
43
45
|
assert(IsXamlIsland());
|
|
44
46
|
}
|
|
@@ -41,8 +41,10 @@ struct AppState : public std::enable_shared_from_this<AppState> {
|
|
|
41
41
|
std::atomic<bool> m_active;
|
|
42
42
|
char const *m_lastState{nullptr};
|
|
43
43
|
React::ReactContext m_context;
|
|
44
|
+
#ifndef USE_WINUI3
|
|
44
45
|
xaml::Application::EnteredBackground_revoker m_enteredBackgroundRevoker;
|
|
45
46
|
xaml::Application::LeavingBackground_revoker m_leavingBackgroundRevoker;
|
|
47
|
+
#endif
|
|
46
48
|
};
|
|
47
49
|
|
|
48
50
|
} // namespace Microsoft::ReactNative
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
|
|
4
4
|
#include <CreateModules.h>
|
|
5
|
+
#include <Networking/WinRTWebSocketResource.h>
|
|
5
6
|
#include <QuirkSettings.h>
|
|
6
7
|
#include <React.h>
|
|
7
8
|
#include <ReactPropertyBag.h>
|
|
8
|
-
#include <WinRTWebSocketResource.h>
|
|
9
9
|
|
|
10
10
|
// React Native
|
|
11
11
|
#include <cxxreact/CxxModule.h>
|
|
@@ -17,11 +17,11 @@ using winrt::Microsoft::ReactNative::ReactPropertyBag;
|
|
|
17
17
|
using winrt::Microsoft::ReactNative::ReactPropertyId;
|
|
18
18
|
using winrt::Microsoft::ReactNative::implementation::QuirkSettings;
|
|
19
19
|
|
|
20
|
-
namespace Microsoft::React {
|
|
20
|
+
namespace Microsoft::React::Networking {
|
|
21
21
|
|
|
22
22
|
std::shared_ptr<IWebSocketResource> IWebSocketResource::Make() {
|
|
23
23
|
std::vector<winrt::Windows::Security::Cryptography::Certificates::ChainValidationResult> certExceptions;
|
|
24
24
|
return std::make_shared<WinRTWebSocketResource>(std::move(certExceptions));
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
} // namespace Microsoft::React
|
|
27
|
+
} // namespace Microsoft::React::Networking
|
|
@@ -236,7 +236,7 @@ void NativeUIManager::AddRootView(ShadowNode &shadowNode, facebook::react::IReac
|
|
|
236
236
|
m_tagsToYogaNodes.emplace(shadowNode.m_tag, make_yoga_node(m_yogaConfig));
|
|
237
237
|
|
|
238
238
|
auto element = view.as<xaml::FrameworkElement>();
|
|
239
|
-
|
|
239
|
+
Microsoft::ReactNative::SetTag(element, shadowNode.m_tag);
|
|
240
240
|
|
|
241
241
|
// Add listener to size change so we can redo the layout when that happens
|
|
242
242
|
m_sizeChangedVector.push_back(
|
|
@@ -456,6 +456,8 @@ static void StyleYogaNode(
|
|
|
456
456
|
wrap = YGWrapNoWrap;
|
|
457
457
|
else if (value == "wrap")
|
|
458
458
|
wrap = YGWrapWrap;
|
|
459
|
+
else if (value == "wrap-reverse")
|
|
460
|
+
wrap = YGWrapWrapReverse;
|
|
459
461
|
else
|
|
460
462
|
assert(false);
|
|
461
463
|
|
|
@@ -978,7 +980,7 @@ void NativeUIManager::measure(
|
|
|
978
980
|
int64_t childTag = rootTag;
|
|
979
981
|
while (true) {
|
|
980
982
|
auto &currNode = m_host->GetShadowNodeForTag(rootTag);
|
|
981
|
-
if (currNode.m_parent ==
|
|
983
|
+
if (currNode.m_parent == InvalidTag)
|
|
982
984
|
break;
|
|
983
985
|
ShadowNodeBase &rootNode = static_cast<ShadowNodeBase &>(currNode);
|
|
984
986
|
if (rootNode.IsWindowed()) {
|
|
@@ -1092,9 +1094,9 @@ void NativeUIManager::findSubviewIn(
|
|
|
1092
1094
|
|
|
1093
1095
|
for (const auto &elem : hitTestElements) {
|
|
1094
1096
|
if (foundElement = elem.try_as<xaml::FrameworkElement>()) {
|
|
1095
|
-
auto tag = foundElement
|
|
1096
|
-
if (tag !=
|
|
1097
|
-
foundTag = tag
|
|
1097
|
+
auto tag = GetTag(foundElement);
|
|
1098
|
+
if (tag != InvalidTag) {
|
|
1099
|
+
foundTag = tag;
|
|
1098
1100
|
break;
|
|
1099
1101
|
}
|
|
1100
1102
|
}
|
|
@@ -130,9 +130,9 @@ void Timing::OnTick() {
|
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
winrt::
|
|
133
|
+
winrt::dispatching::DispatcherQueueTimer Timing::EnsureDispatcherTimer() {
|
|
134
134
|
if (!m_dispatcherQueueTimer) {
|
|
135
|
-
const auto queue = winrt::
|
|
135
|
+
const auto queue = winrt::dispatching::DispatcherQueue::GetForCurrentThread();
|
|
136
136
|
m_dispatcherQueueTimer = queue.CreateTimer();
|
|
137
137
|
m_dispatcherQueueTimer.Tick([wkThis = std::weak_ptr(this->shared_from_this())](auto &&...) {
|
|
138
138
|
if (auto pThis = wkThis.lock()) {
|
|
@@ -68,7 +68,7 @@ class Timing : public std::enable_shared_from_this<Timing> {
|
|
|
68
68
|
private:
|
|
69
69
|
std::weak_ptr<facebook::react::Instance> getInstance() noexcept;
|
|
70
70
|
void OnTick();
|
|
71
|
-
winrt::
|
|
71
|
+
winrt::dispatching::DispatcherQueueTimer EnsureDispatcherTimer();
|
|
72
72
|
void StartRendering();
|
|
73
73
|
void StartDispatcherTimer();
|
|
74
74
|
void StopTicks();
|
|
@@ -77,7 +77,7 @@ class Timing : public std::enable_shared_from_this<Timing> {
|
|
|
77
77
|
TimingModule *m_parent;
|
|
78
78
|
TimerQueue m_timerQueue;
|
|
79
79
|
xaml::Media::CompositionTarget::Rendering_revoker m_rendering;
|
|
80
|
-
winrt::
|
|
80
|
+
winrt::dispatching::DispatcherQueueTimer m_dispatcherQueueTimer{nullptr};
|
|
81
81
|
bool m_usingRendering{false};
|
|
82
82
|
};
|
|
83
83
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
|
|
4
|
-
#include "
|
|
4
|
+
#include "MsoReactContext.h"
|
|
5
5
|
#include <winrt/Microsoft.ReactNative.h>
|
|
6
6
|
#include "Microsoft.ReactNative/IReactNotificationService.h"
|
|
7
7
|
#include "MsoUtils.h"
|
|
File without changes
|
|
@@ -79,6 +79,13 @@
|
|
|
79
79
|
#include "JsiApi.h"
|
|
80
80
|
#include "ReactCoreInjection.h"
|
|
81
81
|
|
|
82
|
+
#ifdef USE_FABRIC
|
|
83
|
+
namespace facebook::react {
|
|
84
|
+
void InitTextInputThemeInfo(const Mso::React::IReactContext &reactContext);
|
|
85
|
+
void InitSliderMeasurements(const Mso::React::IReactContext &reactContext);
|
|
86
|
+
} // namespace facebook::react
|
|
87
|
+
#endif
|
|
88
|
+
|
|
82
89
|
namespace Microsoft::ReactNative {
|
|
83
90
|
|
|
84
91
|
void AddStandardViewManagers(
|
|
@@ -385,7 +392,13 @@ void ReactInstanceWin::Initialize() noexcept {
|
|
|
385
392
|
strongThis->m_appearanceListener = Mso::Make<Microsoft::ReactNative::AppearanceChangeListener>(
|
|
386
393
|
strongThis->GetReactContext(), *(strongThis->m_uiQueue));
|
|
387
394
|
Microsoft::ReactNative::DeviceInfoHolder::InitDeviceInfoHolder(strongThis->GetReactContext());
|
|
388
|
-
|
|
395
|
+
|
|
396
|
+
#if USE_FABRIC
|
|
397
|
+
facebook::react::InitTextInputThemeInfo(strongThis->GetReactContext());
|
|
398
|
+
facebook::react::InitSliderMeasurements(strongThis->GetReactContext());
|
|
399
|
+
#endif // USE_FABRIC
|
|
400
|
+
|
|
401
|
+
#endif // CORE_ABI
|
|
389
402
|
|
|
390
403
|
strongThis->Queue().Post([this, weakThis]() noexcept {
|
|
391
404
|
if (auto strongThis = weakThis.GetStrongPtr()) {
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
#include <winrt/Windows.UI.Core.h>
|
|
14
14
|
#include "ReactNativeHost.h"
|
|
15
15
|
#include "ReactViewInstance.h"
|
|
16
|
+
#include "XamlUtils.h"
|
|
16
17
|
|
|
17
18
|
#include <winrt/Microsoft.UI.Xaml.Controls.h>
|
|
18
19
|
|
|
@@ -269,7 +270,7 @@ void ReactRootView::EnsureLoadingUI() noexcept {
|
|
|
269
270
|
m_greenBoxGrid.ColumnDefinitions().Append(c);
|
|
270
271
|
|
|
271
272
|
m_waitingTextBlock.SetValue(xaml::Controls::Grid::ColumnProperty(), winrt::box_value(1));
|
|
272
|
-
m_greenBoxGrid.Background(xaml::Media::SolidColorBrush(
|
|
273
|
+
m_greenBoxGrid.Background(xaml::Media::SolidColorBrush(xaml::FromArgb(0x80, 0x03, 0x29, 0x29)));
|
|
273
274
|
m_greenBoxGrid.Children().Append(m_waitingTextBlock);
|
|
274
275
|
m_greenBoxGrid.VerticalAlignment(xaml::VerticalAlignment::Center);
|
|
275
276
|
Microsoft::UI::Xaml::Controls::ProgressRing ring{};
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
#include <winrt/Windows.Web.Http.h>
|
|
28
28
|
#include "CppWinRTIncludes.h"
|
|
29
29
|
#include "Utils/Helpers.h"
|
|
30
|
+
#include "XamlUtils.h"
|
|
30
31
|
#endif
|
|
31
32
|
|
|
32
33
|
using namespace winrt::Windows::Foundation;
|
|
@@ -210,7 +211,7 @@ struct RedBox : public std::enable_shared_from_this<RedBox> {
|
|
|
210
211
|
webView.HorizontalAlignment(xaml::HorizontalAlignment::Stretch);
|
|
211
212
|
webView.VerticalAlignment(xaml::VerticalAlignment::Stretch);
|
|
212
213
|
webView.MinWidth(400);
|
|
213
|
-
auto dispatcher = winrt::
|
|
214
|
+
auto dispatcher = winrt::dispatching::DispatcherQueue::GetForCurrentThread();
|
|
214
215
|
// XAML doesn't currently provide a way to measure a WebView control,
|
|
215
216
|
// So we're going to tell the WebView to measure itself by running some javascript,
|
|
216
217
|
// and then we'll post a task back to XAML to set the XAML WebView minimum height.
|
|
@@ -274,7 +275,7 @@ struct RedBox : public std::enable_shared_from_this<RedBox> {
|
|
|
274
275
|
xaml::Documents::Run linkRun;
|
|
275
276
|
|
|
276
277
|
linkRun.Text(Microsoft::Common::Unicode::Utf8ToUtf16(METRO_TROUBLESHOOTING_URL));
|
|
277
|
-
link.Foreground(xaml::Media::SolidColorBrush(
|
|
278
|
+
link.Foreground(xaml::Media::SolidColorBrush(xaml::FromArgb(0xff, 0xff, 0xff, 0xff)));
|
|
278
279
|
link.Inlines().Append(linkRun);
|
|
279
280
|
xaml::Documents::Run normalRun;
|
|
280
281
|
normalRun.Text(Microsoft::Common::Unicode::Utf8ToUtf16(json["type"].asString() + (" ─ See ")));
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
#include <Utils/ValueUtils.h>
|
|
10
10
|
#include <winrt/Windows.UI.ViewManagement.h>
|
|
11
11
|
#include "Unicode.h"
|
|
12
|
+
#include "XamlUtils.h"
|
|
12
13
|
|
|
13
14
|
#include <JSValue.h>
|
|
14
15
|
#include <folly/dynamic.h>
|
|
@@ -84,7 +85,7 @@ struct BrushCache {
|
|
|
84
85
|
{L"SystemListAccentHighColor", {nullptr}}};
|
|
85
86
|
|
|
86
87
|
m_uiSettings = winrt::Windows::UI::ViewManagement::UISettings();
|
|
87
|
-
auto dq = winrt::
|
|
88
|
+
auto dq = winrt::dispatching::DispatcherQueue::GetForCurrentThread();
|
|
88
89
|
m_uiSettings.ColorValuesChanged([this, dq](auto &&sender, auto &&args) {
|
|
89
90
|
dq.TryEnqueue([this]() {
|
|
90
91
|
for (auto &entry : m_map) {
|
|
@@ -157,7 +158,7 @@ xaml::Media::Brush BrushFromColorObject(const winrt::Microsoft::ReactNative::JSV
|
|
|
157
158
|
}
|
|
158
159
|
|
|
159
160
|
winrt::Color ColorFromNumber(DWORD argb) noexcept {
|
|
160
|
-
return
|
|
161
|
+
return xaml::FromArgb(GetAFromArgb(argb), GetRFromArgb(argb), GetGFromArgb(argb), GetBFromArgb(argb));
|
|
161
162
|
}
|
|
162
163
|
|
|
163
164
|
REACTWINDOWS_API_(winrt::Color) ColorFrom(const folly::dynamic &d) {
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
#include <JSValueWriter.h>
|
|
13
13
|
#include <Utils/PropertyUtils.h>
|
|
14
14
|
|
|
15
|
+
#include <UI.Xaml.Automation.Peers.h>
|
|
16
|
+
|
|
15
17
|
#ifdef USE_WINUI3
|
|
16
18
|
#define TAB_INDEX_PROPERTY xaml::UIElement::TabIndexProperty
|
|
17
19
|
#define TAB_STOP_PROPERTY xaml::UIElement::IsTabStopProperty
|
|
@@ -80,11 +82,18 @@ bool ControlViewManager::UpdateProperty(
|
|
|
80
82
|
}
|
|
81
83
|
} else if (propertyName == "focusable") {
|
|
82
84
|
if (propertyValue.Type() == winrt::Microsoft::ReactNative::JSValueType::Boolean) {
|
|
85
|
+
IsFocusable(propertyValue.AsBoolean());
|
|
83
86
|
control.IsTabStop(propertyValue.AsBoolean());
|
|
84
87
|
} else if (propertyValue.IsNull()) {
|
|
85
88
|
control.ClearValue(TAB_STOP_PROPERTY());
|
|
89
|
+
IsFocusable(false);
|
|
86
90
|
}
|
|
87
91
|
} else {
|
|
92
|
+
if (propertyName == "accessible") {
|
|
93
|
+
if (propertyValue.Type() == winrt::Microsoft::ReactNative::JSValueType::Boolean) {
|
|
94
|
+
IsAccessible(propertyValue.AsBoolean());
|
|
95
|
+
}
|
|
96
|
+
}
|
|
88
97
|
ret = Super::UpdateProperty(nodeToUpdate, propertyName, propertyValue);
|
|
89
98
|
}
|
|
90
99
|
}
|
|
@@ -96,6 +105,16 @@ bool ControlViewManager::UpdateProperty(
|
|
|
96
105
|
return ret;
|
|
97
106
|
}
|
|
98
107
|
|
|
108
|
+
void ControlViewManager::OnPropertiesUpdated(ShadowNodeBase *node) {
|
|
109
|
+
auto control(node->GetView().as<xaml::Controls::Control>());
|
|
110
|
+
|
|
111
|
+
if (IsAccessible() != IsFocusable()) {
|
|
112
|
+
control.IsTabStop(false);
|
|
113
|
+
xaml::Automation::AutomationProperties::SetAccessibilityView(
|
|
114
|
+
control, xaml::Automation::Peers::AccessibilityView::Raw);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
99
118
|
void ControlViewManager::OnViewCreated(XamlView view) {
|
|
100
119
|
// Set the default cornerRadius to 0 for Control: WinUI usually default cornerRadius to 2
|
|
101
120
|
// Only works on >= RS5 because Control.CornerRadius is only supported >= RS5
|
|
@@ -104,4 +123,17 @@ void ControlViewManager::OnViewCreated(XamlView view) {
|
|
|
104
123
|
}
|
|
105
124
|
}
|
|
106
125
|
|
|
126
|
+
void ControlViewManager::IsAccessible(bool accessible) {
|
|
127
|
+
m_isAccessible = accessible;
|
|
128
|
+
}
|
|
129
|
+
bool ControlViewManager::IsAccessible() {
|
|
130
|
+
return m_isAccessible;
|
|
131
|
+
}
|
|
132
|
+
void ControlViewManager::IsFocusable(bool focusable) {
|
|
133
|
+
m_isFocusable = focusable;
|
|
134
|
+
}
|
|
135
|
+
bool ControlViewManager::IsFocusable() {
|
|
136
|
+
return m_isFocusable;
|
|
137
|
+
}
|
|
138
|
+
|
|
107
139
|
} // namespace Microsoft::ReactNative
|
|
@@ -24,6 +24,17 @@ class REACTWINDOWS_EXPORT ControlViewManager : public FrameworkElementViewManage
|
|
|
24
24
|
|
|
25
25
|
protected:
|
|
26
26
|
void OnViewCreated(XamlView view) override;
|
|
27
|
+
|
|
28
|
+
void OnPropertiesUpdated(ShadowNodeBase *node) override;
|
|
29
|
+
|
|
30
|
+
private:
|
|
31
|
+
void IsAccessible(bool accessible);
|
|
32
|
+
bool IsAccessible();
|
|
33
|
+
void IsFocusable(bool focusable);
|
|
34
|
+
bool IsFocusable();
|
|
35
|
+
|
|
36
|
+
bool m_isAccessible = true;
|
|
37
|
+
bool m_isFocusable = true;
|
|
27
38
|
};
|
|
28
39
|
|
|
29
40
|
} // namespace Microsoft::ReactNative
|
|
@@ -205,8 +205,8 @@ void DevMenuManager::CreateAndShowUI() noexcept {
|
|
|
205
205
|
if (Mso::React::ReactOptions::JsiEngine(m_context->Properties()) == Mso::React::JSIEngine::Hermes) {
|
|
206
206
|
m_samplingProfilerRevoker = devMenu.SamplingProfiler().Click(
|
|
207
207
|
winrt::auto_revoke,
|
|
208
|
-
[wkThis = weak_from_this()](
|
|
209
|
-
|
|
208
|
+
[wkThis = weak_from_this()](auto & /*sender*/, xaml::RoutedEventArgs const & /*args*/) noexcept
|
|
209
|
+
-> winrt::fire_and_forget {
|
|
210
210
|
if (auto strongThis = wkThis.lock()) {
|
|
211
211
|
strongThis->Hide();
|
|
212
212
|
if (!Microsoft::ReactNative::HermesSamplingProfiler::IsStarted()) {
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
#include <UI.Xaml.Controls.h>
|
|
8
8
|
#include "DynamicAutomationProperties.h"
|
|
9
9
|
#include "FrameworkElementTransferProperties.h"
|
|
10
|
+
#include "ViewPanel.h"
|
|
10
11
|
|
|
11
12
|
namespace Microsoft::ReactNative {
|
|
12
13
|
|
|
@@ -45,8 +46,18 @@ void TransferFrameworkElementProperties(const xaml::DependencyObject &oldView, c
|
|
|
45
46
|
TransferProperty(oldView, newView, xaml::FrameworkElement::MaxHeightProperty());
|
|
46
47
|
TransferProperty(oldView, newView, xaml::FrameworkElement::FlowDirectionProperty());
|
|
47
48
|
TransferProperty(oldView, newView, xaml::Controls::Canvas::ZIndexProperty());
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
|
|
50
|
+
const auto oldUI = oldView.as<xaml::UIElement>();
|
|
51
|
+
const auto left = winrt::Microsoft::ReactNative::ViewPanel::GetLeft(oldUI);
|
|
52
|
+
const auto top = winrt::Microsoft::ReactNative::ViewPanel::GetTop(oldUI);
|
|
53
|
+
oldUI.ClearValue(winrt::Microsoft::ReactNative::ViewPanel::LeftProperty());
|
|
54
|
+
oldUI.ClearValue(winrt::Microsoft::ReactNative::ViewPanel::TopProperty());
|
|
55
|
+
winrt::Microsoft::ReactNative::implementation::ViewPanel::InvalidateForArrange(oldView);
|
|
56
|
+
|
|
57
|
+
const auto newUI = newView.as<xaml::UIElement>();
|
|
58
|
+
winrt::Microsoft::ReactNative::ViewPanel::SetLeft(newUI, left);
|
|
59
|
+
winrt::Microsoft::ReactNative::ViewPanel::SetTop(newUI, top);
|
|
60
|
+
// ViewPanel::SetLeft and SetTop already invalidate for arrange
|
|
50
61
|
|
|
51
62
|
// Accessibility Properties
|
|
52
63
|
TransferProperty(oldView, newView, xaml::Automation::AutomationProperties::AutomationIdProperty());
|