react-native-windows 0.81.0-preview.1 → 0.81.0-preview.11
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 +3 -0
- package/Chakra/ChakraUtils.cpp +0 -2
- package/Directory.Build.props +5 -2
- package/Folly/Folly.vcxproj +6 -7
- package/Folly/cgmanifest.json +1 -1
- package/Libraries/Components/Switch/Switch.js +1 -1
- package/Libraries/Components/Switch/Switch.windows.js +1 -1
- package/Libraries/Components/TextInput/TextInput.js +6 -1
- package/Libraries/Components/TextInput/TextInput.windows.js +5 -0
- package/Libraries/Components/View/View.js +5 -1
- package/Libraries/Components/View/View.windows.js +6 -1
- package/Libraries/Core/ReactNativeVersion.js +2 -2
- package/Microsoft.ReactNative/CompositionSwitcher.idl +163 -162
- package/Microsoft.ReactNative/Fabric/Composition/CompositionContextHelper.cpp +104 -4
- package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.cpp +60 -33
- package/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.cpp +19 -0
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp +102 -18
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.h +1 -0
- package/Microsoft.ReactNative/Fabric/Composition/UriImageManager.cpp +5 -3
- package/Microsoft.ReactNative/Fabric/WindowsImageManager.cpp +14 -1
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/WindowsTextLayoutManager.cpp +21 -2
- package/Microsoft.ReactNative/ReactHost/ReactHost.cpp +39 -10
- package/PropertySheets/Generated/PackageVersion.g.props +2 -2
- package/PropertySheets/React.Cpp.props +1 -0
- package/Shared/MemoryMappedBuffer.cpp +0 -2
- package/codegen/NativeReactNativeFeatureFlagsSpec.g.h +39 -21
- package/codegen/rnwcoreJSI-generated.cpp +18 -0
- package/codegen/rnwcoreJSI.h +27 -0
- package/package.json +15 -15
- package/src/private/featureflags/ReactNativeFeatureFlags.js +16 -1
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +4 -1
- package/src/private/specs_DEPRECATED/components/SwitchNativeComponent.js +1 -0
- package/template/metro.config.js +2 -4
- package/templates/cpp-app/metro.config.js +2 -4
- package/templates/cpp-lib/example/metro.config.js +2 -3
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/css/CSSTokenizer.h +0 -232
|
@@ -77,8 +77,6 @@ MemoryMappedBuffer::MemoryMappedBuffer(const wchar_t *const filename, uint32_t o
|
|
|
77
77
|
throw facebook::jsi::JSINativeException(
|
|
78
78
|
"MapViewOfFile/MapViewOfFileFromApp failed with last error " + std::to_string(GetLastError()));
|
|
79
79
|
}
|
|
80
|
-
|
|
81
|
-
WerRegisterMemoryBlock(m_fileData.get(), m_fileSize);
|
|
82
80
|
}
|
|
83
81
|
|
|
84
82
|
size_t MemoryMappedBuffer::size() const {
|
|
@@ -65,17 +65,20 @@ struct ReactNativeFeatureFlagsSpec : winrt::Microsoft::ReactNative::TurboModuleS
|
|
|
65
65
|
SyncMethod<bool() noexcept>{45, L"fuseboxNetworkInspectionEnabled"},
|
|
66
66
|
SyncMethod<bool() noexcept>{46, L"hideOffscreenVirtualViewsOnIOS"},
|
|
67
67
|
SyncMethod<double() noexcept>{47, L"preparedTextCacheSize"},
|
|
68
|
-
SyncMethod<bool() noexcept>{48, L"
|
|
69
|
-
SyncMethod<bool() noexcept>{49, L"
|
|
70
|
-
SyncMethod<bool() noexcept>{50, L"
|
|
71
|
-
SyncMethod<bool() noexcept>{51, L"
|
|
72
|
-
SyncMethod<bool() noexcept>{52, L"
|
|
73
|
-
SyncMethod<bool() noexcept>{53, L"
|
|
74
|
-
SyncMethod<bool() noexcept>{54, L"
|
|
75
|
-
SyncMethod<bool() noexcept>{55, L"
|
|
76
|
-
SyncMethod<bool() noexcept>{56, L"
|
|
77
|
-
SyncMethod<bool() noexcept>{57, L"
|
|
78
|
-
SyncMethod<
|
|
68
|
+
SyncMethod<bool() noexcept>{48, L"preventShadowTreeCommitExhaustion"},
|
|
69
|
+
SyncMethod<bool() noexcept>{49, L"traceTurboModulePromiseRejectionsOnAndroid"},
|
|
70
|
+
SyncMethod<bool() noexcept>{50, L"updateRuntimeShadowNodeReferencesOnCommit"},
|
|
71
|
+
SyncMethod<bool() noexcept>{51, L"useAlwaysAvailableJSErrorHandling"},
|
|
72
|
+
SyncMethod<bool() noexcept>{52, L"useFabricInterop"},
|
|
73
|
+
SyncMethod<bool() noexcept>{53, L"useNativeEqualsInNativeReadableArrayAndroid"},
|
|
74
|
+
SyncMethod<bool() noexcept>{54, L"useNativeTransformHelperAndroid"},
|
|
75
|
+
SyncMethod<bool() noexcept>{55, L"useNativeViewConfigsInBridgelessMode"},
|
|
76
|
+
SyncMethod<bool() noexcept>{56, L"useOptimizedEventBatchingOnAndroid"},
|
|
77
|
+
SyncMethod<bool() noexcept>{57, L"useRawPropsJsiValue"},
|
|
78
|
+
SyncMethod<bool() noexcept>{58, L"useShadowNodeStateOnClone"},
|
|
79
|
+
SyncMethod<bool() noexcept>{59, L"useTurboModuleInterop"},
|
|
80
|
+
SyncMethod<bool() noexcept>{60, L"useTurboModules"},
|
|
81
|
+
SyncMethod<double() noexcept>{61, L"virtualViewPrerenderRatio"},
|
|
79
82
|
};
|
|
80
83
|
|
|
81
84
|
template <class TModule>
|
|
@@ -324,56 +327,71 @@ struct ReactNativeFeatureFlagsSpec : winrt::Microsoft::ReactNative::TurboModuleS
|
|
|
324
327
|
" REACT_SYNC_METHOD(preparedTextCacheSize) static double preparedTextCacheSize() noexcept { /* implementation */ }\n");
|
|
325
328
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
326
329
|
48,
|
|
330
|
+
"preventShadowTreeCommitExhaustion",
|
|
331
|
+
" REACT_SYNC_METHOD(preventShadowTreeCommitExhaustion) bool preventShadowTreeCommitExhaustion() noexcept { /* implementation */ }\n"
|
|
332
|
+
" REACT_SYNC_METHOD(preventShadowTreeCommitExhaustion) static bool preventShadowTreeCommitExhaustion() noexcept { /* implementation */ }\n");
|
|
333
|
+
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
334
|
+
49,
|
|
327
335
|
"traceTurboModulePromiseRejectionsOnAndroid",
|
|
328
336
|
" REACT_SYNC_METHOD(traceTurboModulePromiseRejectionsOnAndroid) bool traceTurboModulePromiseRejectionsOnAndroid() noexcept { /* implementation */ }\n"
|
|
329
337
|
" REACT_SYNC_METHOD(traceTurboModulePromiseRejectionsOnAndroid) static bool traceTurboModulePromiseRejectionsOnAndroid() noexcept { /* implementation */ }\n");
|
|
330
338
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
331
|
-
|
|
339
|
+
50,
|
|
332
340
|
"updateRuntimeShadowNodeReferencesOnCommit",
|
|
333
341
|
" REACT_SYNC_METHOD(updateRuntimeShadowNodeReferencesOnCommit) bool updateRuntimeShadowNodeReferencesOnCommit() noexcept { /* implementation */ }\n"
|
|
334
342
|
" REACT_SYNC_METHOD(updateRuntimeShadowNodeReferencesOnCommit) static bool updateRuntimeShadowNodeReferencesOnCommit() noexcept { /* implementation */ }\n");
|
|
335
343
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
336
|
-
|
|
344
|
+
51,
|
|
337
345
|
"useAlwaysAvailableJSErrorHandling",
|
|
338
346
|
" REACT_SYNC_METHOD(useAlwaysAvailableJSErrorHandling) bool useAlwaysAvailableJSErrorHandling() noexcept { /* implementation */ }\n"
|
|
339
347
|
" REACT_SYNC_METHOD(useAlwaysAvailableJSErrorHandling) static bool useAlwaysAvailableJSErrorHandling() noexcept { /* implementation */ }\n");
|
|
340
348
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
341
|
-
|
|
349
|
+
52,
|
|
342
350
|
"useFabricInterop",
|
|
343
351
|
" REACT_SYNC_METHOD(useFabricInterop) bool useFabricInterop() noexcept { /* implementation */ }\n"
|
|
344
352
|
" REACT_SYNC_METHOD(useFabricInterop) static bool useFabricInterop() noexcept { /* implementation */ }\n");
|
|
345
353
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
346
|
-
|
|
354
|
+
53,
|
|
355
|
+
"useNativeEqualsInNativeReadableArrayAndroid",
|
|
356
|
+
" REACT_SYNC_METHOD(useNativeEqualsInNativeReadableArrayAndroid) bool useNativeEqualsInNativeReadableArrayAndroid() noexcept { /* implementation */ }\n"
|
|
357
|
+
" REACT_SYNC_METHOD(useNativeEqualsInNativeReadableArrayAndroid) static bool useNativeEqualsInNativeReadableArrayAndroid() noexcept { /* implementation */ }\n");
|
|
358
|
+
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
359
|
+
54,
|
|
360
|
+
"useNativeTransformHelperAndroid",
|
|
361
|
+
" REACT_SYNC_METHOD(useNativeTransformHelperAndroid) bool useNativeTransformHelperAndroid() noexcept { /* implementation */ }\n"
|
|
362
|
+
" REACT_SYNC_METHOD(useNativeTransformHelperAndroid) static bool useNativeTransformHelperAndroid() noexcept { /* implementation */ }\n");
|
|
363
|
+
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
364
|
+
55,
|
|
347
365
|
"useNativeViewConfigsInBridgelessMode",
|
|
348
366
|
" REACT_SYNC_METHOD(useNativeViewConfigsInBridgelessMode) bool useNativeViewConfigsInBridgelessMode() noexcept { /* implementation */ }\n"
|
|
349
367
|
" REACT_SYNC_METHOD(useNativeViewConfigsInBridgelessMode) static bool useNativeViewConfigsInBridgelessMode() noexcept { /* implementation */ }\n");
|
|
350
368
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
351
|
-
|
|
369
|
+
56,
|
|
352
370
|
"useOptimizedEventBatchingOnAndroid",
|
|
353
371
|
" REACT_SYNC_METHOD(useOptimizedEventBatchingOnAndroid) bool useOptimizedEventBatchingOnAndroid() noexcept { /* implementation */ }\n"
|
|
354
372
|
" REACT_SYNC_METHOD(useOptimizedEventBatchingOnAndroid) static bool useOptimizedEventBatchingOnAndroid() noexcept { /* implementation */ }\n");
|
|
355
373
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
356
|
-
|
|
374
|
+
57,
|
|
357
375
|
"useRawPropsJsiValue",
|
|
358
376
|
" REACT_SYNC_METHOD(useRawPropsJsiValue) bool useRawPropsJsiValue() noexcept { /* implementation */ }\n"
|
|
359
377
|
" REACT_SYNC_METHOD(useRawPropsJsiValue) static bool useRawPropsJsiValue() noexcept { /* implementation */ }\n");
|
|
360
378
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
361
|
-
|
|
379
|
+
58,
|
|
362
380
|
"useShadowNodeStateOnClone",
|
|
363
381
|
" REACT_SYNC_METHOD(useShadowNodeStateOnClone) bool useShadowNodeStateOnClone() noexcept { /* implementation */ }\n"
|
|
364
382
|
" REACT_SYNC_METHOD(useShadowNodeStateOnClone) static bool useShadowNodeStateOnClone() noexcept { /* implementation */ }\n");
|
|
365
383
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
366
|
-
|
|
384
|
+
59,
|
|
367
385
|
"useTurboModuleInterop",
|
|
368
386
|
" REACT_SYNC_METHOD(useTurboModuleInterop) bool useTurboModuleInterop() noexcept { /* implementation */ }\n"
|
|
369
387
|
" REACT_SYNC_METHOD(useTurboModuleInterop) static bool useTurboModuleInterop() noexcept { /* implementation */ }\n");
|
|
370
388
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
371
|
-
|
|
389
|
+
60,
|
|
372
390
|
"useTurboModules",
|
|
373
391
|
" REACT_SYNC_METHOD(useTurboModules) bool useTurboModules() noexcept { /* implementation */ }\n"
|
|
374
392
|
" REACT_SYNC_METHOD(useTurboModules) static bool useTurboModules() noexcept { /* implementation */ }\n");
|
|
375
393
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
376
|
-
|
|
394
|
+
61,
|
|
377
395
|
"virtualViewPrerenderRatio",
|
|
378
396
|
" REACT_SYNC_METHOD(virtualViewPrerenderRatio) double virtualViewPrerenderRatio() noexcept { /* implementation */ }\n"
|
|
379
397
|
" REACT_SYNC_METHOD(virtualViewPrerenderRatio) static double virtualViewPrerenderRatio() noexcept { /* implementation */ }\n");
|
|
@@ -251,6 +251,11 @@ static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_prepare
|
|
|
251
251
|
rt
|
|
252
252
|
);
|
|
253
253
|
}
|
|
254
|
+
static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_preventShadowTreeCommitExhaustion(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
255
|
+
return static_cast<NativeReactNativeFeatureFlagsCxxSpecJSI *>(&turboModule)->preventShadowTreeCommitExhaustion(
|
|
256
|
+
rt
|
|
257
|
+
);
|
|
258
|
+
}
|
|
254
259
|
static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_traceTurboModulePromiseRejectionsOnAndroid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
255
260
|
return static_cast<NativeReactNativeFeatureFlagsCxxSpecJSI *>(&turboModule)->traceTurboModulePromiseRejectionsOnAndroid(
|
|
256
261
|
rt
|
|
@@ -271,6 +276,16 @@ static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useFabr
|
|
|
271
276
|
rt
|
|
272
277
|
);
|
|
273
278
|
}
|
|
279
|
+
static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useNativeEqualsInNativeReadableArrayAndroid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
280
|
+
return static_cast<NativeReactNativeFeatureFlagsCxxSpecJSI *>(&turboModule)->useNativeEqualsInNativeReadableArrayAndroid(
|
|
281
|
+
rt
|
|
282
|
+
);
|
|
283
|
+
}
|
|
284
|
+
static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useNativeTransformHelperAndroid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
285
|
+
return static_cast<NativeReactNativeFeatureFlagsCxxSpecJSI *>(&turboModule)->useNativeTransformHelperAndroid(
|
|
286
|
+
rt
|
|
287
|
+
);
|
|
288
|
+
}
|
|
274
289
|
static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useNativeViewConfigsInBridgelessMode(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
275
290
|
return static_cast<NativeReactNativeFeatureFlagsCxxSpecJSI *>(&turboModule)->useNativeViewConfigsInBridgelessMode(
|
|
276
291
|
rt
|
|
@@ -357,10 +372,13 @@ NativeReactNativeFeatureFlagsCxxSpecJSI::NativeReactNativeFeatureFlagsCxxSpecJSI
|
|
|
357
372
|
methodMap_["fuseboxNetworkInspectionEnabled"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_fuseboxNetworkInspectionEnabled};
|
|
358
373
|
methodMap_["hideOffscreenVirtualViewsOnIOS"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_hideOffscreenVirtualViewsOnIOS};
|
|
359
374
|
methodMap_["preparedTextCacheSize"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_preparedTextCacheSize};
|
|
375
|
+
methodMap_["preventShadowTreeCommitExhaustion"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_preventShadowTreeCommitExhaustion};
|
|
360
376
|
methodMap_["traceTurboModulePromiseRejectionsOnAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_traceTurboModulePromiseRejectionsOnAndroid};
|
|
361
377
|
methodMap_["updateRuntimeShadowNodeReferencesOnCommit"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_updateRuntimeShadowNodeReferencesOnCommit};
|
|
362
378
|
methodMap_["useAlwaysAvailableJSErrorHandling"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useAlwaysAvailableJSErrorHandling};
|
|
363
379
|
methodMap_["useFabricInterop"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useFabricInterop};
|
|
380
|
+
methodMap_["useNativeEqualsInNativeReadableArrayAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useNativeEqualsInNativeReadableArrayAndroid};
|
|
381
|
+
methodMap_["useNativeTransformHelperAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useNativeTransformHelperAndroid};
|
|
364
382
|
methodMap_["useNativeViewConfigsInBridgelessMode"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useNativeViewConfigsInBridgelessMode};
|
|
365
383
|
methodMap_["useOptimizedEventBatchingOnAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useOptimizedEventBatchingOnAndroid};
|
|
366
384
|
methodMap_["useRawPropsJsiValue"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useRawPropsJsiValue};
|
package/codegen/rnwcoreJSI.h
CHANGED
|
@@ -68,10 +68,13 @@ public:
|
|
|
68
68
|
virtual bool fuseboxNetworkInspectionEnabled(jsi::Runtime &rt) = 0;
|
|
69
69
|
virtual bool hideOffscreenVirtualViewsOnIOS(jsi::Runtime &rt) = 0;
|
|
70
70
|
virtual double preparedTextCacheSize(jsi::Runtime &rt) = 0;
|
|
71
|
+
virtual bool preventShadowTreeCommitExhaustion(jsi::Runtime &rt) = 0;
|
|
71
72
|
virtual bool traceTurboModulePromiseRejectionsOnAndroid(jsi::Runtime &rt) = 0;
|
|
72
73
|
virtual bool updateRuntimeShadowNodeReferencesOnCommit(jsi::Runtime &rt) = 0;
|
|
73
74
|
virtual bool useAlwaysAvailableJSErrorHandling(jsi::Runtime &rt) = 0;
|
|
74
75
|
virtual bool useFabricInterop(jsi::Runtime &rt) = 0;
|
|
76
|
+
virtual bool useNativeEqualsInNativeReadableArrayAndroid(jsi::Runtime &rt) = 0;
|
|
77
|
+
virtual bool useNativeTransformHelperAndroid(jsi::Runtime &rt) = 0;
|
|
75
78
|
virtual bool useNativeViewConfigsInBridgelessMode(jsi::Runtime &rt) = 0;
|
|
76
79
|
virtual bool useOptimizedEventBatchingOnAndroid(jsi::Runtime &rt) = 0;
|
|
77
80
|
virtual bool useRawPropsJsiValue(jsi::Runtime &rt) = 0;
|
|
@@ -493,6 +496,14 @@ private:
|
|
|
493
496
|
return bridging::callFromJs<double>(
|
|
494
497
|
rt, &T::preparedTextCacheSize, jsInvoker_, instance_);
|
|
495
498
|
}
|
|
499
|
+
bool preventShadowTreeCommitExhaustion(jsi::Runtime &rt) override {
|
|
500
|
+
static_assert(
|
|
501
|
+
bridging::getParameterCount(&T::preventShadowTreeCommitExhaustion) == 1,
|
|
502
|
+
"Expected preventShadowTreeCommitExhaustion(...) to have 1 parameters");
|
|
503
|
+
|
|
504
|
+
return bridging::callFromJs<bool>(
|
|
505
|
+
rt, &T::preventShadowTreeCommitExhaustion, jsInvoker_, instance_);
|
|
506
|
+
}
|
|
496
507
|
bool traceTurboModulePromiseRejectionsOnAndroid(jsi::Runtime &rt) override {
|
|
497
508
|
static_assert(
|
|
498
509
|
bridging::getParameterCount(&T::traceTurboModulePromiseRejectionsOnAndroid) == 1,
|
|
@@ -525,6 +536,22 @@ private:
|
|
|
525
536
|
return bridging::callFromJs<bool>(
|
|
526
537
|
rt, &T::useFabricInterop, jsInvoker_, instance_);
|
|
527
538
|
}
|
|
539
|
+
bool useNativeEqualsInNativeReadableArrayAndroid(jsi::Runtime &rt) override {
|
|
540
|
+
static_assert(
|
|
541
|
+
bridging::getParameterCount(&T::useNativeEqualsInNativeReadableArrayAndroid) == 1,
|
|
542
|
+
"Expected useNativeEqualsInNativeReadableArrayAndroid(...) to have 1 parameters");
|
|
543
|
+
|
|
544
|
+
return bridging::callFromJs<bool>(
|
|
545
|
+
rt, &T::useNativeEqualsInNativeReadableArrayAndroid, jsInvoker_, instance_);
|
|
546
|
+
}
|
|
547
|
+
bool useNativeTransformHelperAndroid(jsi::Runtime &rt) override {
|
|
548
|
+
static_assert(
|
|
549
|
+
bridging::getParameterCount(&T::useNativeTransformHelperAndroid) == 1,
|
|
550
|
+
"Expected useNativeTransformHelperAndroid(...) to have 1 parameters");
|
|
551
|
+
|
|
552
|
+
return bridging::callFromJs<bool>(
|
|
553
|
+
rt, &T::useNativeTransformHelperAndroid, jsInvoker_, instance_);
|
|
554
|
+
}
|
|
528
555
|
bool useNativeViewConfigsInBridgelessMode(jsi::Runtime &rt) override {
|
|
529
556
|
static_assert(
|
|
530
557
|
bridging::getParameterCount(&T::useNativeViewConfigsInBridgelessMode) == 1,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-windows",
|
|
3
|
-
"version": "0.81.0-preview.
|
|
3
|
+
"version": "0.81.0-preview.11",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
"@react-native-community/cli": "17.0.0",
|
|
27
27
|
"@react-native-community/cli-platform-android": "17.0.0",
|
|
28
28
|
"@react-native-community/cli-platform-ios": "17.0.0",
|
|
29
|
-
"@react-native-windows/cli": "0.81.0-preview.
|
|
29
|
+
"@react-native-windows/cli": "0.81.0-preview.3",
|
|
30
30
|
"@react-native/assets": "1.0.0",
|
|
31
|
-
"@react-native/assets-registry": "0.81.
|
|
32
|
-
"@react-native/codegen": "0.81.
|
|
33
|
-
"@react-native/community-cli-plugin": "0.81.
|
|
34
|
-
"@react-native/gradle-plugin": "0.81.
|
|
35
|
-
"@react-native/js-polyfills": "0.81.
|
|
36
|
-
"@react-native/normalize-colors": "0.81.
|
|
37
|
-
"@react-native/virtualized-lists": "0.81.
|
|
38
|
-
"@react-native/new-app-screen": "0.81.
|
|
31
|
+
"@react-native/assets-registry": "0.81.5",
|
|
32
|
+
"@react-native/codegen": "0.81.5",
|
|
33
|
+
"@react-native/community-cli-plugin": "0.81.5",
|
|
34
|
+
"@react-native/gradle-plugin": "0.81.5",
|
|
35
|
+
"@react-native/js-polyfills": "0.81.5",
|
|
36
|
+
"@react-native/normalize-colors": "0.81.5",
|
|
37
|
+
"@react-native/virtualized-lists": "0.81.5",
|
|
38
|
+
"@react-native/new-app-screen": "0.81.5",
|
|
39
39
|
"abort-controller": "^3.0.0",
|
|
40
40
|
"anser": "^1.4.9",
|
|
41
41
|
"ansi-regex": "^5.0.0",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"yargs": "^17.6.2"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@react-native-windows/codegen": "0.81.0-preview.
|
|
72
|
-
"@react-native/metro-config": "0.81.
|
|
71
|
+
"@react-native-windows/codegen": "0.81.0-preview.3",
|
|
72
|
+
"@react-native/metro-config": "0.81.5",
|
|
73
73
|
"@rnw-scripts/babel-react-native-config": "0.0.0",
|
|
74
74
|
"@rnw-scripts/eslint-config": "1.2.37",
|
|
75
75
|
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.41",
|
|
@@ -84,15 +84,15 @@
|
|
|
84
84
|
"just-scripts": "^1.3.3",
|
|
85
85
|
"prettier": "2.8.8",
|
|
86
86
|
"react": "19.1.0",
|
|
87
|
-
"react-native": "0.81.
|
|
88
|
-
"react-native-platform-override": "
|
|
87
|
+
"react-native": "0.81.5",
|
|
88
|
+
"react-native-platform-override": "0.81.0-preview.10",
|
|
89
89
|
"react-refresh": "^0.14.0",
|
|
90
90
|
"typescript": "5.0.4"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
93
|
"@types/react": "^19.1.0",
|
|
94
94
|
"react": "^19.1.0",
|
|
95
|
-
"react-native": "0.81.
|
|
95
|
+
"react-native": "0.81.5"
|
|
96
96
|
},
|
|
97
97
|
"beachball": {
|
|
98
98
|
"defaultNpmTag": "preview",
|
|
@@ -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<<f17b8e4e33228e19b346837e7a33a2dd>>
|
|
8
8
|
* @flow strict
|
|
9
9
|
* @noformat
|
|
10
10
|
*/
|
|
@@ -98,10 +98,13 @@ export type ReactNativeFeatureFlags = $ReadOnly<{
|
|
|
98
98
|
fuseboxNetworkInspectionEnabled: Getter<boolean>,
|
|
99
99
|
hideOffscreenVirtualViewsOnIOS: Getter<boolean>,
|
|
100
100
|
preparedTextCacheSize: Getter<number>,
|
|
101
|
+
preventShadowTreeCommitExhaustion: Getter<boolean>,
|
|
101
102
|
traceTurboModulePromiseRejectionsOnAndroid: Getter<boolean>,
|
|
102
103
|
updateRuntimeShadowNodeReferencesOnCommit: Getter<boolean>,
|
|
103
104
|
useAlwaysAvailableJSErrorHandling: Getter<boolean>,
|
|
104
105
|
useFabricInterop: Getter<boolean>,
|
|
106
|
+
useNativeEqualsInNativeReadableArrayAndroid: Getter<boolean>,
|
|
107
|
+
useNativeTransformHelperAndroid: Getter<boolean>,
|
|
105
108
|
useNativeViewConfigsInBridgelessMode: Getter<boolean>,
|
|
106
109
|
useOptimizedEventBatchingOnAndroid: Getter<boolean>,
|
|
107
110
|
useRawPropsJsiValue: Getter<boolean>,
|
|
@@ -383,6 +386,10 @@ export const hideOffscreenVirtualViewsOnIOS: Getter<boolean> = createNativeFlagG
|
|
|
383
386
|
* Number cached PreparedLayouts in TextLayoutManager cache
|
|
384
387
|
*/
|
|
385
388
|
export const preparedTextCacheSize: Getter<number> = createNativeFlagGetter('preparedTextCacheSize', 200);
|
|
389
|
+
/**
|
|
390
|
+
* Enables a new mechanism in ShadowTree to prevent problems caused by multiple threads trying to commit concurrently. If a thread tries to commit a few times unsuccessfully, it will acquire a lock and try again.
|
|
391
|
+
*/
|
|
392
|
+
export const preventShadowTreeCommitExhaustion: Getter<boolean> = createNativeFlagGetter('preventShadowTreeCommitExhaustion', false);
|
|
386
393
|
/**
|
|
387
394
|
* Enables storing js caller stack when creating promise in native module. This is useful in case of Promise rejection and tracing the cause.
|
|
388
395
|
*/
|
|
@@ -399,6 +406,14 @@ export const useAlwaysAvailableJSErrorHandling: Getter<boolean> = createNativeFl
|
|
|
399
406
|
* Should this application enable the Fabric Interop Layer for Android? If yes, the application will behave so that it can accept non-Fabric components and render them on Fabric. This toggle is controlling extra logic such as custom event dispatching that are needed for the Fabric Interop Layer to work correctly.
|
|
400
407
|
*/
|
|
401
408
|
export const useFabricInterop: Getter<boolean> = createNativeFlagGetter('useFabricInterop', true);
|
|
409
|
+
/**
|
|
410
|
+
* Use a native implementation of equals in NativeReadableArray.
|
|
411
|
+
*/
|
|
412
|
+
export const useNativeEqualsInNativeReadableArrayAndroid: Getter<boolean> = createNativeFlagGetter('useNativeEqualsInNativeReadableArrayAndroid', false);
|
|
413
|
+
/**
|
|
414
|
+
* Use a native implementation of TransformHelper
|
|
415
|
+
*/
|
|
416
|
+
export const useNativeTransformHelperAndroid: Getter<boolean> = createNativeFlagGetter('useNativeTransformHelperAndroid', false);
|
|
402
417
|
/**
|
|
403
418
|
* When enabled, the native view configs are used in bridgeless mode.
|
|
404
419
|
*/
|
|
@@ -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<<8b4f1275a16d5b83f5594da1eb89c6c1>>
|
|
8
8
|
* @flow strict
|
|
9
9
|
* @noformat
|
|
10
10
|
*/
|
|
@@ -72,10 +72,13 @@ export interface Spec extends TurboModule {
|
|
|
72
72
|
+fuseboxNetworkInspectionEnabled?: () => boolean;
|
|
73
73
|
+hideOffscreenVirtualViewsOnIOS?: () => boolean;
|
|
74
74
|
+preparedTextCacheSize?: () => number;
|
|
75
|
+
+preventShadowTreeCommitExhaustion?: () => boolean;
|
|
75
76
|
+traceTurboModulePromiseRejectionsOnAndroid?: () => boolean;
|
|
76
77
|
+updateRuntimeShadowNodeReferencesOnCommit?: () => boolean;
|
|
77
78
|
+useAlwaysAvailableJSErrorHandling?: () => boolean;
|
|
78
79
|
+useFabricInterop?: () => boolean;
|
|
80
|
+
+useNativeEqualsInNativeReadableArrayAndroid?: () => boolean;
|
|
81
|
+
+useNativeTransformHelperAndroid?: () => boolean;
|
|
79
82
|
+useNativeViewConfigsInBridgelessMode?: () => boolean;
|
|
80
83
|
+useOptimizedEventBatchingOnAndroid?: () => boolean;
|
|
81
84
|
+useRawPropsJsiValue?: () => boolean;
|
|
@@ -58,4 +58,5 @@ export const Commands: NativeCommands = codegenNativeCommands<NativeCommands>({
|
|
|
58
58
|
export default (codegenNativeComponent<SwitchNativeProps>('Switch', {
|
|
59
59
|
paperComponentName: 'RCTSwitch',
|
|
60
60
|
excludedPlatforms: ['android'],
|
|
61
|
+
//#Windows interfaceOnly: true,
|
|
61
62
|
}): ComponentType);
|
package/template/metro.config.js
CHANGED
|
@@ -2,8 +2,6 @@ const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
|
|
|
2
2
|
|
|
3
3
|
const fs = require('fs');
|
|
4
4
|
const path = require('path');
|
|
5
|
-
const exclusionList = require('metro-config/src/defaults/exclusionList');
|
|
6
|
-
|
|
7
5
|
const rnwPath = fs.realpathSync(
|
|
8
6
|
path.resolve(require.resolve('react-native-windows/package.json'), '..'),
|
|
9
7
|
);
|
|
@@ -25,7 +23,7 @@ const config = {
|
|
|
25
23
|
watchFolders: [rnwPath, rnwRootNodeModules, rnwPackages],
|
|
26
24
|
// devMode]{{/devMode}}
|
|
27
25
|
resolver: {
|
|
28
|
-
blockList:
|
|
26
|
+
blockList: [
|
|
29
27
|
// This stops "npx @react-native-community/cli run-windows" from causing the metro server to crash if its already running
|
|
30
28
|
new RegExp(
|
|
31
29
|
`${path.resolve(__dirname, 'windows').replace(/[/\\]/g, '/')}.*`,
|
|
@@ -34,7 +32,7 @@ const config = {
|
|
|
34
32
|
new RegExp(`${rnwPath}/build/.*`),
|
|
35
33
|
new RegExp(`${rnwPath}/target/.*`),
|
|
36
34
|
/.*\.ProjectImports\.zip/,
|
|
37
|
-
]
|
|
35
|
+
],
|
|
38
36
|
//{{#devMode}} [devMode
|
|
39
37
|
extraNodeModules: {
|
|
40
38
|
'react-native-windows': rnwPath,
|
|
@@ -2,8 +2,6 @@ const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
|
|
|
2
2
|
|
|
3
3
|
const fs = require('fs');
|
|
4
4
|
const path = require('path');
|
|
5
|
-
const exclusionList = require('metro-config/src/defaults/exclusionList');
|
|
6
|
-
|
|
7
5
|
const rnwPath = fs.realpathSync(
|
|
8
6
|
path.resolve(require.resolve('react-native-windows/package.json'), '..'),
|
|
9
7
|
);
|
|
@@ -25,7 +23,7 @@ const config = {
|
|
|
25
23
|
watchFolders: [rnwPath, rnwRootNodeModules, rnwPackages],
|
|
26
24
|
// devMode]{{/devMode}}
|
|
27
25
|
resolver: {
|
|
28
|
-
blockList:
|
|
26
|
+
blockList: [
|
|
29
27
|
// This stops "npx @react-native-community/cli run-windows" from causing the metro server to crash if its already running
|
|
30
28
|
new RegExp(
|
|
31
29
|
`${path.resolve(__dirname, 'windows').replace(/[/\\]/g, '/')}.*`,
|
|
@@ -34,7 +32,7 @@ const config = {
|
|
|
34
32
|
new RegExp(`${rnwPath}/build/.*`),
|
|
35
33
|
new RegExp(`${rnwPath}/target/.*`),
|
|
36
34
|
/.*\.ProjectImports\.zip/,
|
|
37
|
-
]
|
|
35
|
+
],
|
|
38
36
|
//{{#devMode}} [devMode
|
|
39
37
|
extraNodeModules: {
|
|
40
38
|
'react-native-windows': rnwPath,
|
|
@@ -2,7 +2,6 @@ const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
|
|
|
2
2
|
const fs = require('fs');
|
|
3
3
|
const path = require('path');
|
|
4
4
|
const escape = require('escape-string-regexp');
|
|
5
|
-
const exclusionList = require('metro-config/src/defaults/exclusionList');
|
|
6
5
|
const pack = require('../package.json');
|
|
7
6
|
|
|
8
7
|
const root = path.resolve(__dirname, '..');
|
|
@@ -33,7 +32,7 @@ const config = {
|
|
|
33
32
|
// We need to make sure that only one version is loaded for peerDependencies
|
|
34
33
|
// So we block them at the root, and alias them to the versions in example's node_modules
|
|
35
34
|
resolver: {
|
|
36
|
-
blockList:
|
|
35
|
+
blockList:
|
|
37
36
|
modules.map(
|
|
38
37
|
(m) =>
|
|
39
38
|
new RegExp(`^${escape(path.join(root, 'node_modules', m))}\\/.*$`)
|
|
@@ -47,7 +46,7 @@ const config = {
|
|
|
47
46
|
new RegExp(`${rnwPath}/target/.*`),
|
|
48
47
|
/.*\.ProjectImports\.zip/,
|
|
49
48
|
])
|
|
50
|
-
|
|
49
|
+
,
|
|
51
50
|
|
|
52
51
|
extraNodeModules: modules.reduce((acc, name) => {
|
|
53
52
|
acc[name] = path.join(__dirname, 'node_modules', name);
|