react-native-windows 0.74.1 → 0.74.3
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/Libraries/Components/Touchable/TouchableBounce.js +1 -0
- package/Libraries/Components/Touchable/TouchableOpacity.js +1 -0
- package/Libraries/Components/Touchable/TouchableOpacity.windows.js +1 -0
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Microsoft.ReactNative/Fabric/Composition/CompositionContextHelper.cpp +6 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionContextHelper.h +2 -0
- package/Microsoft.ReactNative/Fabric/Composition/ImageComponentView.cpp +26 -13
- package/Microsoft.ReactNative/Fabric/Composition/ImageComponentView.h +3 -2
- package/Microsoft.ReactNative/Fabric/Composition/ImageResponseImage.h +17 -0
- package/Microsoft.ReactNative/Fabric/Composition/UriImageManager.cpp +230 -0
- package/Microsoft.ReactNative/Fabric/Composition/UriImageManager.h +36 -0
- package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.cpp +3 -0
- package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.h +2 -0
- package/Microsoft.ReactNative/Fabric/ImageManager.cpp +3 -2
- package/Microsoft.ReactNative/Fabric/WindowsImageManager.cpp +102 -35
- package/Microsoft.ReactNative/Fabric/WindowsImageManager.h +6 -1
- package/Microsoft.ReactNative/IReactPackageBuilderFabric.idl +5 -0
- package/Microsoft.ReactNative/ReactHost/React.h +7 -0
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp +7 -0
- package/Microsoft.ReactNative/ReactNativeHost.cpp +8 -0
- package/Microsoft.ReactNative/ReactPackageBuilder.cpp +8 -0
- package/Microsoft.ReactNative/ReactPackageBuilder.h +6 -0
- package/Microsoft.ReactNative/UriImageManager.idl +75 -0
- package/Microsoft.ReactNative.Cxx/AutoDraw.h +1 -0
- package/PropertySheets/Generated/PackageVersion.g.props +3 -3
- package/Shared/Shared.vcxitems +6 -0
- package/codegen/NativeReactNativeFeatureFlagsSpec.g.h +33 -21
- package/codegen/rnwcoreJSI-generated.cpp +18 -6
- package/codegen/rnwcoreJSI.h +27 -9
- package/package.json +13 -13
- package/src/private/featureflags/NativeReactNativeFeatureFlags.js +4 -2
- package/src/private/featureflags/ReactNativeFeatureFlags.js +16 -6
package/codegen/rnwcoreJSI.h
CHANGED
|
@@ -21,10 +21,12 @@ protected:
|
|
|
21
21
|
|
|
22
22
|
public:
|
|
23
23
|
virtual bool commonTestFlag(jsi::Runtime &rt) = 0;
|
|
24
|
+
virtual bool androidEnablePendingFabricTransactions(jsi::Runtime &rt) = 0;
|
|
25
|
+
virtual bool batchRenderingUpdatesInEventLoop(jsi::Runtime &rt) = 0;
|
|
26
|
+
virtual bool destroyFabricSurfacesInReactInstanceManager(jsi::Runtime &rt) = 0;
|
|
24
27
|
virtual bool enableBackgroundExecutor(jsi::Runtime &rt) = 0;
|
|
25
28
|
virtual bool useModernRuntimeScheduler(jsi::Runtime &rt) = 0;
|
|
26
29
|
virtual bool enableMicrotasks(jsi::Runtime &rt) = 0;
|
|
27
|
-
virtual bool batchRenderingUpdatesInEventLoop(jsi::Runtime &rt) = 0;
|
|
28
30
|
virtual bool enableSpannableBuildingUnification(jsi::Runtime &rt) = 0;
|
|
29
31
|
virtual bool enableCustomDrawOrderFabric(jsi::Runtime &rt) = 0;
|
|
30
32
|
virtual bool enableFixForClippedSubviewsCrash(jsi::Runtime &rt) = 0;
|
|
@@ -61,6 +63,30 @@ private:
|
|
|
61
63
|
return bridging::callFromJs<bool>(
|
|
62
64
|
rt, &T::commonTestFlag, jsInvoker_, instance_);
|
|
63
65
|
}
|
|
66
|
+
bool androidEnablePendingFabricTransactions(jsi::Runtime &rt) override {
|
|
67
|
+
static_assert(
|
|
68
|
+
bridging::getParameterCount(&T::androidEnablePendingFabricTransactions) == 1,
|
|
69
|
+
"Expected androidEnablePendingFabricTransactions(...) to have 1 parameters");
|
|
70
|
+
|
|
71
|
+
return bridging::callFromJs<bool>(
|
|
72
|
+
rt, &T::androidEnablePendingFabricTransactions, jsInvoker_, instance_);
|
|
73
|
+
}
|
|
74
|
+
bool batchRenderingUpdatesInEventLoop(jsi::Runtime &rt) override {
|
|
75
|
+
static_assert(
|
|
76
|
+
bridging::getParameterCount(&T::batchRenderingUpdatesInEventLoop) == 1,
|
|
77
|
+
"Expected batchRenderingUpdatesInEventLoop(...) to have 1 parameters");
|
|
78
|
+
|
|
79
|
+
return bridging::callFromJs<bool>(
|
|
80
|
+
rt, &T::batchRenderingUpdatesInEventLoop, jsInvoker_, instance_);
|
|
81
|
+
}
|
|
82
|
+
bool destroyFabricSurfacesInReactInstanceManager(jsi::Runtime &rt) override {
|
|
83
|
+
static_assert(
|
|
84
|
+
bridging::getParameterCount(&T::destroyFabricSurfacesInReactInstanceManager) == 1,
|
|
85
|
+
"Expected destroyFabricSurfacesInReactInstanceManager(...) to have 1 parameters");
|
|
86
|
+
|
|
87
|
+
return bridging::callFromJs<bool>(
|
|
88
|
+
rt, &T::destroyFabricSurfacesInReactInstanceManager, jsInvoker_, instance_);
|
|
89
|
+
}
|
|
64
90
|
bool enableBackgroundExecutor(jsi::Runtime &rt) override {
|
|
65
91
|
static_assert(
|
|
66
92
|
bridging::getParameterCount(&T::enableBackgroundExecutor) == 1,
|
|
@@ -85,14 +111,6 @@ private:
|
|
|
85
111
|
return bridging::callFromJs<bool>(
|
|
86
112
|
rt, &T::enableMicrotasks, jsInvoker_, instance_);
|
|
87
113
|
}
|
|
88
|
-
bool batchRenderingUpdatesInEventLoop(jsi::Runtime &rt) override {
|
|
89
|
-
static_assert(
|
|
90
|
-
bridging::getParameterCount(&T::batchRenderingUpdatesInEventLoop) == 1,
|
|
91
|
-
"Expected batchRenderingUpdatesInEventLoop(...) to have 1 parameters");
|
|
92
|
-
|
|
93
|
-
return bridging::callFromJs<bool>(
|
|
94
|
-
rt, &T::batchRenderingUpdatesInEventLoop, jsInvoker_, instance_);
|
|
95
|
-
}
|
|
96
114
|
bool enableSpannableBuildingUnification(jsi::Runtime &rt) override {
|
|
97
115
|
static_assert(
|
|
98
116
|
bridging::getParameterCount(&T::enableSpannableBuildingUnification) == 1,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-windows",
|
|
3
|
-
"version": "0.74.
|
|
3
|
+
"version": "0.74.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,18 +23,18 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@babel/runtime": "^7.0.0",
|
|
25
25
|
"@jest/create-cache-key-function": "^29.6.3",
|
|
26
|
-
"@react-native-community/cli": "13.6.
|
|
27
|
-
"@react-native-community/cli-platform-android": "13.6.
|
|
28
|
-
"@react-native-community/cli-platform-ios": "13.6.
|
|
26
|
+
"@react-native-community/cli": "13.6.6",
|
|
27
|
+
"@react-native-community/cli-platform-android": "13.6.6",
|
|
28
|
+
"@react-native-community/cli-platform-ios": "13.6.6",
|
|
29
29
|
"@react-native-windows/cli": "0.74.0",
|
|
30
30
|
"@react-native/assets": "1.0.0",
|
|
31
|
-
"@react-native/assets-registry": "0.74.
|
|
32
|
-
"@react-native/codegen": "0.74.
|
|
33
|
-
"@react-native/community-cli-plugin": "0.74.
|
|
34
|
-
"@react-native/gradle-plugin": "0.74.
|
|
35
|
-
"@react-native/js-polyfills": "0.74.
|
|
36
|
-
"@react-native/normalize-colors": "0.74.
|
|
37
|
-
"@react-native/virtualized-lists": "0.74.
|
|
31
|
+
"@react-native/assets-registry": "0.74.83",
|
|
32
|
+
"@react-native/codegen": "0.74.83",
|
|
33
|
+
"@react-native/community-cli-plugin": "0.74.83",
|
|
34
|
+
"@react-native/gradle-plugin": "0.74.83",
|
|
35
|
+
"@react-native/js-polyfills": "0.74.83",
|
|
36
|
+
"@react-native/normalize-colors": "0.74.83",
|
|
37
|
+
"@react-native/virtualized-lists": "0.74.83",
|
|
38
38
|
"abort-controller": "^3.0.0",
|
|
39
39
|
"anser": "^1.4.9",
|
|
40
40
|
"ansi-regex": "^5.0.0",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@react-native-windows/codegen": "0.74.0",
|
|
68
|
-
"@react-native/metro-config": "0.74.
|
|
68
|
+
"@react-native/metro-config": "0.74.83",
|
|
69
69
|
"@rnw-scripts/babel-react-native-config": "0.0.0",
|
|
70
70
|
"@rnw-scripts/eslint-config": "1.2.9",
|
|
71
71
|
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.13",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"just-scripts": "^1.3.3",
|
|
82
82
|
"prettier": "2.8.8",
|
|
83
83
|
"react": "18.2.0",
|
|
84
|
-
"react-native": "0.74.
|
|
84
|
+
"react-native": "0.74.1",
|
|
85
85
|
"react-native-platform-override": "^1.9.25",
|
|
86
86
|
"react-refresh": "^0.14.0",
|
|
87
87
|
"typescript": "5.0.4"
|
|
@@ -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<<
|
|
7
|
+
* @generated SignedSource<<8f82962343a5146622f36c2de071ff6a>>
|
|
8
8
|
* @flow strict-local
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -24,10 +24,12 @@ import * as TurboModuleRegistry from '../../../Libraries/TurboModule/TurboModule
|
|
|
24
24
|
|
|
25
25
|
export interface Spec extends TurboModule {
|
|
26
26
|
+commonTestFlag?: () => boolean;
|
|
27
|
+
+androidEnablePendingFabricTransactions?: () => boolean;
|
|
28
|
+
+batchRenderingUpdatesInEventLoop?: () => boolean;
|
|
29
|
+
+destroyFabricSurfacesInReactInstanceManager?: () => boolean;
|
|
27
30
|
+enableBackgroundExecutor?: () => boolean;
|
|
28
31
|
+useModernRuntimeScheduler?: () => boolean;
|
|
29
32
|
+enableMicrotasks?: () => boolean;
|
|
30
|
-
+batchRenderingUpdatesInEventLoop?: () => boolean;
|
|
31
33
|
+enableSpannableBuildingUnification?: () => boolean;
|
|
32
34
|
+enableCustomDrawOrderFabric?: () => boolean;
|
|
33
35
|
+enableFixForClippedSubviewsCrash?: () => boolean;
|
|
@@ -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<<
|
|
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
|
*/
|