react-native-windows 0.74.0 → 0.74.2

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.
Files changed (37) hide show
  1. package/Libraries/Components/Touchable/TouchableBounce.js +1 -0
  2. package/Libraries/Components/Touchable/TouchableOpacity.js +1 -0
  3. package/Libraries/Components/Touchable/TouchableOpacity.windows.js +1 -0
  4. package/Libraries/Core/ReactNativeVersion.js +2 -2
  5. package/Microsoft.ReactNative/CompositionRootView.idl +4 -2
  6. package/Microsoft.ReactNative/Fabric/Composition/CompositionContextHelper.cpp +6 -0
  7. package/Microsoft.ReactNative/Fabric/Composition/CompositionContextHelper.h +2 -0
  8. package/Microsoft.ReactNative/Fabric/Composition/CompositionEventHandler.cpp +188 -141
  9. package/Microsoft.ReactNative/Fabric/Composition/CompositionEventHandler.h +1 -1
  10. package/Microsoft.ReactNative/Fabric/Composition/CompositionRootView.cpp +41 -34
  11. package/Microsoft.ReactNative/Fabric/Composition/CompositionRootView.h +5 -1
  12. package/Microsoft.ReactNative/Fabric/Composition/CompositionRootView_emptyimpl.cpp +7 -0
  13. package/Microsoft.ReactNative/Fabric/Composition/ImageComponentView.cpp +26 -13
  14. package/Microsoft.ReactNative/Fabric/Composition/ImageComponentView.h +3 -2
  15. package/Microsoft.ReactNative/Fabric/Composition/ImageResponseImage.h +17 -0
  16. package/Microsoft.ReactNative/Fabric/Composition/Theme.cpp +28 -10
  17. package/Microsoft.ReactNative/Fabric/Composition/Theme.h +4 -3
  18. package/Microsoft.ReactNative/Fabric/Composition/Theme_emptyimpl.cpp +2 -6
  19. package/Microsoft.ReactNative/Fabric/Composition/UriImageManager.cpp +82 -0
  20. package/Microsoft.ReactNative/Fabric/Composition/UriImageManager.h +39 -0
  21. package/Microsoft.ReactNative/Fabric/Composition/UriImageManager_emptyimpl.cpp +16 -0
  22. package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.cpp +3 -0
  23. package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.h +2 -0
  24. package/Microsoft.ReactNative/Fabric/ImageManager.cpp +3 -2
  25. package/Microsoft.ReactNative/Fabric/WindowsImageManager.cpp +102 -35
  26. package/Microsoft.ReactNative/Fabric/WindowsImageManager.h +6 -1
  27. package/Microsoft.ReactNative/Theme.idl +1 -2
  28. package/Microsoft.ReactNative/UriImageManager.idl +85 -0
  29. package/Microsoft.ReactNative.Cxx/AutoDraw.h +1 -0
  30. package/PropertySheets/Generated/PackageVersion.g.props +3 -3
  31. package/Shared/Shared.vcxitems +11 -0
  32. package/codegen/NativeReactNativeFeatureFlagsSpec.g.h +33 -21
  33. package/codegen/rnwcoreJSI-generated.cpp +18 -6
  34. package/codegen/rnwcoreJSI.h +27 -9
  35. package/package.json +14 -14
  36. package/src/private/featureflags/NativeReactNativeFeatureFlags.js +4 -2
  37. package/src/private/featureflags/ReactNativeFeatureFlags.js +16 -6
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<7c83d5613c3be517efe48378e6356e79>>
7
+ * @generated SignedSource<<b7ebc6e4360a4b7733335f283300a4bb>>
8
8
  * @flow strict-local
9
9
  */
10
10
 
@@ -41,10 +41,12 @@ export type ReactNativeFeatureFlagsJsOnlyOverrides = Partial<ReactNativeFeatureF
41
41
  export type ReactNativeFeatureFlags = {
42
42
  ...ReactNativeFeatureFlagsJsOnly,
43
43
  commonTestFlag: Getter<boolean>,
44
+ androidEnablePendingFabricTransactions: Getter<boolean>,
45
+ batchRenderingUpdatesInEventLoop: Getter<boolean>,
46
+ destroyFabricSurfacesInReactInstanceManager: Getter<boolean>,
44
47
  enableBackgroundExecutor: Getter<boolean>,
45
48
  useModernRuntimeScheduler: Getter<boolean>,
46
49
  enableMicrotasks: Getter<boolean>,
47
- batchRenderingUpdatesInEventLoop: Getter<boolean>,
48
50
  enableSpannableBuildingUnification: Getter<boolean>,
49
51
  enableCustomDrawOrderFabric: Getter<boolean>,
50
52
  enableFixForClippedSubviewsCrash: Getter<boolean>,
@@ -96,6 +98,18 @@ export const shouldUseRemoveClippedSubviewsAsDefaultOnIOS: Getter<boolean> = cre
96
98
  * Common flag for testing. Do NOT modify.
97
99
  */
98
100
  export const commonTestFlag: Getter<boolean> = createNativeFlagGetter('commonTestFlag', false);
101
+ /**
102
+ * To be used with batchRenderingUpdatesInEventLoop. When enbled, the Android mounting layer will concatenate pending transactions to ensure they're applied atomatically
103
+ */
104
+ export const androidEnablePendingFabricTransactions: Getter<boolean> = createNativeFlagGetter('androidEnablePendingFabricTransactions', false);
105
+ /**
106
+ * When enabled, the RuntimeScheduler processing the event loop will batch all rendering updates and dispatch them together at the end of each iteration of the loop.
107
+ */
108
+ export const batchRenderingUpdatesInEventLoop: Getter<boolean> = createNativeFlagGetter('batchRenderingUpdatesInEventLoop', false);
109
+ /**
110
+ * When enabled, ReactInstanceManager will clean up Fabric surfaces on destroy().
111
+ */
112
+ export const destroyFabricSurfacesInReactInstanceManager: Getter<boolean> = createNativeFlagGetter('destroyFabricSurfacesInReactInstanceManager', false);
99
113
  /**
100
114
  * Enables the use of a background executor to compute layout and commit updates on Fabric (this system is deprecated and should not be used).
101
115
  */
@@ -108,10 +122,6 @@ export const useModernRuntimeScheduler: Getter<boolean> = createNativeFlagGetter
108
122
  * Enables the use of microtasks in Hermes (scheduling) and RuntimeScheduler (execution).
109
123
  */
110
124
  export const enableMicrotasks: Getter<boolean> = createNativeFlagGetter('enableMicrotasks', false);
111
- /**
112
- * When enabled, the RuntimeScheduler processing the event loop will batch all rendering updates and dispatch them together at the end of each iteration of the loop.
113
- */
114
- export const batchRenderingUpdatesInEventLoop: Getter<boolean> = createNativeFlagGetter('batchRenderingUpdatesInEventLoop', false);
115
125
  /**
116
126
  * Uses new, deduplicated logic for constructing Android Spannables from text fragments
117
127
  */