react-native-windows 0.71.7 → 0.72.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 +13 -3
- package/Directory.Build.props +19 -19
- package/Libraries/ActionSheetIOS/ActionSheetIOS.js +1 -1
- package/Libraries/Alert/Alert.d.ts +4 -4
- package/Libraries/Alert/Alert.windows.js +2 -0
- package/Libraries/Alert/NativeDialogManagerWindows.js +1 -0
- package/Libraries/Animated/Animated.d.ts +17 -6
- package/Libraries/Animated/NativeAnimatedHelper.js +18 -6
- package/Libraries/Animated/bezier.js +1 -1
- package/Libraries/Animated/components/AnimatedFlatList.js +8 -3
- package/Libraries/Animated/components/AnimatedScrollView.js +4 -1
- package/Libraries/Animated/components/AnimatedSectionList.js +12 -3
- package/Libraries/Animated/createAnimatedComponent.js +26 -239
- package/Libraries/Animated/nodes/AnimatedColor.js +47 -80
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +167 -121
- package/Libraries/Animated/nodes/AnimatedNode.js +3 -5
- package/Libraries/Animated/nodes/AnimatedProps.js +7 -6
- package/Libraries/Animated/nodes/AnimatedStyle.js +42 -8
- package/Libraries/Animated/nodes/AnimatedTransform.js +1 -1
- package/Libraries/Animated/nodes/AnimatedValue.js +8 -12
- package/Libraries/Animated/nodes/AnimatedWithChildren.js +1 -1
- package/Libraries/Animated/useAnimatedProps.js +7 -10
- package/Libraries/AppTheme/AppTheme.js +1 -0
- package/Libraries/AppTheme/AppThemeTypes.d.ts +1 -1
- package/Libraries/BatchedBridge/MessageQueue.js +2 -1
- package/Libraries/BatchedBridge/NativeModules.d.ts +1 -1
- package/Libraries/BatchedBridge/NativeModules.js +1 -0
- package/Libraries/Blob/Blob.js +4 -0
- package/Libraries/Blob/FileReader.js +30 -2
- package/Libraries/Blob/URL.js +3 -1
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +2 -2
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +2 -3
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.windows.js +2 -3
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +6 -4
- package/Libraries/Components/Button.js +3 -2
- package/Libraries/Components/Button.windows.js +3 -2
- package/Libraries/Components/Clipboard/Clipboard.js +1 -1
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +4 -0
- package/Libraries/Components/Flyout/Flyout.d.ts +55 -19
- package/Libraries/Components/Flyout/Flyout.js +110 -51
- package/Libraries/Components/Flyout/FlyoutNativeComponent.js +45 -0
- package/Libraries/Components/Glyph/Glyph.d.ts +29 -12
- package/Libraries/Components/Glyph/Glyph.js +43 -30
- package/Libraries/Components/Glyph/GlyphNativeComponent.js +31 -0
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +1 -0
- package/Libraries/Components/Keyboard/KeyboardExtProps.d.ts +2 -2
- package/Libraries/Components/Keyboard/KeyboardExtProps.js.map +1 -1
- package/Libraries/Components/Popup/Popup.d.ts +41 -19
- package/Libraries/Components/Popup/Popup.js +86 -52
- package/Libraries/Components/Popup/PopupNativeComponent.js +49 -0
- package/Libraries/Components/Pressable/Pressable.d.ts +1 -1
- package/Libraries/Components/Pressable/Pressable.js +1 -1
- package/Libraries/Components/RefreshControl/RefreshControl.js +1 -0
- package/Libraries/Components/RefreshControl/RefreshControl.windows.js +1 -0
- package/Libraries/Components/SafeAreaView/SafeAreaView.js +1 -2
- package/Libraries/Components/SafeAreaView/SafeAreaView.windows.js +1 -2
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +12 -6
- package/Libraries/Components/ScrollView/ScrollView.d.ts +2 -2
- package/Libraries/Components/ScrollView/ScrollView.js +149 -91
- package/Libraries/Components/ScrollView/ScrollView.windows.js +1939 -0
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +16 -6
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.windows.js +175 -0
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +5 -7
- package/Libraries/Components/ScrollView/ScrollViewViewConfig.js +1 -1
- package/Libraries/Components/StatusBar/StatusBar.js +3 -0
- package/Libraries/Components/Switch/Switch.js +3 -1
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +21 -11
- package/Libraries/Components/TextInput/InputAccessoryView.d.ts +1 -1
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +11 -5
- package/Libraries/Components/TextInput/TextInput.d.ts +15 -5
- package/Libraries/Components/TextInput/TextInput.flow.js +1 -1
- package/Libraries/Components/TextInput/TextInput.js +130 -103
- package/Libraries/Components/TextInput/TextInput.windows.js +152 -115
- package/Libraries/Components/TextInput/WindowsTextInputNativeComponent.js +1 -1
- package/Libraries/Components/Touchable/Touchable.d.ts +1 -1
- package/Libraries/Components/Touchable/Touchable.flow.js +30 -4
- package/Libraries/Components/Touchable/Touchable.js +6 -3
- package/Libraries/Components/Touchable/Touchable.windows.js +6 -3
- package/Libraries/Components/Touchable/TouchableHighlight.js +1 -1
- package/Libraries/Components/Touchable/TouchableHighlight.windows.js +2 -1
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +2 -2
- package/Libraries/Components/Touchable/TouchableOpacity.js +3 -0
- package/Libraries/Components/Touchable/TouchableOpacity.windows.js +4 -0
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +1 -1
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +2 -2
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.windows.js +2 -2
- package/Libraries/Components/TraceUpdateOverlay/TraceUpdateOverlay.js +189 -0
- package/Libraries/Components/TraceUpdateOverlay/TraceUpdateOverlayNativeComponent.js +43 -0
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +26 -0
- package/Libraries/Components/View/View.js +71 -45
- package/Libraries/Components/View/View.windows.js +40 -16
- package/Libraries/Components/View/ViewAccessibility.d.ts +6 -6
- package/Libraries/Components/View/ViewAccessibility.js +10 -1
- package/Libraries/Components/View/ViewAccessibility.windows.js +9 -0
- package/Libraries/Components/View/ViewNativeComponent.js +32 -8
- package/Libraries/Components/View/ViewPropTypes.d.ts +1 -1
- package/Libraries/Components/View/ViewPropTypes.js +1 -1
- package/Libraries/Components/View/ViewPropTypes.windows.js +3 -1
- package/Libraries/Core/Devtools/openFileInEditor.js +1 -0
- package/Libraries/Core/Devtools/openURLInBrowser.js +1 -0
- package/Libraries/Core/Devtools/parseErrorStack.js +2 -2
- package/Libraries/Core/Devtools/parseHermesStack.js +54 -34
- package/Libraries/Core/ExceptionsManager.js +2 -2
- package/Libraries/Core/InitializeCore.js +2 -1
- package/Libraries/Core/ReactNativeVersion.js +3 -3
- package/Libraries/Core/ReactNativeVersionCheck.js +1 -9
- package/Libraries/Core/Timers/JSTimers.js +1 -1
- package/Libraries/Core/Timers/immediateShim.js +1 -0
- package/Libraries/Core/Timers/queueMicrotask.js +1 -1
- package/Libraries/Core/setUpAlert.js +1 -1
- package/Libraries/Core/setUpDOM.js +18 -0
- package/Libraries/Core/setUpDeveloperTools.js +1 -1
- package/Libraries/Core/setUpGlobals.js +5 -2
- package/Libraries/Core/setUpNavigator.js +6 -5
- package/Libraries/Core/setUpPerformance.js +23 -13
- package/Libraries/Core/setUpReactDevTools.js +2 -0
- package/Libraries/Core/setUpSegmentFetcher.js +0 -41
- package/Libraries/Core/setUpTimers.js +2 -2
- package/Libraries/DOM/Geometry/DOMRect.js +82 -0
- package/Libraries/DOM/Geometry/DOMRectReadOnly.js +188 -0
- package/Libraries/DOM/Nodes/ReactNativeElement.js +75 -0
- package/Libraries/DOM/Nodes/ReadOnlyElement.js +89 -0
- package/Libraries/DOM/Nodes/ReadOnlyNode.js +167 -0
- package/Libraries/DOM/OldStyleCollections/ArrayLikeUtils.js +46 -0
- package/Libraries/DOM/OldStyleCollections/DOMRectList.js +76 -0
- package/Libraries/DOM/OldStyleCollections/HTMLCollection.js +82 -0
- package/Libraries/DOM/OldStyleCollections/NodeList.js +104 -0
- package/Libraries/DevToolsSettings/DevToolsSettingsManager.android.js +35 -0
- package/Libraries/DevToolsSettings/DevToolsSettingsManager.d.ts +20 -0
- package/Libraries/DevToolsSettings/DevToolsSettingsManager.ios.js +49 -0
- package/Libraries/DevToolsSettings/DevToolsSettingsManager.windows.js +35 -0
- package/Libraries/{Utilities/NativeDevSplitBundleLoader.js → DevToolsSettings/NativeDevToolsSettingsManager.js} +7 -2
- package/Libraries/EventEmitter/NativeEventEmitter.d.ts +1 -2
- package/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts +1 -2
- package/Libraries/EventEmitter/RCTDeviceEventEmitter.js +9 -1
- package/Libraries/Events/EventPolyfill.js +1 -1
- package/Libraries/Image/AssetRegistry.js +1 -1
- package/Libraries/Image/AssetSourceResolver.js +3 -3
- package/Libraries/Image/Image.android.js +4 -1
- package/Libraries/Image/Image.d.ts +63 -2
- package/Libraries/Image/Image.ios.js +3 -0
- package/Libraries/Image/Image.windows.js +3 -0
- package/Libraries/Image/ImageBackground.js +1 -0
- package/Libraries/Image/ImageProps.js +1 -1
- package/Libraries/Image/ImageViewNativeComponent.js +4 -4
- package/Libraries/Image/RelativeImageStub.js +1 -1
- package/Libraries/Image/TextInlineImageNativeComponent.js +1 -1
- package/Libraries/Image/resolveAssetSource.js +1 -1
- package/Libraries/Inspector/DevtoolsOverlay.js +29 -19
- package/Libraries/Inspector/ElementBox.js +4 -1
- package/Libraries/Inspector/Inspector.js +5 -6
- package/Libraries/Inspector/InspectorOverlay.js +3 -3
- package/Libraries/Inspector/NetworkOverlay.js +1 -1
- package/Libraries/Interaction/JSEventLoopWatchdog.js +1 -1
- package/Libraries/Interaction/PanResponder.js +5 -6
- package/Libraries/LayoutAnimation/LayoutAnimation.js +2 -1
- package/Libraries/Linking/Linking.js +1 -4
- package/Libraries/Lists/FillRateHelper.js +4 -238
- package/Libraries/Lists/FlatList.d.ts +15 -22
- package/Libraries/Lists/FlatList.js +9 -6
- package/Libraries/Lists/SectionList.d.ts +10 -6
- package/Libraries/Lists/SectionList.js +5 -3
- package/Libraries/Lists/SectionListModern.js +3 -3
- package/Libraries/Lists/ViewabilityHelper.js +8 -344
- package/Libraries/Lists/VirtualizeUtils.js +4 -244
- package/Libraries/Lists/VirtualizedList.js +10 -1867
- package/Libraries/Lists/VirtualizedListContext.js +6 -104
- package/Libraries/Lists/VirtualizedSectionList.js +9 -602
- package/Libraries/Lists/__flowtests__/FlatList-flowtest.js +1 -0
- package/Libraries/Lists/__flowtests__/SectionList-flowtest.js +1 -1
- package/Libraries/LogBox/Data/LogBoxData.js +1 -1
- package/Libraries/LogBox/Data/parseLogBoxLog.js +1 -1
- package/Libraries/LogBox/LogBox.js +1 -1
- package/Libraries/LogBox/UI/LogBoxInspector.js +1 -3
- package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.windows.js +167 -0
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.windows.js +172 -0
- package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.windows.js +193 -0
- package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +1 -0
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js +2 -2
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.windows.js +118 -0
- package/Libraries/LogBox/UI/LogBoxMessage.js +87 -5
- package/Libraries/LogBox/UI/LogBoxNotification.js +5 -7
- package/Libraries/Modal/Modal.js +2 -2
- package/Libraries/NativeComponent/BaseViewConfig.android.js +32 -12
- package/Libraries/NativeComponent/BaseViewConfig.ios.js +43 -19
- package/Libraries/NativeComponent/BaseViewConfig.windows.js +77 -19
- package/Libraries/NativeComponent/NativeComponentRegistryUnstable.js +4 -1
- package/Libraries/NativeComponent/ViewConfig.js +1 -0
- package/Libraries/NativeComponent/ViewConfigIgnore.js +1 -4
- package/Libraries/Network/RCTNetworking.android.js +2 -2
- package/Libraries/Network/RCTNetworking.ios.js +1 -1
- package/Libraries/Network/RCTNetworking.windows.js +1 -1
- package/Libraries/Network/XMLHttpRequest.js +1 -1
- package/Libraries/Pressability/Pressability.js +11 -5
- package/Libraries/Pressability/Pressability.windows.js +11 -4
- package/Libraries/ReactNative/AppContainer.js +7 -1
- package/Libraries/ReactNative/AppRegistry.d.ts +1 -1
- package/Libraries/ReactNative/AppRegistry.js +10 -13
- package/Libraries/ReactNative/FabricUIManager.js +24 -8
- package/Libraries/ReactNative/NativeUIManager.js +5 -5
- package/Libraries/ReactNative/ReactNativeFeatureFlags.js +10 -10
- package/Libraries/ReactNative/UIManager.js +142 -1
- package/Libraries/ReactNative/getCachedComponentWithDebugName.js +5 -5
- package/Libraries/ReactNative/getNativeComponentAttributes.js +1 -1
- package/Libraries/ReactNative/requireNativeComponent.d.ts +1 -1
- package/Libraries/ReactNative/requireNativeComponent.js +1 -1
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +1 -0
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +26 -3
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +13 -1
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +13 -1
- package/Libraries/Renderer/public/ReactFabricPublicInstanceUtils.js +38 -0
- package/Libraries/Renderer/shims/ReactNativeTypes.js +38 -20
- package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +7 -7
- package/Libraries/Renderer/shims/createReactNativeComponentClass.js +2 -2
- package/Libraries/Share/Share.js +1 -1
- package/Libraries/StyleSheet/PlatformColorValueTypes.ios.js +1 -1
- package/Libraries/StyleSheet/StyleSheet.js +1 -1
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +115 -76
- package/Libraries/StyleSheet/StyleSheetTypes.js +188 -33
- package/Libraries/StyleSheet/flattenStyle.js +2 -0
- package/Libraries/StyleSheet/normalizeColor.js +1 -1
- package/Libraries/StyleSheet/processColor.js +1 -1
- package/Libraries/Text/Text.d.ts +12 -2
- package/Libraries/Text/Text.js +50 -41
- package/Libraries/Text/Text.windows.js +48 -38
- package/Libraries/Text/TextProps.js +3 -4
- package/Libraries/TurboModule/samples/NativeSampleTurboModule.js +6 -0
- package/Libraries/Types/CodegenTypes.js +1 -0
- package/Libraries/UTFSequence.js +3 -1
- package/Libraries/Utilities/Appearance.d.ts +10 -0
- package/Libraries/Utilities/Appearance.js +13 -0
- package/Libraries/Utilities/Dimensions.js +1 -1
- package/Libraries/Utilities/GlobalPerformanceLogger.js +12 -1
- package/Libraries/Utilities/HMRClient.js +16 -10
- package/Libraries/Utilities/{createPerformanceLogger.d.ts → IPerformanceLogger.d.ts} +4 -4
- package/Libraries/Utilities/IPerformanceLogger.js +49 -0
- package/Libraries/Utilities/LoadingView.android.js +28 -11
- package/Libraries/Utilities/NativeAppearance.js +1 -0
- package/Libraries/Utilities/NativePlatformConstantsWin.js +1 -1
- package/Libraries/Utilities/PixelRatio.js +2 -2
- package/Libraries/Utilities/Platform.windows.js +1 -1
- package/Libraries/Utilities/ReactNativeTestTools.js +1 -1
- package/Libraries/Utilities/__mocks__/PixelRatio.js +1 -1
- package/Libraries/Utilities/codegenNativeCommands.js +2 -0
- package/Libraries/Utilities/createPerformanceLogger.js +55 -43
- package/Libraries/Utilities/stringifySafe.js +2 -7
- package/Libraries/Utilities/useColorScheme.js +1 -1
- package/Libraries/Utilities/useWindowDimensions.js +3 -3
- package/Libraries/WebPerformance/EventCounts.js +78 -0
- package/Libraries/WebPerformance/MemoryInfo.js +54 -0
- package/Libraries/WebPerformance/NativePerformance.js +38 -0
- package/Libraries/WebPerformance/NativePerformanceObserver.js +22 -7
- package/Libraries/WebPerformance/Performance.js +312 -0
- package/Libraries/WebPerformance/PerformanceEntry.js +45 -0
- package/Libraries/WebPerformance/PerformanceEventTiming.js +38 -0
- package/Libraries/WebPerformance/PerformanceObserver.js +196 -101
- package/Libraries/WebPerformance/RawPerformanceEntry.js +87 -0
- package/Libraries/WebPerformance/ReactNativeStartupTiming.js +65 -0
- package/Libraries/WebPerformance/__mocks__/NativePerformance.js +65 -0
- package/Libraries/WebPerformance/__mocks__/NativePerformanceObserver.js +101 -0
- package/Libraries/YellowBox/YellowBoxDeprecated.js +1 -1
- package/Libraries/platform-types.d.ts +3 -5
- package/Libraries/vendor/core/ErrorUtils.js +1 -1
- package/Libraries/vendor/emitter/EventEmitter.d.ts +2 -2
- package/Libraries/vendor/emitter/EventEmitter.js +9 -1
- package/Microsoft.ReactNative/Base/CoreNativeModules.cpp +0 -15
- package/Microsoft.ReactNative/CompositionHwndHost.idl +6 -0
- package/Microsoft.ReactNative/CompositionRootView.idl +35 -0
- package/Microsoft.ReactNative/CompositionSwitcher.idl +19 -0
- package/Microsoft.ReactNative/Fabric/AbiViewComponentDescriptor.cpp +174 -0
- package/Microsoft.ReactNative/Fabric/AbiViewComponentDescriptor.h +91 -0
- package/Microsoft.ReactNative/Fabric/AbiViewProps.cpp +48 -0
- package/Microsoft.ReactNative/Fabric/AbiViewProps.h +48 -0
- package/Microsoft.ReactNative/Fabric/ComponentView.h +19 -2
- package/Microsoft.ReactNative/Fabric/Composition/AbiCompositionViewComponentView.cpp +144 -0
- package/Microsoft.ReactNative/Fabric/Composition/AbiCompositionViewComponentView.h +63 -0
- package/Microsoft.ReactNative/Fabric/Composition/ComponentViewRegistry.cpp +27 -6
- package/Microsoft.ReactNative/Fabric/Composition/CompositionContextHelper.cpp +97 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.cpp +227 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.h +38 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionEventHandler.cpp +112 -95
- package/Microsoft.ReactNative/Fabric/Composition/CompositionEventHandler.h +12 -8
- package/Microsoft.ReactNative/Fabric/Composition/CompositionHelpers.h +0 -2
- package/Microsoft.ReactNative/Fabric/Composition/CompositionHwndHost.cpp +27 -6
- package/Microsoft.ReactNative/Fabric/Composition/CompositionHwndHost.h +8 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionRootAutomationProvider.cpp +147 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionRootAutomationProvider.h +46 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionRootView.cpp +31 -4
- package/Microsoft.ReactNative/Fabric/Composition/CompositionRootView.h +37 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.cpp +255 -50
- package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.h +34 -15
- package/Microsoft.ReactNative/Fabric/Composition/ImageComponentView.cpp +127 -47
- package/Microsoft.ReactNative/Fabric/Composition/ImageComponentView.h +11 -7
- package/Microsoft.ReactNative/Fabric/Composition/ParagraphComponentView.cpp +109 -39
- package/Microsoft.ReactNative/Fabric/Composition/ParagraphComponentView.h +10 -7
- package/Microsoft.ReactNative/Fabric/Composition/ReactCompositionViewComponentBuilder.cpp +106 -0
- package/Microsoft.ReactNative/Fabric/Composition/ReactCompositionViewComponentBuilder.h +63 -0
- package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.cpp +116 -0
- package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.h +43 -0
- package/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.cpp +53 -38
- package/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.h +12 -8
- package/Microsoft.ReactNative/Fabric/Composition/SwitchComponentView.cpp +262 -0
- package/Microsoft.ReactNative/Fabric/Composition/SwitchComponentView.h +62 -0
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp +35 -30
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.h +11 -9
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputProps.cpp +9 -0
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputProps.h +3 -0
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputShadowNode.cpp +2 -1
- package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.cpp +72 -0
- package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.h +16 -0
- package/Microsoft.ReactNative/Fabric/Composition/UnimplementedNativeViewComponentView.cpp +168 -0
- package/Microsoft.ReactNative/Fabric/Composition/UnimplementedNativeViewComponentView.h +49 -0
- package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.cpp +19 -53
- package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.h +2 -3
- package/Microsoft.ReactNative/Fabric/ReactTaggedView.h +8 -9
- package/Microsoft.ReactNative/Fabric/WindowsComponentDescriptorRegistry.cpp +100 -0
- package/Microsoft.ReactNative/Fabric/WindowsComponentDescriptorRegistry.h +43 -0
- package/Microsoft.ReactNative/Fabric/platform/react/components/view/windows/WindowsViewProps.cpp +61 -0
- package/Microsoft.ReactNative/Fabric/platform/react/components/view/windows/WindowsViewProps.h +34 -0
- package/Microsoft.ReactNative/Fabric/platform/react/components/view/windows/primitives.h +42 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewProps.h +10 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/core/graphicsConversions.h +248 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/graphics/Color.cpp +5 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/graphics/Color.h +135 -4
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/graphics/conversions.h +18 -240
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/TextLayoutManager.cpp +107 -17
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/TextLayoutManager.h +13 -2
- package/Microsoft.ReactNative/IReactCompositionViewComponentBuilder.idl +87 -0
- package/Microsoft.ReactNative/IReactContext.cpp +4 -0
- package/Microsoft.ReactNative/IReactContext.h +1 -0
- package/Microsoft.ReactNative/IReactContext.idl +5 -0
- package/Microsoft.ReactNative/IReactDispatcher.cpp +4 -0
- package/Microsoft.ReactNative/IReactDispatcher.h +1 -0
- package/Microsoft.ReactNative/IReactPackageBuilderFabric.idl +23 -0
- package/Microsoft.ReactNative/IReactViewComponentBuilder.idl +23 -0
- package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +4 -118
- package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj.filters +1 -7
- package/Microsoft.ReactNative/Modules/AccessibilityInfoModule.cpp +2 -2
- package/Microsoft.ReactNative/Modules/AccessibilityInfoModule.h +1 -1
- package/Microsoft.ReactNative/Modules/AlertModule.cpp +100 -4
- package/Microsoft.ReactNative/Modules/AlertModule.h +4 -0
- package/Microsoft.ReactNative/Modules/Animated/NativeAnimatedModule.cpp +9 -0
- package/Microsoft.ReactNative/Modules/Animated/NativeAnimatedModule.h +2 -0
- package/Microsoft.ReactNative/Modules/Animated/NativeAnimatedNodeManager.cpp +7 -5
- package/Microsoft.ReactNative/Modules/Animated/PropsAnimatedNode.cpp +17 -3
- package/Microsoft.ReactNative/Modules/Animated/ValueAnimatedNode.h +1 -0
- package/Microsoft.ReactNative/Modules/AppearanceModule.cpp +4 -0
- package/Microsoft.ReactNative/Modules/AppearanceModule.h +3 -0
- package/Microsoft.ReactNative/Modules/ClipboardModule.cpp +4 -4
- package/Microsoft.ReactNative/Modules/ClipboardModule.h +2 -2
- package/Microsoft.ReactNative/Modules/ImageViewManagerModule.cpp +27 -7
- package/Microsoft.ReactNative/Modules/ImageViewManagerModule.h +9 -5
- package/Microsoft.ReactNative/Modules/LinkingManagerModule.cpp +10 -12
- package/Microsoft.ReactNative/Modules/LinkingManagerModule.h +4 -4
- package/Microsoft.ReactNative/Modules/NativeUIManager.cpp +21 -1
- package/Microsoft.ReactNative/QuirkSettings.cpp +17 -0
- package/Microsoft.ReactNative/QuirkSettings.h +5 -0
- package/Microsoft.ReactNative/QuirkSettings.idl +6 -0
- package/Microsoft.ReactNative/ReactApplication.cpp +8 -0
- package/Microsoft.ReactNative/ReactApplication.h +3 -0
- package/Microsoft.ReactNative/ReactApplication.idl +3 -0
- package/Microsoft.ReactNative/ReactCoreInjection.cpp +29 -0
- package/Microsoft.ReactNative/ReactCoreInjection.h +6 -0
- package/Microsoft.ReactNative/ReactCoreInjection.idl +13 -0
- package/Microsoft.ReactNative/ReactHost/MsoReactContext.cpp +7 -0
- package/Microsoft.ReactNative/ReactHost/MsoReactContext.h +1 -0
- package/Microsoft.ReactNative/ReactHost/React.h +2 -0
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp +57 -16
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.h +1 -0
- package/Microsoft.ReactNative/ReactInstanceSettings.h +12 -0
- package/Microsoft.ReactNative/ReactInstanceSettings.idl +6 -0
- package/Microsoft.ReactNative/ReactNativeHost.cpp +17 -0
- package/Microsoft.ReactNative/ReactPackageBuilder.cpp +18 -0
- package/Microsoft.ReactNative/ReactPackageBuilder.h +24 -1
- package/Microsoft.ReactNative/ReactRootView.cpp +2 -2
- package/Microsoft.ReactNative/RedBox.cpp +2 -1
- package/Microsoft.ReactNative/Utils/Helpers.cpp +0 -32
- package/Microsoft.ReactNative/Utils/Helpers.h +0 -8
- package/Microsoft.ReactNative/Utils/ImageUtils.cpp +69 -6
- package/Microsoft.ReactNative/Utils/ImageUtils.h +3 -1
- package/Microsoft.ReactNative/Utils/KeyboardUtils.cpp +416 -0
- package/Microsoft.ReactNative/Utils/KeyboardUtils.h +15 -0
- package/Microsoft.ReactNative/Utils/TransformableText.h +1 -0
- package/Microsoft.ReactNative/Utils/ValueUtils.cpp +1 -9
- package/Microsoft.ReactNative/Utils/ValueUtils.h +0 -2
- package/Microsoft.ReactNative/ViewProps.idl +30 -0
- package/Microsoft.ReactNative/Views/ControlViewManager.cpp +6 -2
- package/Microsoft.ReactNative/Views/DevMenu.cpp +369 -230
- package/Microsoft.ReactNative/Views/DevMenu.h +3 -15
- package/Microsoft.ReactNative/Views/FlyoutViewManager.cpp +6 -3
- package/Microsoft.ReactNative/Views/Image/ImageViewManager.cpp +11 -3
- package/Microsoft.ReactNative/Views/Image/ImageViewManager.h +5 -1
- package/Microsoft.ReactNative/Views/Image/ReactImage.cpp +29 -22
- package/Microsoft.ReactNative/Views/Image/ReactImage.h +2 -2
- package/Microsoft.ReactNative/Views/KeyboardEventHandler.cpp +10 -405
- package/Microsoft.ReactNative/Views/KeyboardEventHandler.h +0 -3
- package/Microsoft.ReactNative/Views/PopupViewManager.cpp +1 -0
- package/Microsoft.ReactNative/Views/ScrollViewManager.cpp +2 -2
- package/Microsoft.ReactNative/Views/ShadowNodeBase.cpp +7 -0
- package/Microsoft.ReactNative/Views/ShadowNodeBase.h +3 -0
- package/Microsoft.ReactNative/Views/Text/TextHitTestUtils.cpp +6 -1
- package/Microsoft.ReactNative/Views/Text/TextPropertyChangedParentVisitor.cpp +1 -0
- package/Microsoft.ReactNative/Views/TextInputViewManager.cpp +38 -2
- package/Microsoft.ReactNative/Views/TextViewManager.cpp +3 -0
- package/Microsoft.ReactNative/Views/TouchEventHandler.h +0 -4
- package/Microsoft.ReactNative/Views/ViewManagerBase.cpp +0 -8
- package/Microsoft.ReactNative/Views/ViewPanel.cpp +1 -1
- package/Microsoft.ReactNative/Views/ViewViewManager.cpp +12 -3
- package/Microsoft.ReactNative/XamlHelper.cpp +36 -0
- package/Microsoft.ReactNative/XamlHelper.h +27 -0
- package/Microsoft.ReactNative.Cxx/JSI/JsiAbiApi.cpp +4 -4
- package/Microsoft.ReactNative.Cxx/JSI/JsiAbiApi.h +4 -4
- package/Microsoft.ReactNative.Cxx/JSI/LongLivedJsiValue.h +1 -1
- package/Microsoft.ReactNative.Cxx/JSI/NodeApiJsiRuntime.cpp +10 -8
- package/Microsoft.ReactNative.Cxx/JSI/NodeApiJsiRuntime.h +3 -3
- package/Microsoft.ReactNative.Cxx/Microsoft.ReactNative.Cxx.vcxitems +4 -1
- package/Microsoft.ReactNative.Cxx/Microsoft.ReactNative.Cxx.vcxitems.filters +3 -0
- package/Microsoft.ReactNative.Cxx/NativeModules.h +16 -1
- package/Microsoft.ReactNative.Managed/ReactSettingsSnapshot.cs +2 -0
- package/Microsoft.ReactNative.Managed/packages.lock.json +5 -5
- package/PropertySheets/External/Microsoft.ReactNative.Cpp.ProjectReferences.props +3 -0
- package/PropertySheets/Generated/PackageVersion.g.props +4 -4
- package/PropertySheets/JSEngine.props +2 -3
- package/PropertySheets/Warnings.props +1 -1
- package/ReactCommon/ReactCommon.vcxproj +2 -4
- package/ReactCommon/ReactCommon.vcxproj.filters +3 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/bridging/CallbackWrapper.h +1 -1
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/bridging/LongLivedObject.cpp +60 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/bridging/LongLivedObject.h +60 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon/TurboModuleBinding.cpp +116 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon/TurboModuleBinding.h +63 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon/TurboModuleUtils.h +2 -2
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/view/TouchEventEmitter.cpp +237 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/view/TouchEventEmitter.h +59 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/view/ViewEventEmitter.cpp +159 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/view/ViewEventEmitter.h +94 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/view/ViewProps.cpp +465 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/view/ViewProps.h +116 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/view/ViewShadowNode.cpp +98 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/view/YogaStylableProps.cpp +362 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/view/primitives.h +326 -0
- package/ReactCommon/Yoga.cpp +60 -127
- package/Scripts/OfficeReact.Win32.nuspec +1 -0
- package/Scripts/Tfs/Layout-MSRN-Headers.ps1 +1 -0
- package/Scripts/rnw-dependencies.ps1 +12 -4
- package/Shared/Composition/CompositionSwitcher.interop.h +1 -0
- package/Shared/DevServerHelper.h +11 -2
- package/Shared/DevSettings.h +1 -0
- package/Shared/DevSupportManager.cpp +11 -1
- package/Shared/DevSupportManager.h +1 -0
- package/Shared/HermesRuntimeHolder.cpp +53 -30
- package/Shared/HermesRuntimeHolder.h +26 -11
- package/Shared/HermesSamplingProfiler.cpp +61 -8
- package/Shared/HermesSamplingProfiler.h +6 -3
- package/Shared/HermesShim.cpp +86 -82
- package/Shared/HermesShim.h +28 -8
- package/Shared/JSI/ChakraRuntime.cpp +7 -4
- package/Shared/JSI/ChakraRuntime.h +4 -4
- package/Shared/JSI/NapiJsiV8RuntimeHolder.h +2 -0
- package/Shared/JSI/RuntimeHolder.h +2 -2
- package/Shared/Logging.cpp +1 -1
- package/Shared/Modules/BlobModule.cpp +3 -4
- package/Shared/Modules/BlobModule.h +0 -4
- package/Shared/Networking/OriginPolicyHttpFilter.cpp +13 -17
- package/Shared/Networking/OriginPolicyHttpFilter.h +11 -12
- package/Shared/Networking/WinRTWebSocketResource.cpp +59 -45
- package/Shared/OInstance.cpp +9 -2
- package/Shared/Shared.vcxitems +265 -58
- package/Shared/Shared.vcxitems.filters +312 -42
- package/Shared/V8JSIRuntimeHolder.cpp +1 -0
- package/Shared/V8JSIRuntimeHolder.h +7 -2
- package/codegen/NativeAppearanceSpec.g.h +9 -3
- package/codegen/NativeClipboardSpec.g.h +3 -3
- package/codegen/NativeDevToolsSettingsManagerSpec.g.h +51 -0
- package/codegen/NativeDialogManagerWindowsSpec.g.h +2 -0
- package/codegen/NativeFileReaderModuleSpec.g.h +6 -6
- package/codegen/NativeHeadlessJsTaskSupportSpec.g.h +3 -3
- package/codegen/NativeImageLoaderAndroidSpec.g.h +25 -9
- package/codegen/NativeImageLoaderIOSSpec.g.h +20 -12
- package/codegen/NativeIntentAndroidSpec.g.h +15 -15
- package/codegen/NativeLinkingManagerSpec.g.h +12 -12
- package/codegen/NativePerformanceObserverSpec.g.h +48 -10
- package/codegen/NativePerformanceSpec.g.h +63 -0
- package/codegen/NativePermissionsAndroidSpec.g.h +9 -9
- package/codegen/NativePlatformConstantsWinSpec.g.h +1 -1
- package/codegen/NativePushNotificationManagerIOSSpec.g.h +6 -6
- package/codegen/NativeSampleTurboModuleSpec.g.h +25 -19
- package/codegen/NativeShareModuleSpec.g.h +9 -3
- package/codegen/NativeUIManagerSpec.g.h +12 -12
- package/codegen/react/components/rnwcore/ComponentDescriptors.h +1 -2
- package/codegen/react/components/rnwcore/EventEmitters.cpp +21 -29
- package/codegen/react/components/rnwcore/EventEmitters.h +30 -30
- package/codegen/react/components/rnwcore/Props.cpp +47 -48
- package/codegen/react/components/rnwcore/Props.h +59 -166
- package/codegen/react/components/rnwcore/ShadowNodes.cpp +1 -2
- package/codegen/react/components/rnwcore/ShadowNodes.h +11 -22
- package/codegen/react/components/rnwcore/States.h +15 -30
- package/codegen/rnwcoreJSI-generated.cpp +87 -25
- package/codegen/rnwcoreJSI.h +1077 -417
- package/generate.js +6 -1
- package/include/Include.vcxitems +0 -1
- package/include/Include.vcxitems.filters +0 -3
- package/index.js +56 -42
- package/index.windows.js +56 -42
- package/interface.js +1 -1
- package/jest/local-setup.js +33 -0
- package/jest/mockComponent.js +4 -2
- package/jest/mockNativeComponent.js +1 -1
- package/jest/mockScrollView.js +2 -1
- package/jest/react-native-env.js +1 -3
- package/jest/setup.js +11 -8
- package/just-task.js +12 -5
- package/package.json +32 -29
- package/rn-get-polyfills.js +1 -1
- package/template/metro.config.js +2 -0
- package/Libraries/Animated/createAnimatedComponentInjection.js +0 -48
- package/Libraries/Animated/createAnimatedComponent_EXPERIMENTAL.js +0 -48
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.flow.js +0 -208
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.flow.js +0 -58
- package/Libraries/Components/DatePicker/DatePickerIOS.android.js +0 -47
- package/Libraries/Components/DatePicker/DatePickerIOS.d.ts +0 -92
- package/Libraries/Components/DatePicker/DatePickerIOS.flow.android.js +0 -14
- package/Libraries/Components/DatePicker/DatePickerIOS.flow.ios.js +0 -113
- package/Libraries/Components/DatePicker/DatePickerIOS.ios.js +0 -242
- package/Libraries/Components/DatePicker/DatePickerIOS.windows.js +0 -47
- package/Libraries/Components/DatePicker/RCTDatePickerNativeComponent.js +0 -60
- package/Libraries/Components/DatePickerAndroid/NativeDatePickerAndroid.js +0 -26
- package/Libraries/Components/Flyout/Flyout.js.map +0 -1
- package/Libraries/Components/Flyout/FlyoutProps.d.ts +0 -25
- package/Libraries/Components/Flyout/FlyoutProps.js +0 -3
- package/Libraries/Components/Flyout/FlyoutProps.js.map +0 -1
- package/Libraries/Components/Glyph/Glyph.js.map +0 -1
- package/Libraries/Components/Glyph/GlyphProps.d.ts +0 -16
- package/Libraries/Components/Glyph/GlyphProps.js +0 -8
- package/Libraries/Components/Glyph/GlyphProps.js.map +0 -1
- package/Libraries/Components/Popup/Popup.js.map +0 -1
- package/Libraries/Components/Popup/PopupProps.d.ts +0 -27
- package/Libraries/Components/Popup/PopupProps.js +0 -8
- package/Libraries/Components/Popup/PopupProps.js.map +0 -1
- package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.android.js +0 -45
- package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.d.ts +0 -62
- package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js +0 -75
- package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.windows.js +0 -45
- package/Libraries/Components/ProgressViewIOS/RCTProgressViewNativeComponent.js +0 -33
- package/Libraries/Components/SafeAreaView/SafeAreaView.flow.js +0 -19
- package/Libraries/Components/Slider/Slider.d.ts +0 -132
- package/Libraries/Components/Slider/Slider.js +0 -282
- package/Libraries/Components/Slider/SliderNativeComponent.js +0 -56
- package/Libraries/Interaction/Batchinator.js +0 -76
- package/Libraries/Interaction/BridgeSpyStallHandler.js +0 -63
- package/Libraries/Interaction/InteractionStallDebugger.js +0 -23
- package/Libraries/Interaction/PanResponder.flow.js +0 -257
- package/Libraries/Lists/CellRenderMask.js +0 -155
- package/Libraries/Lists/ChildListCollection.js +0 -72
- package/Libraries/Lists/StateSafePureComponent.js +0 -85
- package/Libraries/Lists/VirtualizedList.d.ts +0 -347
- package/Libraries/Lists/VirtualizedListCellRenderer.js +0 -259
- package/Libraries/Lists/VirtualizedListProps.js +0 -279
- package/Libraries/Performance/PureComponentDebug.js +0 -74
- package/Libraries/Reliability/UserFlow.js +0 -158
- package/Libraries/Renderer/implementations/ReactNativeRenderer.d.ts +0 -149
- package/Libraries/Renderer/shims/ReactNativeTypes.d.ts +0 -141
- package/Libraries/Utilities/MatrixMath.js +0 -748
- package/Libraries/Utilities/buildStyleInterpolator.js +0 -209
- package/Libraries/Utilities/clamp.js +0 -23
- package/Libraries/Utilities/deprecatedPropType.js +0 -36
- package/Libraries/Utilities/groupByEveryN.js +0 -51
- package/Libraries/Utilities/mergeIntoFast.js +0 -26
- package/Libraries/Utilities/setAndForwardRef.js +0 -71
- package/Libraries/Utilities/truncate.js +0 -51
- package/Microsoft.ReactNative/Fabric/platform/react/components/image/conversions.h +0 -5
- package/Microsoft.ReactNative/Fabric/platform/react/components/view/ConcreteViewShadowNode.h +0 -5
- package/Microsoft.ReactNative/Fabric/platform/react/components/view/ViewEventEmitter.h +0 -5
- package/Microsoft.ReactNative/Fabric/platform/react/components/view/ViewProps.h +0 -5
- package/Microsoft.ReactNative/Fabric/platform/react/core/ConcreteComponentDescriptor.h +0 -5
- package/Microsoft.ReactNative/Fabric/platform/react/core/PropsParserContext.h +0 -5
- package/Microsoft.ReactNative/Fabric/platform/react/core/propsConversions.h +0 -5
- package/Microsoft.ReactNative/Fabric/platform/react/graphics/Color.h +0 -5
- package/Microsoft.ReactNative/Fabric/platform/react/imagemanager/primitives.h +0 -5
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/iostextinput/TextInputEventEmitter.h +0 -5
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/iostextinput/TextInputProps.h +0 -5
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/iostextinput/TextInputShadowNode.h +0 -5
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/iostextinput/TextInputState.h +0 -5
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/iostextinput/conversions.h +0 -5
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/iostextinput/primitives.h +0 -5
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/iostextinput/propsConversions.h +0 -5
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/rncore/EventEmitters.h +0 -5
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/rncore/Props.h +0 -5
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/rncore/States.h +0 -5
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/graphics/Float.h +0 -5
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/graphics/platform/cxx/react/renderer/graphics/Color.h +0 -135
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/core/ConcreteComponentDescriptor.h +0 -217
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/graphics/RectangleEdges.h +0 -100
- package/Shared/AsyncStorage/AsyncStorageManager.cpp +0 -149
- package/Shared/AsyncStorage/AsyncStorageManager.h +0 -71
- package/Shared/AsyncStorage/FollyDynamicConverter.cpp +0 -51
- package/Shared/AsyncStorage/FollyDynamicConverter.h +0 -24
- package/Shared/AsyncStorage/KeyValueStorage.cpp +0 -248
- package/Shared/AsyncStorage/KeyValueStorage.h +0 -50
- package/Shared/AsyncStorage/StorageFileIO.cpp +0 -160
- package/Shared/AsyncStorage/StorageFileIO.h +0 -40
- package/Shared/AsyncStorageModule.h +0 -25
- package/Shared/Modules/AsyncStorageModule.cpp +0 -87
- package/Shared/Modules/AsyncStorageModuleWin32.cpp +0 -496
- package/Shared/Modules/AsyncStorageModuleWin32.h +0 -75
- package/codegen/NativeDatePickerAndroidSpec.g.h +0 -33
- package/codegen/NativeDevSplitBundleLoaderSpec.g.h +0 -33
- package/include/Shared/AsyncStorageModuleWin32Config.h +0 -15
- package/types/index.d.ts +0 -216
- package/types/modules/BatchedBridge.d.ts +0 -32
- package/types/modules/Codegen.d.ts +0 -74
- package/types/modules/Devtools.d.ts +0 -31
- package/types/modules/LaunchScreen.d.ts +0 -18
- package/types/modules/globals.d.ts +0 -577
- package/types/private/TimerMixin.d.ts +0 -19
- package/types/private/Utilities.d.ts +0 -10
- package/types/public/DeprecatedPropertiesAlias.d.ts +0 -205
- package/types/public/Insets.d.ts +0 -15
- package/types/public/ReactNativeRenderer.d.ts +0 -149
- package/types/public/ReactNativeTypes.d.ts +0 -143
|
@@ -7,8 +7,10 @@
|
|
|
7
7
|
#include <winrt/Windows.System.h>
|
|
8
8
|
#include <winrt/Windows.UI.Core.h>
|
|
9
9
|
#include "Utils/Helpers.h"
|
|
10
|
+
#include "Utils/KeyboardUtils.h"
|
|
10
11
|
#include "Utils/PropertyHandlerUtils.h"
|
|
11
12
|
#include "Views/KeyboardEventHandler.h"
|
|
13
|
+
#include "XamlHelper.h"
|
|
12
14
|
|
|
13
15
|
#ifdef USE_WINUI3
|
|
14
16
|
#include <winrt/Microsoft.UI.Input.h>
|
|
@@ -207,11 +209,11 @@ void HandledKeyboardEventHandler::KeyboardEventHandledHandler(
|
|
|
207
209
|
template <typename T>
|
|
208
210
|
void UpdateModifiedKeyStatusTo(T &event) {
|
|
209
211
|
auto const &coreWindow = winrt::CoreWindow::GetForCurrentThread();
|
|
210
|
-
event.altKey =
|
|
211
|
-
event.shiftKey =
|
|
212
|
-
event.metaKey =
|
|
213
|
-
|
|
214
|
-
event.ctrlKey =
|
|
212
|
+
event.altKey = IsModifiedKeyPressed(coreWindow, winrt::Windows::System::VirtualKey::Menu);
|
|
213
|
+
event.shiftKey = IsModifiedKeyPressed(coreWindow, winrt::Windows::System::VirtualKey::Shift);
|
|
214
|
+
event.metaKey = IsModifiedKeyPressed(coreWindow, winrt::Windows::System::VirtualKey::LeftWindows) ||
|
|
215
|
+
IsModifiedKeyPressed(coreWindow, winrt::Windows::System::VirtualKey::RightWindows);
|
|
216
|
+
event.ctrlKey = IsModifiedKeyPressed(coreWindow, winrt::Windows::System::VirtualKey::Control);
|
|
215
217
|
event.capLocked = KeyboardHelper::IsModifiedKeyLocked(coreWindow, winrt::Windows::System::VirtualKey::CapitalLock);
|
|
216
218
|
};
|
|
217
219
|
|
|
@@ -226,8 +228,8 @@ void PreviewKeyboardEventHandlerOnRoot::DispatchEventToJs(
|
|
|
226
228
|
ReactKeyboardEvent event;
|
|
227
229
|
event.target = reactId.tag;
|
|
228
230
|
UpdateModifiedKeyStatusTo(event);
|
|
229
|
-
event.key =
|
|
230
|
-
event.code =
|
|
231
|
+
event.key = FromVirtualKey(args.Key(), event.shiftKey, event.capLocked);
|
|
232
|
+
event.code = CodeFromVirtualKey(args.OriginalKey());
|
|
231
233
|
|
|
232
234
|
m_context->DispatchEvent(event.target, std::move(eventName), ToEventData(event, timestamp));
|
|
233
235
|
}
|
|
@@ -240,408 +242,11 @@ HandledKeyboardEvent KeyboardHelper::CreateKeyboardEvent(
|
|
|
240
242
|
HandledKeyboardEvent event;
|
|
241
243
|
event.handledEventPhase = phase;
|
|
242
244
|
UpdateModifiedKeyStatusTo(event);
|
|
243
|
-
event.code =
|
|
245
|
+
event.code = CodeFromVirtualKey(args.OriginalKey());
|
|
244
246
|
|
|
245
247
|
return event;
|
|
246
248
|
}
|
|
247
249
|
|
|
248
|
-
// Should align to
|
|
249
|
-
// https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values
|
|
250
|
-
static const std::vector<std::pair<winrt::Windows::System::VirtualKey, std::string>> g_virtualKeyToKey{
|
|
251
|
-
// Modifier keys
|
|
252
|
-
{winrt::Windows::System::VirtualKey::LeftMenu, "Alt"},
|
|
253
|
-
{winrt::Windows::System::VirtualKey::RightMenu, "Alt"},
|
|
254
|
-
{winrt::Windows::System::VirtualKey::Menu, "Alt"},
|
|
255
|
-
{winrt::Windows::System::VirtualKey::CapitalLock, "CapsLock"},
|
|
256
|
-
{winrt::Windows::System::VirtualKey::LeftControl, "Control"},
|
|
257
|
-
{winrt::Windows::System::VirtualKey::RightControl, "Control"},
|
|
258
|
-
{winrt::Windows::System::VirtualKey::Control, "Control"},
|
|
259
|
-
{winrt::Windows::System::VirtualKey::LeftWindows, "Meta"},
|
|
260
|
-
{winrt::Windows::System::VirtualKey::RightWindows, "Meta"},
|
|
261
|
-
{winrt::Windows::System::VirtualKey::NumberKeyLock, "NumLock"},
|
|
262
|
-
{winrt::Windows::System::VirtualKey::Scroll, "ScrollLock"},
|
|
263
|
-
{winrt::Windows::System::VirtualKey::LeftShift, "Shift"},
|
|
264
|
-
{winrt::Windows::System::VirtualKey::RightShift, "Shift"},
|
|
265
|
-
{winrt::Windows::System::VirtualKey::Shift, "Shift"},
|
|
266
|
-
|
|
267
|
-
// Whitespace keys
|
|
268
|
-
{winrt::Windows::System::VirtualKey::Enter, "Enter"},
|
|
269
|
-
{winrt::Windows::System::VirtualKey::Tab, "Tab"},
|
|
270
|
-
{winrt::Windows::System::VirtualKey::Space, " "},
|
|
271
|
-
|
|
272
|
-
// Navigation keys
|
|
273
|
-
{winrt::Windows::System::VirtualKey::Down, "ArrowDown"},
|
|
274
|
-
{winrt::Windows::System::VirtualKey::Left, "ArrowLeft"},
|
|
275
|
-
{winrt::Windows::System::VirtualKey::Right, "ArrowRight"},
|
|
276
|
-
{winrt::Windows::System::VirtualKey::Up, "ArrowUp"},
|
|
277
|
-
{winrt::Windows::System::VirtualKey::End, "End"},
|
|
278
|
-
{winrt::Windows::System::VirtualKey::Home, "Home"},
|
|
279
|
-
{winrt::Windows::System::VirtualKey::PageDown, "PageDown"},
|
|
280
|
-
{winrt::Windows::System::VirtualKey::PageUp, "PageUp"},
|
|
281
|
-
|
|
282
|
-
// Editing keys
|
|
283
|
-
{winrt::Windows::System::VirtualKey::Back, "Backspace"},
|
|
284
|
-
{winrt::Windows::System::VirtualKey::Clear, "Clear"},
|
|
285
|
-
{winrt::Windows::System::VirtualKey::Delete, "Delete"},
|
|
286
|
-
{winrt::Windows::System::VirtualKey::Insert, "Insert"},
|
|
287
|
-
|
|
288
|
-
// UI keys
|
|
289
|
-
{winrt::Windows::System::VirtualKey::Accept, "Accept"},
|
|
290
|
-
{winrt::Windows::System::VirtualKey::Application, "ContextMenu"},
|
|
291
|
-
{winrt::Windows::System::VirtualKey::Escape, "Escape"},
|
|
292
|
-
{winrt::Windows::System::VirtualKey::Execute, "Execute"},
|
|
293
|
-
{winrt::Windows::System::VirtualKey::Help, "Help"},
|
|
294
|
-
{winrt::Windows::System::VirtualKey::Pause, "Pause"},
|
|
295
|
-
{winrt::Windows::System::VirtualKey::Select, "Select"},
|
|
296
|
-
|
|
297
|
-
// Device keys
|
|
298
|
-
{winrt::Windows::System::VirtualKey::Snapshot, "PrintScreen"},
|
|
299
|
-
{winrt::Windows::System::VirtualKey::Sleep, "Standby"},
|
|
300
|
-
|
|
301
|
-
// Common IME keys
|
|
302
|
-
{winrt::Windows::System::VirtualKey::Convert, "Convert"},
|
|
303
|
-
{winrt::Windows::System::VirtualKey::Final, "FinalMode"},
|
|
304
|
-
{winrt::Windows::System::VirtualKey::ModeChange, "ModeChange"},
|
|
305
|
-
{winrt::Windows::System::VirtualKey::NonConvert, "NonConvert"},
|
|
306
|
-
|
|
307
|
-
// Korean keyboards only
|
|
308
|
-
{winrt::Windows::System::VirtualKey::Hangul, "HangulMode"},
|
|
309
|
-
{winrt::Windows::System::VirtualKey::Hanja, "HanjaMode"},
|
|
310
|
-
{winrt::Windows::System::VirtualKey::Junja, "JunjaMode"},
|
|
311
|
-
|
|
312
|
-
// Japanese keyboards only
|
|
313
|
-
{winrt::Windows::System::VirtualKey::Kana, "KanaMode"},
|
|
314
|
-
{winrt::Windows::System::VirtualKey::Kanji, "KanjiMode"},
|
|
315
|
-
|
|
316
|
-
// Function keys
|
|
317
|
-
{winrt::Windows::System::VirtualKey::F1, "F1"},
|
|
318
|
-
{winrt::Windows::System::VirtualKey::F2, "F2"},
|
|
319
|
-
{winrt::Windows::System::VirtualKey::F3, "F3"},
|
|
320
|
-
{winrt::Windows::System::VirtualKey::F4, "F4"},
|
|
321
|
-
{winrt::Windows::System::VirtualKey::F5, "F5"},
|
|
322
|
-
{winrt::Windows::System::VirtualKey::F6, "F6"},
|
|
323
|
-
{winrt::Windows::System::VirtualKey::F7, "F7"},
|
|
324
|
-
{winrt::Windows::System::VirtualKey::F8, "F8"},
|
|
325
|
-
{winrt::Windows::System::VirtualKey::F9, "F9"},
|
|
326
|
-
{winrt::Windows::System::VirtualKey::F10, "F10"},
|
|
327
|
-
{winrt::Windows::System::VirtualKey::F11, "F11"},
|
|
328
|
-
{winrt::Windows::System::VirtualKey::F12, "F12"},
|
|
329
|
-
{winrt::Windows::System::VirtualKey::F13, "F13"},
|
|
330
|
-
{winrt::Windows::System::VirtualKey::F14, "F14"},
|
|
331
|
-
{winrt::Windows::System::VirtualKey::F15, "F15"},
|
|
332
|
-
{winrt::Windows::System::VirtualKey::F16, "F16"},
|
|
333
|
-
{winrt::Windows::System::VirtualKey::F17, "F17"},
|
|
334
|
-
{winrt::Windows::System::VirtualKey::F18, "F18"},
|
|
335
|
-
{winrt::Windows::System::VirtualKey::F19, "F19"},
|
|
336
|
-
{winrt::Windows::System::VirtualKey::F20, "F20"},
|
|
337
|
-
|
|
338
|
-
// Numeric keypad keys
|
|
339
|
-
{winrt::Windows::System::VirtualKey::Decimal, "Decimal"},
|
|
340
|
-
{winrt::Windows::System::VirtualKey::Multiply, "Multiply"},
|
|
341
|
-
{winrt::Windows::System::VirtualKey::Add, "Add"},
|
|
342
|
-
{winrt::Windows::System::VirtualKey::Divide, "Divide"},
|
|
343
|
-
{winrt::Windows::System::VirtualKey::Subtract, "Subtract"},
|
|
344
|
-
{winrt::Windows::System::VirtualKey::Separator, "Separator"},
|
|
345
|
-
|
|
346
|
-
{winrt::Windows::System::VirtualKey::NumberPad0, "0"},
|
|
347
|
-
{winrt::Windows::System::VirtualKey::NumberPad1, "1"},
|
|
348
|
-
{winrt::Windows::System::VirtualKey::NumberPad2, "2"},
|
|
349
|
-
{winrt::Windows::System::VirtualKey::NumberPad3, "3"},
|
|
350
|
-
{winrt::Windows::System::VirtualKey::NumberPad4, "4"},
|
|
351
|
-
{winrt::Windows::System::VirtualKey::NumberPad5, "5"},
|
|
352
|
-
{winrt::Windows::System::VirtualKey::NumberPad6, "6"},
|
|
353
|
-
{winrt::Windows::System::VirtualKey::NumberPad7, "7"},
|
|
354
|
-
{winrt::Windows::System::VirtualKey::NumberPad8, "8"},
|
|
355
|
-
{winrt::Windows::System::VirtualKey::NumberPad9, "9"},
|
|
356
|
-
//
|
|
357
|
-
};
|
|
358
|
-
|
|
359
|
-
// Convert enum to its underlying type
|
|
360
|
-
template <typename E>
|
|
361
|
-
constexpr auto to_underlying(E e) noexcept {
|
|
362
|
-
return static_cast<std::underlying_type_t<E>>(e);
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
// Align to https://www.w3.org/TR/uievents-code/
|
|
366
|
-
// VirtualKey mapping is from
|
|
367
|
-
// https://docs.microsoft.com/en-us/uwp/api/Windows.System.VirtualKey Other
|
|
368
|
-
// codes are from
|
|
369
|
-
// https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes All
|
|
370
|
-
// codes are listed except alpha and numbers. For the unsupported code, they are
|
|
371
|
-
// all commented and they key is 'to_underlying(winrt::Windows::System::None)' For
|
|
372
|
-
// example, IntlBackslash is not sent to user:
|
|
373
|
-
// //{to_underlying(winrt::Windows::System::None), "IntlBackslash"},
|
|
374
|
-
static const std::vector<std::pair<int, std::string>> g_virtualKeyToCode{
|
|
375
|
-
// writing system keys in the Alphanumeric section
|
|
376
|
-
{192, "Backquote"},
|
|
377
|
-
{220, "Backslash"},
|
|
378
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Back), "Backspace"},
|
|
379
|
-
{219, "BracketLeft"},
|
|
380
|
-
{221, "BracketRight"},
|
|
381
|
-
{188, "Comma"},
|
|
382
|
-
{187, "Equal"},
|
|
383
|
-
//{to_underlying(winrt::Windows::System::None), "IntlBackslash"},
|
|
384
|
-
//{to_underlying(winrt::Windows::System::None), "IntlRo"},
|
|
385
|
-
//{to_underlying(winrt::Windows::System::None), "IntlYen"},
|
|
386
|
-
{189, "Minus"},
|
|
387
|
-
{190, "Period"},
|
|
388
|
-
{222, "Quote"},
|
|
389
|
-
{186, "Semicolon"},
|
|
390
|
-
{191, "Slash"},
|
|
391
|
-
|
|
392
|
-
// Functional Keys
|
|
393
|
-
{to_underlying(winrt::Windows::System::VirtualKey::LeftMenu), "AltLeft"},
|
|
394
|
-
{to_underlying(winrt::Windows::System::VirtualKey::RightMenu), "AltRight"},
|
|
395
|
-
{to_underlying(winrt::Windows::System::VirtualKey::CapitalLock), "CapsLock"},
|
|
396
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Menu), "ContextMenu"},
|
|
397
|
-
{to_underlying(winrt::Windows::System::VirtualKey::LeftControl), "ControlLeft"},
|
|
398
|
-
{to_underlying(winrt::Windows::System::VirtualKey::RightControl), "ControlRight"},
|
|
399
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Enter), "Enter"},
|
|
400
|
-
{to_underlying(winrt::Windows::System::VirtualKey::LeftWindows), "MetaLeft"},
|
|
401
|
-
{to_underlying(winrt::Windows::System::VirtualKey::RightWindows), "MetaRight"},
|
|
402
|
-
{to_underlying(winrt::Windows::System::VirtualKey::LeftShift), "ShiftLeft"},
|
|
403
|
-
{to_underlying(winrt::Windows::System::VirtualKey::RightShift), "ShiftRight"},
|
|
404
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Space), "Space"},
|
|
405
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Tab), "Tab"},
|
|
406
|
-
|
|
407
|
-
// List of code values for functional keys found on Japanese and Korean
|
|
408
|
-
// keyboards.
|
|
409
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Convert), "Convert"},
|
|
410
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Kana), "KanaMode"},
|
|
411
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Hangul), "Lang1"},
|
|
412
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Hanja), "Lang2"},
|
|
413
|
-
//{to_underlying(winrt::Windows::System::None), "Lang3"},
|
|
414
|
-
//{to_underlying(winrt::Windows::System::None), "Lang4"},
|
|
415
|
-
//{to_underlying(winrt::Windows::System::None), "Lang5"},
|
|
416
|
-
{to_underlying(winrt::Windows::System::VirtualKey::NonConvert), "NonConvert"},
|
|
417
|
-
|
|
418
|
-
// Control Pad Section
|
|
419
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Delete), "Delete"},
|
|
420
|
-
{to_underlying(winrt::Windows::System::VirtualKey::End), "End"},
|
|
421
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Help), "Help"},
|
|
422
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Home), "Home"},
|
|
423
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Insert), "Insert"},
|
|
424
|
-
{to_underlying(winrt::Windows::System::VirtualKey::PageDown), "PageDown"},
|
|
425
|
-
{to_underlying(winrt::Windows::System::VirtualKey::PageUp), "PageUp"},
|
|
426
|
-
|
|
427
|
-
// Arrow Pad Section
|
|
428
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Down), "ArrowDown"},
|
|
429
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Left), "ArrowLeft"},
|
|
430
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Right), "ArrowRight"},
|
|
431
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Up), "ArrowUp"},
|
|
432
|
-
|
|
433
|
-
// Numpad Section
|
|
434
|
-
{to_underlying(winrt::Windows::System::VirtualKey::NumberKeyLock), "NumLock"},
|
|
435
|
-
{to_underlying(winrt::Windows::System::VirtualKey::NumberPad0), "Numpad0"},
|
|
436
|
-
{to_underlying(winrt::Windows::System::VirtualKey::NumberPad1), "Numpad1"},
|
|
437
|
-
{to_underlying(winrt::Windows::System::VirtualKey::NumberPad2), "Numpad2"},
|
|
438
|
-
{to_underlying(winrt::Windows::System::VirtualKey::NumberPad3), "Numpad3"},
|
|
439
|
-
{to_underlying(winrt::Windows::System::VirtualKey::NumberPad4), "Numpad4"},
|
|
440
|
-
{to_underlying(winrt::Windows::System::VirtualKey::NumberPad5), "Numpad5"},
|
|
441
|
-
{to_underlying(winrt::Windows::System::VirtualKey::NumberPad6), "Numpad6"},
|
|
442
|
-
{to_underlying(winrt::Windows::System::VirtualKey::NumberPad7), "Numpad7"},
|
|
443
|
-
{to_underlying(winrt::Windows::System::VirtualKey::NumberPad8), "Numpad8"},
|
|
444
|
-
{to_underlying(winrt::Windows::System::VirtualKey::NumberPad9), "Numpad9"},
|
|
445
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Add), "NumpadAdd"},
|
|
446
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "NumpadBackspace"},
|
|
447
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "NumpadClear"},
|
|
448
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "NumpadClearEntry"},
|
|
449
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "NumpadComma"},
|
|
450
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Decimal), "NumpadDecimal"},
|
|
451
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Divide), "NumpadDivide"},
|
|
452
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "NumpadEnter"},
|
|
453
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "NumpadEqual"},
|
|
454
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "NumpadHash"},
|
|
455
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "NumpadMemoryAdd"},
|
|
456
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "NumpadMemoryClear"},
|
|
457
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "NumpadMemoryRecall"},
|
|
458
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "NumpadMemoryStore"},
|
|
459
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "NumpadMemorySubtract"},
|
|
460
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Multiply), "NumpadMultiply"},
|
|
461
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "NumpadParenLeft"},
|
|
462
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "NumpadParenRight"},
|
|
463
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "NumpadStar"},
|
|
464
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Subtract), "NumpadSubtract"},
|
|
465
|
-
|
|
466
|
-
// Function Section
|
|
467
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Escape), "Escape"},
|
|
468
|
-
{to_underlying(winrt::Windows::System::VirtualKey::F1), "F1"},
|
|
469
|
-
{to_underlying(winrt::Windows::System::VirtualKey::F2), "F2"},
|
|
470
|
-
{to_underlying(winrt::Windows::System::VirtualKey::F3), "F3"},
|
|
471
|
-
{to_underlying(winrt::Windows::System::VirtualKey::F4), "F4"},
|
|
472
|
-
{to_underlying(winrt::Windows::System::VirtualKey::F5), "F5"},
|
|
473
|
-
{to_underlying(winrt::Windows::System::VirtualKey::F6), "F6"},
|
|
474
|
-
{to_underlying(winrt::Windows::System::VirtualKey::F7), "F7"},
|
|
475
|
-
{to_underlying(winrt::Windows::System::VirtualKey::F8), "F8"},
|
|
476
|
-
{to_underlying(winrt::Windows::System::VirtualKey::F9), "F9"},
|
|
477
|
-
{to_underlying(winrt::Windows::System::VirtualKey::F10), "F10"},
|
|
478
|
-
{to_underlying(winrt::Windows::System::VirtualKey::F11), "F11"},
|
|
479
|
-
{to_underlying(winrt::Windows::System::VirtualKey::F12), "F12"},
|
|
480
|
-
{to_underlying(winrt::Windows::System::VirtualKey::F13), "F13"},
|
|
481
|
-
{to_underlying(winrt::Windows::System::VirtualKey::F14), "F14"},
|
|
482
|
-
{to_underlying(winrt::Windows::System::VirtualKey::F15), "F15"},
|
|
483
|
-
{to_underlying(winrt::Windows::System::VirtualKey::F16), "F16"},
|
|
484
|
-
{to_underlying(winrt::Windows::System::VirtualKey::F17), "F17"},
|
|
485
|
-
{to_underlying(winrt::Windows::System::VirtualKey::F18), "F18"},
|
|
486
|
-
{to_underlying(winrt::Windows::System::VirtualKey::F19), "F19"},
|
|
487
|
-
{to_underlying(winrt::Windows::System::VirtualKey::F20), "F20"},
|
|
488
|
-
{to_underlying(winrt::Windows::System::VirtualKey::F21), "F21"},
|
|
489
|
-
{to_underlying(winrt::Windows::System::VirtualKey::F22), "F22"},
|
|
490
|
-
{to_underlying(winrt::Windows::System::VirtualKey::F23), "F23"},
|
|
491
|
-
{to_underlying(winrt::Windows::System::VirtualKey::F24), "F24"},
|
|
492
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "Fn"},
|
|
493
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "FnLock"},
|
|
494
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Print), "PrintScreen"},
|
|
495
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Scroll), "ScrollLock"},
|
|
496
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Pause), "Pause"},
|
|
497
|
-
|
|
498
|
-
//// Media Keys
|
|
499
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GoBack), "BrowserBack"},
|
|
500
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Favorites), "BrowserFavorites"},
|
|
501
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GoForward), "BrowserForward"},
|
|
502
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GoHome), "BrowserHome"},
|
|
503
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Refresh), "BrowserRefresh"},
|
|
504
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Search), "BrowserSearch"},
|
|
505
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Stop), "BrowserStop"},
|
|
506
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "Eject"},
|
|
507
|
-
{182, "LaunchApp1"},
|
|
508
|
-
{183, "LaunchApp2"},
|
|
509
|
-
{180, "LaunchMail"},
|
|
510
|
-
{179, "MediaPlayPause"},
|
|
511
|
-
{181, "MediaSelect"},
|
|
512
|
-
{178, "MediaStop"},
|
|
513
|
-
{176, "MediaTrackNext"},
|
|
514
|
-
{177, "MediaTrackPrevious"},
|
|
515
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "Power"},
|
|
516
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Sleep), "Sleep"},
|
|
517
|
-
{174, "AudioVolumeDown"},
|
|
518
|
-
{173, "AudioVolumeMute"},
|
|
519
|
-
{175, "AudioVolumeUp"},
|
|
520
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "WakeUp"},
|
|
521
|
-
|
|
522
|
-
////List of code values for legacy modifier keys.
|
|
523
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "Hyper"},
|
|
524
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "Super"},
|
|
525
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "Turbo"},
|
|
526
|
-
|
|
527
|
-
////List of code values for legacy process control keys.
|
|
528
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "Abort"},
|
|
529
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "Resume"},
|
|
530
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "Suspend"},
|
|
531
|
-
|
|
532
|
-
////List of code values for legacy editing keys.
|
|
533
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "Again"},
|
|
534
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "Copy"},
|
|
535
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "Cut"},
|
|
536
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "Find"},
|
|
537
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "Open"},
|
|
538
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "Paste"},
|
|
539
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "Props"},
|
|
540
|
-
{to_underlying(winrt::Windows::System::VirtualKey::Select), "Select"},
|
|
541
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "Undo"},
|
|
542
|
-
|
|
543
|
-
// The following keys may be found on non-standard international keyboards.
|
|
544
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "Hiragana"},
|
|
545
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "Katakana"},
|
|
546
|
-
//{to_underlying(winrt::Windows::System::VirtualKey::None), "Undo"},
|
|
547
|
-
|
|
548
|
-
// Xbox Gamepad
|
|
549
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GamepadA), "GamepadA"},
|
|
550
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GamepadB), "GamepadB"},
|
|
551
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GamepadX), "GamepadX"},
|
|
552
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GamepadY), "GamepadY"},
|
|
553
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GamepadRightShoulder), "GamepadRightShoulder"},
|
|
554
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GamepadLeftShoulder), "GamepadLeftShoulder"},
|
|
555
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GamepadLeftTrigger), "GamepadLeftTrigger"},
|
|
556
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GamepadRightTrigger), "GamepadRightTrigger"},
|
|
557
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GamepadDPadUp), "GamepadDPadUp"},
|
|
558
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GamepadDPadDown), "GamepadDPadDown"},
|
|
559
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GamepadDPadLeft), "GamepadDPadLeft"},
|
|
560
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GamepadDPadRight), "GamepadDPadRight"},
|
|
561
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GamepadMenu), "GamepadMenu"},
|
|
562
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GamepadView), "GamepadView"},
|
|
563
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GamepadLeftThumbstickButton), "GamepadLeftThumbstickButton"},
|
|
564
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GamepadRightThumbstickButton), "GamepadRightThumbstickButton"},
|
|
565
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GamepadLeftThumbstickUp), "GamepadLeftThumbstickUp"},
|
|
566
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GamepadLeftThumbstickDown), "GamepadLeftThumbstickDown"},
|
|
567
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GamepadLeftThumbstickRight), "GamepadLeftThumbstickRight"},
|
|
568
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GamepadLeftThumbstickLeft), "GamepadLeftThumbstickLeft"},
|
|
569
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GamepadRightThumbstickUp), "GamepadRightThumbstickUp"},
|
|
570
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GamepadRightThumbstickDown), "GamepadRightThumbstickDown"},
|
|
571
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GamepadRightThumbstickRight), "GamepadRightThumbstickRight"},
|
|
572
|
-
{to_underlying(winrt::Windows::System::VirtualKey::GamepadRightThumbstickLeft), "GamepadRightThumbstickLeft"}};
|
|
573
|
-
|
|
574
|
-
template <typename T>
|
|
575
|
-
static const std::string GetOrUnidentified(
|
|
576
|
-
winrt::Windows::System::VirtualKey virtualKey,
|
|
577
|
-
std::vector<std::pair<T, std::string>> const &vector) {
|
|
578
|
-
for (auto const &pair : vector) {
|
|
579
|
-
if (static_cast<int>(pair.first) == static_cast<int>(virtualKey))
|
|
580
|
-
return pair.second;
|
|
581
|
-
}
|
|
582
|
-
return "Unidentified";
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
std::string
|
|
586
|
-
KeyboardHelper::FromVirtualKey(winrt::Windows::System::VirtualKey virtualKey, bool /*shiftDown*/, bool /*capLocked*/) {
|
|
587
|
-
int key = static_cast<int>(virtualKey);
|
|
588
|
-
|
|
589
|
-
if (!isupper(key) && !isdigit(key)) {
|
|
590
|
-
return GetOrUnidentified(virtualKey, g_virtualKeyToKey);
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
// Customer never receives a-z
|
|
594
|
-
// https://docs.microsoft.com/en-us/uwp/api/windows.system.virtualkey
|
|
595
|
-
// Virtual Keys for 0-9 and A-Z, they're just aligned to their ASCII
|
|
596
|
-
// representation (in uppercase, for the alphabet VKs)
|
|
597
|
-
return std::string(1, static_cast<char>(key));
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
inline winrt::Windows::System::VirtualKey GetLeftOrRightModifiedKey(
|
|
601
|
-
winrt::CoreWindow const &coreWindow,
|
|
602
|
-
winrt::Windows::System::VirtualKey leftKey,
|
|
603
|
-
winrt::Windows::System::VirtualKey rightKey) {
|
|
604
|
-
return KeyboardHelper::IsModifiedKeyPressed(coreWindow, leftKey) ? leftKey : rightKey;
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
std::string KeyboardHelper::CodeFromVirtualKey(winrt::Windows::System::VirtualKey virtualKey) {
|
|
608
|
-
int key = static_cast<int>(virtualKey);
|
|
609
|
-
|
|
610
|
-
if (isdigit(key)) {
|
|
611
|
-
return "Digit" + std::string(1, static_cast<char>(key));
|
|
612
|
-
} else if (isupper(key)) {
|
|
613
|
-
return "Key" + std::string(1, static_cast<char>(key));
|
|
614
|
-
} else {
|
|
615
|
-
// Override the virtual key if it's modified key of Control, Shift or Menu
|
|
616
|
-
auto const &coreWindow = winrt::CoreWindow::GetForCurrentThread();
|
|
617
|
-
if (virtualKey == winrt::Windows::System::VirtualKey::Control) {
|
|
618
|
-
virtualKey = GetLeftOrRightModifiedKey(
|
|
619
|
-
coreWindow,
|
|
620
|
-
winrt::Windows::System::VirtualKey::LeftControl,
|
|
621
|
-
winrt::Windows::System::VirtualKey::RightControl);
|
|
622
|
-
} else if (virtualKey == winrt::Windows::System::VirtualKey::Shift) {
|
|
623
|
-
virtualKey = GetLeftOrRightModifiedKey(
|
|
624
|
-
coreWindow, winrt::Windows::System::VirtualKey::LeftShift, winrt::Windows::System::VirtualKey::RightShift);
|
|
625
|
-
} else if (virtualKey == winrt::Windows::System::VirtualKey::Menu) {
|
|
626
|
-
virtualKey = GetLeftOrRightModifiedKey(
|
|
627
|
-
coreWindow, winrt::Windows::System::VirtualKey::LeftMenu, winrt::Windows::System::VirtualKey::RightMenu);
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
return GetOrUnidentified(virtualKey, g_virtualKeyToCode);
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
bool KeyboardHelper::IsModifiedKeyPressed(
|
|
635
|
-
winrt::CoreWindow const &coreWindow,
|
|
636
|
-
winrt::Windows::System::VirtualKey virtualKey) {
|
|
637
|
-
#ifdef USE_WINUI3
|
|
638
|
-
auto const &keyState = winrt::Microsoft::UI::Input::InputKeyboardSource::GetKeyStateForCurrentThread(virtualKey);
|
|
639
|
-
#else
|
|
640
|
-
auto const &keyState = coreWindow.GetKeyState(virtualKey);
|
|
641
|
-
#endif // USE_WINUI3
|
|
642
|
-
return (keyState & winrt::CoreVirtualKeyStates::Down) == winrt::CoreVirtualKeyStates::Down;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
250
|
bool KeyboardHelper::IsModifiedKeyLocked(
|
|
646
251
|
winrt::CoreWindow const &coreWindow,
|
|
647
252
|
winrt::Windows::System::VirtualKey virtualKey) {
|
|
@@ -124,9 +124,6 @@ class HandledKeyboardEventHandler {
|
|
|
124
124
|
struct KeyboardHelper {
|
|
125
125
|
static std::vector<HandledKeyboardEvent> FromJS(winrt::Microsoft::ReactNative::JSValue const &obj);
|
|
126
126
|
static HandledKeyboardEvent CreateKeyboardEvent(HandledEventPhase phase, xaml::Input::KeyRoutedEventArgs const &args);
|
|
127
|
-
static std::string FromVirtualKey(winrt::Windows::System::VirtualKey key, bool shiftDown, bool capLocked);
|
|
128
|
-
static std::string CodeFromVirtualKey(winrt::Windows::System::VirtualKey key);
|
|
129
|
-
static bool IsModifiedKeyPressed(winrt::CoreWindow const &coreWindow, winrt::Windows::System::VirtualKey virtualKey);
|
|
130
127
|
static bool IsModifiedKeyLocked(winrt::CoreWindow const &coreWindow, winrt::Windows::System::VirtualKey virtualKey);
|
|
131
128
|
static bool ShouldMarkKeyboardHandled(
|
|
132
129
|
std::vector<HandledKeyboardEvent> const &handledEvents,
|
|
@@ -455,12 +455,12 @@ void ScrollViewManager::GetExportedCustomDirectEventTypeConstants(
|
|
|
455
455
|
const winrt::Microsoft::ReactNative::IJSValueWriter &writer) const {
|
|
456
456
|
Super::GetExportedCustomDirectEventTypeConstants(writer);
|
|
457
457
|
|
|
458
|
-
writer.WritePropertyName(L"
|
|
458
|
+
writer.WritePropertyName(L"topMomentumScrollBegin");
|
|
459
459
|
writer.WriteObjectBegin();
|
|
460
460
|
winrt::Microsoft::ReactNative::WriteProperty(writer, L"registrationName", L"onMomentumScrollBegin");
|
|
461
461
|
writer.WriteObjectEnd();
|
|
462
462
|
|
|
463
|
-
writer.WritePropertyName(L"
|
|
463
|
+
writer.WritePropertyName(L"topMomentumScrollEnd");
|
|
464
464
|
writer.WriteObjectBegin();
|
|
465
465
|
winrt::Microsoft::ReactNative::WriteProperty(writer, L"registrationName", L"onMomentumScrollEnd");
|
|
466
466
|
writer.WriteObjectEnd();
|
|
@@ -179,4 +179,11 @@ bool ShadowNodeBase::IsFocusable() {
|
|
|
179
179
|
return m_isFocusable;
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
+
void ShadowNodeBase::IsDisable(bool disable) {
|
|
183
|
+
m_isDisabled = disable;
|
|
184
|
+
}
|
|
185
|
+
bool ShadowNodeBase::IsDisable() {
|
|
186
|
+
return m_isDisabled;
|
|
187
|
+
}
|
|
188
|
+
|
|
182
189
|
} // namespace Microsoft::ReactNative
|
|
@@ -125,12 +125,15 @@ struct REACTWINDOWS_EXPORT ShadowNodeBase : public ShadowNode {
|
|
|
125
125
|
bool IsAccessible();
|
|
126
126
|
void IsFocusable(bool focusable);
|
|
127
127
|
bool IsFocusable();
|
|
128
|
+
void IsDisable(bool disable);
|
|
129
|
+
bool IsDisable();
|
|
128
130
|
|
|
129
131
|
protected:
|
|
130
132
|
XamlView m_view;
|
|
131
133
|
bool m_updating = false;
|
|
132
134
|
bool m_isFocusable = true;
|
|
133
135
|
bool m_isAccessible = true;
|
|
136
|
+
bool m_isDisabled = false;
|
|
134
137
|
comp::CompositionPropertySet m_transformPS{nullptr};
|
|
135
138
|
|
|
136
139
|
public:
|
|
@@ -239,8 +239,13 @@ bool TextHitTestUtils::HitTest(const xaml::Documents::Run &run, const winrt::Poi
|
|
|
239
239
|
// d. Skip step 5 if the last character is LTR
|
|
240
240
|
|
|
241
241
|
// Get the parent bounds
|
|
242
|
+
const auto parent = start.VisualParent();
|
|
243
|
+
if (!parent) {
|
|
244
|
+
return false;
|
|
245
|
+
}
|
|
246
|
+
|
|
242
247
|
const auto maxLeft = 0;
|
|
243
|
-
const auto maxRight = static_cast<float>(
|
|
248
|
+
const auto maxRight = static_cast<float>(parent.ActualWidth());
|
|
244
249
|
|
|
245
250
|
// Check if run is either the start or end of a line
|
|
246
251
|
const auto characterBeforeStart = GetBoundaryCharacter(start, startRect, -1);
|
|
@@ -312,7 +312,9 @@ void TextInputShadowNode::registerEvents() {
|
|
|
312
312
|
|
|
313
313
|
m_controlLoadedRevoker = control.Loaded(winrt::auto_revoke, [=](auto &&, auto &&) {
|
|
314
314
|
if (m_autoFocus) {
|
|
315
|
-
|
|
315
|
+
if (auto uiManager = GetNativeUIManager(GetViewManager()->GetReactContext()).lock()) {
|
|
316
|
+
uiManager->focus(m_tag);
|
|
317
|
+
}
|
|
316
318
|
}
|
|
317
319
|
|
|
318
320
|
auto contentElement = control.GetTemplateChild(L"ContentElement");
|
|
@@ -718,9 +720,42 @@ void TextInputShadowNode::SetText(const winrt::Microsoft::ReactNative::JSValue &
|
|
|
718
720
|
auto oldValue = textBox.Text();
|
|
719
721
|
auto newValue = asHstring(text);
|
|
720
722
|
if (oldValue != newValue) {
|
|
721
|
-
textBox.
|
|
723
|
+
if (!textBox.IsReadOnly()) {
|
|
724
|
+
uint32_t diffStartIndex = 0;
|
|
725
|
+
uint32_t diffEndIndex = 0;
|
|
726
|
+
// Replacing the entire string with the new value resets the text history.
|
|
727
|
+
// Generally speaking, this is undesirable. To mitigate this issue, we can
|
|
728
|
+
// replace text using the XAML TextBox::SelectedText property, which retains
|
|
729
|
+
// undo / redo history. To do so, we use a simple algorithm that finds a
|
|
730
|
+
// single diff in the values:
|
|
731
|
+
// 1. Find first character that mismatches iterating forwards
|
|
732
|
+
while (diffStartIndex < oldValue.size() && diffStartIndex < newValue.size() &&
|
|
733
|
+
oldValue[diffStartIndex] == newValue[diffStartIndex]) {
|
|
734
|
+
diffStartIndex++;
|
|
735
|
+
}
|
|
736
|
+
// 2. Find last character the mismatches beyond the first mismatch iterating backwards
|
|
737
|
+
while (diffEndIndex < oldValue.size() - diffStartIndex && diffEndIndex < newValue.size() - diffStartIndex &&
|
|
738
|
+
oldValue[oldValue.size() - diffEndIndex - 1] == newValue[newValue.size() - diffEndIndex - 1]) {
|
|
739
|
+
diffEndIndex++;
|
|
740
|
+
}
|
|
741
|
+
// 3. Select the range between the start and end index in the "old value"
|
|
742
|
+
textBox.SelectionStart(diffStartIndex);
|
|
743
|
+
textBox.SelectionLength(oldValue.size() - diffStartIndex - diffEndIndex);
|
|
744
|
+
// 4. Replace the selected text with the range between start and end index in the "new value"
|
|
745
|
+
// Copies the substring view into a new winrt::hstring due to occasional crash
|
|
746
|
+
winrt::hstring replacementValue{
|
|
747
|
+
std::wstring_view{newValue}.substr(diffStartIndex, newValue.size() - diffStartIndex - diffEndIndex)};
|
|
748
|
+
textBox.SelectedText(replacementValue);
|
|
749
|
+
} else {
|
|
750
|
+
textBox.Text(newValue);
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
// Update selection based on the following algorithm:
|
|
754
|
+
// 1. If the new value is the same length as the old value, retain the selection state (start and length)
|
|
755
|
+
// 2. Else set the selection start to the end of the string
|
|
722
756
|
if (oldValue.size() == newValue.size()) {
|
|
723
757
|
textBox.SelectionStart(oldCursor);
|
|
758
|
+
textBox.SelectionLength(oldSelectionLength);
|
|
724
759
|
} else {
|
|
725
760
|
textBox.SelectionStart(newValue.size());
|
|
726
761
|
}
|
|
@@ -791,6 +826,7 @@ void TextInputViewManager::GetNativeProps(const winrt::Microsoft::ReactNative::I
|
|
|
791
826
|
React::WriteProperty(writer, L"selectionColor", L"Color");
|
|
792
827
|
React::WriteProperty(writer, L"selectTextOnFocus", L"boolean");
|
|
793
828
|
React::WriteProperty(writer, L"spellCheck", L"boolean");
|
|
829
|
+
React::WriteProperty(writer, L"submitBehavior", L"string");
|
|
794
830
|
React::WriteProperty(writer, L"text", L"string");
|
|
795
831
|
React::WriteProperty(writer, L"mostRecentEventCount", L"int");
|
|
796
832
|
React::WriteProperty(writer, L"secureTextEntry", L"boolean");
|
|
@@ -83,6 +83,7 @@ class TextShadowNode final : public ShadowNodeBase {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
RecalculateTextHighlighters();
|
|
86
|
+
GetViewManager()->MarkDirty(m_tag);
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
void removeAllChildren() override {
|
|
@@ -92,6 +93,7 @@ class TextShadowNode final : public ShadowNodeBase {
|
|
|
92
93
|
Super::removeAllChildren();
|
|
93
94
|
}
|
|
94
95
|
RecalculateTextHighlighters();
|
|
96
|
+
GetViewManager()->MarkDirty(m_tag);
|
|
95
97
|
}
|
|
96
98
|
|
|
97
99
|
void RemoveChildAt(int64_t indexToRemove) override {
|
|
@@ -101,6 +103,7 @@ class TextShadowNode final : public ShadowNodeBase {
|
|
|
101
103
|
Super::RemoveChildAt(indexToRemove);
|
|
102
104
|
}
|
|
103
105
|
RecalculateTextHighlighters();
|
|
106
|
+
GetViewManager()->MarkDirty(m_tag);
|
|
104
107
|
}
|
|
105
108
|
|
|
106
109
|
void UpdateOptimizedText(bool clearOptimizedText = false) {
|