react-native-windows 0.77.0-preview.4 → 0.78.0-preview.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.flowconfig +1 -1
- package/Chakra/ChakraTracing.cpp +1 -1
- package/Libraries/Animated/animations/Animation.js +22 -1
- package/Libraries/Animated/animations/DecayAnimation.js +1 -0
- package/Libraries/Animated/animations/SpringAnimation.js +1 -0
- package/Libraries/Animated/animations/TimingAnimation.js +1 -0
- package/Libraries/Animated/nodes/AnimatedAddition.js +9 -2
- package/Libraries/Animated/nodes/AnimatedColor.js +4 -1
- package/Libraries/Animated/nodes/AnimatedDiffClamp.js +10 -2
- package/Libraries/Animated/nodes/AnimatedDivision.js +9 -2
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +5 -1
- package/Libraries/Animated/nodes/AnimatedModulo.js +5 -2
- package/Libraries/Animated/nodes/AnimatedMultiplication.js +9 -2
- package/Libraries/Animated/nodes/AnimatedNode.js +25 -46
- package/Libraries/Animated/nodes/AnimatedObject.js +9 -2
- package/Libraries/Animated/nodes/AnimatedProps.js +5 -1
- package/Libraries/Animated/nodes/AnimatedStyle.js +5 -1
- package/Libraries/Animated/nodes/AnimatedSubtraction.js +9 -2
- package/Libraries/Animated/nodes/AnimatedTracking.js +5 -1
- package/Libraries/Animated/nodes/AnimatedTransform.js +5 -1
- package/Libraries/Animated/nodes/AnimatedValue.js +49 -4
- package/Libraries/Animated/nodes/AnimatedValueXY.js +3 -1
- package/Libraries/Animated/useAnimatedProps.js +0 -43
- package/Libraries/Components/Button.windows.js +3 -0
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +1 -1
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js +3 -1
- package/Libraries/Components/LayoutConformance/LayoutConformance.d.ts +21 -0
- package/Libraries/Components/LayoutConformance/LayoutConformance.js +59 -0
- package/Libraries/Components/LayoutConformance/LayoutConformanceNativeComponent.js +29 -0
- package/Libraries/Components/Pressable/Pressable.windows.js +3 -0
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +1 -0
- package/Libraries/Components/TextInput/TextInput.d.ts +5 -0
- package/Libraries/Components/TextInput/TextInput.flow.js +6 -0
- package/Libraries/Components/TextInput/TextInput.js +6 -0
- package/Libraries/Components/TextInput/TextInput.windows.js +9 -0
- package/Libraries/Components/Touchable/TouchableBounce.windows.js +2 -0
- package/Libraries/Components/Touchable/TouchableNativeFeedback.windows.js +2 -0
- package/Libraries/Components/Touchable/TouchableOpacity.windows.js +2 -0
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.windows.js +2 -0
- package/Libraries/Components/View/View.windows.js +3 -0
- package/Libraries/Components/View/ViewAccessibility.d.ts +7 -2
- package/Libraries/Components/View/ViewAccessibility.windows.js +1 -0
- package/Libraries/Components/View/ViewPropTypes.d.ts +0 -7
- package/Libraries/Components/View/ViewPropTypes.js +0 -9
- package/Libraries/Components/View/ViewPropTypes.windows.js +1 -9
- package/Libraries/Core/ReactNativeVersion.js +2 -2
- package/Libraries/Core/setUpBatchedBridge.js +1 -16
- package/Libraries/EventEmitter/RCTEventEmitter.js +2 -6
- package/Libraries/Image/AssetSourceResolver.js +11 -0
- package/Libraries/Image/AssetSourceResolver.windows.js +11 -0
- package/Libraries/Image/Image.windows.js +2 -0
- package/Libraries/Inspector/BorderBox.js +26 -14
- package/Libraries/Inspector/BoxInspector.js +60 -42
- package/Libraries/Inspector/ElementBox.js +55 -48
- package/Libraries/Inspector/StyleInspector.js +36 -30
- package/Libraries/LayoutAnimation/LayoutAnimation.js +2 -2
- package/Libraries/Lists/FlatList.d.ts +1 -1
- package/Libraries/Modal/Modal.js +2 -0
- package/Libraries/Modal/Modal.windows.js +2 -0
- package/Libraries/NativeComponent/BaseViewConfig.android.js +0 -2
- package/Libraries/NativeComponent/BaseViewConfig.ios.js +0 -2
- package/Libraries/NativeComponent/BaseViewConfig.windows.js +0 -2
- package/Libraries/Network/RCTNetworking.android.js +24 -16
- package/Libraries/Network/RCTNetworking.ios.js +1 -46
- package/Libraries/Network/RCTNetworking.windows.js +1 -46
- package/Libraries/Network/RCTNetworkingEventDefinitions.flow.js +57 -0
- package/Libraries/ReactNative/UIManagerProperties.js +3 -1
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +15828 -26461
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +3907 -2560
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +4399 -2878
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +16102 -26908
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +4034 -2695
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +4535 -3045
- package/Libraries/Renderer/shims/ReactNativeTypes.js +5 -6
- package/Libraries/StyleSheet/processTransform.js +6 -0
- package/Libraries/Text/Text.d.ts +6 -1
- package/Libraries/Text/Text.windows.js +4 -0
- package/Libraries/Text/TextProps.js +2 -2
- package/Libraries/Text/TextProps.windows.js +3 -2
- package/Libraries/Utilities/BackHandler.android.js +5 -4
- package/Libraries/Utilities/BackHandler.ios.js +4 -5
- package/Libraries/Utilities/BackHandler.windows.js +5 -4
- package/Microsoft.ReactNative/CompositionComponentView.idl +13 -1
- package/Microsoft.ReactNative/Fabric/ComponentView.cpp +0 -1
- package/Microsoft.ReactNative/Fabric/Composition/ComponentViewRegistry.cpp +0 -5
- package/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.cpp +92 -17
- package/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.h +9 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionEventHandler.cpp +13 -33
- package/Microsoft.ReactNative/Fabric/Composition/CompositionEventHandler.h +1 -3
- package/Microsoft.ReactNative/Fabric/Composition/CompositionRootAutomationProvider.cpp +43 -5
- package/Microsoft.ReactNative/Fabric/Composition/CompositionRootAutomationProvider.h +2 -1
- package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.cpp +12 -10
- package/Microsoft.ReactNative/Fabric/Composition/ContentIslandComponentView.cpp +11 -9
- package/Microsoft.ReactNative/Fabric/Composition/ContentIslandComponentView.h +1 -1
- package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.cpp +191 -329
- package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.h +3 -61
- package/Microsoft.ReactNative/Fabric/Composition/PortalComponentView.cpp +66 -0
- package/Microsoft.ReactNative/Fabric/Composition/PortalComponentView.h +52 -0
- package/Microsoft.ReactNative/Fabric/Composition/ReactCompositionViewComponentBuilder.cpp +21 -0
- package/Microsoft.ReactNative/Fabric/Composition/ReactCompositionViewComponentBuilder.h +7 -4
- package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.cpp +79 -19
- package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.h +12 -6
- package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.cpp +71 -17
- package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.h +16 -0
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentDescriptor.h +5 -10
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp +4 -4
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputShadowNode.cpp +138 -110
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputShadowNode.h +27 -27
- package/Microsoft.ReactNative/Fabric/Composition/Theme.cpp +1 -1
- package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.cpp +38 -33
- package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.h +0 -2
- package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.cpp +5 -16
- package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.h +0 -3
- package/Microsoft.ReactNative/Fabric/ImageManager.cpp +9 -0
- package/Microsoft.ReactNative/Fabric/WindowsComponentDescriptorRegistry.cpp +0 -2
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/graphics/PlatformColorUtils.cpp +1 -1
- package/Microsoft.ReactNative/IReactCompositionViewComponentBuilder.idl +5 -0
- package/Microsoft.ReactNative/IReactContext.cpp +2 -2
- package/Microsoft.ReactNative/IReactContext.h +1 -1
- package/Microsoft.ReactNative/IReactContext.idl +2 -2
- package/Microsoft.ReactNative/IReactPackageBuilder.idl +3 -3
- package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +97 -87
- package/Microsoft.ReactNative/Modules/AccessibilityInfoModule.cpp +4 -0
- package/Microsoft.ReactNative/Modules/AlertModule.cpp +9 -4
- package/Microsoft.ReactNative/Modules/Animated/NativeAnimatedNodeManager.cpp +1 -1
- package/Microsoft.ReactNative/Modules/Animated/PropsAnimatedNode.cpp +32 -35
- package/Microsoft.ReactNative/Modules/Animated/PropsAnimatedNode.h +7 -4
- package/Microsoft.ReactNative/Modules/AppStateModule.cpp +1 -1
- package/Microsoft.ReactNative/Modules/AppThemeModuleUwp.cpp +2 -2
- package/Microsoft.ReactNative/Modules/AppearanceModule.cpp +2 -2
- package/Microsoft.ReactNative/Modules/DeviceInfoModule.cpp +3 -3
- package/Microsoft.ReactNative/Modules/I18nManagerModule.cpp +1 -1
- package/Microsoft.ReactNative/Modules/LogBoxModule.cpp +7 -5
- package/Microsoft.ReactNative/Modules/LogBoxModule.h +2 -1
- package/Microsoft.ReactNative/Modules/NativeUIManager.cpp +10 -10
- package/Microsoft.ReactNative/Modules/PaperUIManagerModule.cpp +24 -24
- package/Microsoft.ReactNative/Modules/Timing.cpp +2 -2
- package/Microsoft.ReactNative/ReactHost/IReactInstance.h +5 -0
- package/Microsoft.ReactNative/ReactHost/React.h +0 -3
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp +39 -16
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.h +4 -2
- package/Microsoft.ReactNative/ReactNativeHost.cpp +9 -4
- package/Microsoft.ReactNative/ReactNativeIsland.idl +5 -1
- package/Microsoft.ReactNative/ReactPackageBuilder.cpp +3 -3
- package/Microsoft.ReactNative/ReactPackageBuilder.h +4 -4
- package/Microsoft.ReactNative/Utils/Helpers.cpp +0 -2
- package/Microsoft.ReactNative/Views/DevMenu.cpp +6 -6
- package/Microsoft.ReactNative/Views/DevMenu.h +1 -1
- package/Microsoft.ReactNative/Views/ViewManagerBase.cpp +2 -2
- package/Microsoft.ReactNative/Views/ViewPanel.cpp +1 -1
- package/Microsoft.ReactNative/Views/ViewViewManager.cpp +2 -2
- package/Microsoft.ReactNative/XamlUIService.cpp +13 -7
- package/Microsoft.ReactNative/XamlUIService.h +4 -1
- package/Microsoft.ReactNative/XamlUIService.idl +2 -0
- package/Microsoft.ReactNative.Cxx/JSI/JsiAbiApi.h +6 -2
- package/Microsoft.ReactNative.Cxx/ReactContext.h +1 -1
- package/Microsoft.ReactNative.Cxx/XamlUtils.h +12 -0
- package/PropertySheets/Generated/PackageVersion.g.props +3 -3
- package/PropertySheets/React.Cpp.props +3 -0
- package/PropertySheets/WebView2.props +1 -1
- package/PropertySheets/WinUI.props +5 -4
- package/ReactCommon/ReactCommon.vcxproj +5 -1
- package/ReactCommon/ReactCommon.vcxproj.filters +1 -1
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/JSExecutor.cpp +3 -3
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/NativeToJsBridge.cpp +3 -3
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jsi/jsi/test/testlib.cpp +91 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/componentregistry/ComponentDescriptorRegistry.cpp +1 -12
- package/{Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputState.h → ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/textinput/TextInputState.h} +37 -35
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/view/AccessibilityPrimitives.h +1 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/view/accessibilityPropsConversions.h +4 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/imagemanager/ImageRequestParams.h +30 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/runtimescheduler/SchedulerPriorityUtils.h +4 -3
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/uimanager/primitives.h +179 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/runtime/ReactInstance.cpp +43 -57
- package/Shared/HermesRuntimeHolder.cpp +2 -2
- package/Shared/Shared.vcxitems +8 -14
- package/Shared/Shared.vcxitems.filters +4 -16
- package/Shared/Threading/BatchingQueueThread.cpp +3 -3
- package/codegen/NativeCPUTimeSpec.g.h +41 -0
- package/codegen/NativeFantomSpec.g.h +78 -0
- package/codegen/NativePerformanceSpec.g.h +31 -43
- package/codegen/NativeReactNativeFeatureFlagsSpec.g.h +84 -84
- package/codegen/react/components/rnwcore/ActivityIndicatorView.g.h +212 -0
- package/codegen/react/components/rnwcore/AndroidDrawerLayout.g.h +295 -0
- package/codegen/react/components/rnwcore/AndroidHorizontalScrollContentView.g.h +200 -0
- package/codegen/react/components/rnwcore/AndroidProgressBar.g.h +224 -0
- package/codegen/react/components/rnwcore/AndroidSwipeRefreshLayout.g.h +250 -0
- package/codegen/react/components/rnwcore/AndroidSwitch.g.h +267 -0
- package/codegen/react/components/rnwcore/DebuggingOverlay.g.h +234 -0
- package/codegen/react/components/rnwcore/InputAccessory.g.h +200 -0
- package/codegen/react/components/rnwcore/ModalHostView.g.h +283 -0
- package/codegen/react/components/rnwcore/PullToRefreshView.g.h +246 -0
- package/codegen/react/components/rnwcore/SafeAreaView.g.h +197 -0
- package/codegen/react/components/rnwcore/Switch.g.h +263 -0
- package/codegen/react/components/rnwcore/UnimplementedNativeView.g.h +200 -0
- package/codegen/rnwcoreJSI-generated.cpp +90 -57
- package/codegen/rnwcoreJSI.h +241 -104
- package/index.js +5 -0
- package/index.windows.js +5 -0
- package/just-task.js +1 -1
- package/package.json +23 -24
- package/src/private/animated/NativeAnimatedValidation.js +1 -1
- package/src/private/featureflags/ReactNativeFeatureFlags.js +32 -26
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +5 -5
- package/src/private/renderer/errorhandling/ErrorHandlers.js +12 -55
- package/src/private/specs/modules/{NativeJSCSamplingProfiler.js → NativeCPUTime.js} +7 -2
- package/src/private/specs/modules/NativeFantom.js +37 -0
- package/src/private/utilities/ensureInstance.js +21 -0
- package/src/private/webapis/dom/nodes/ReactNativeElement.js +49 -6
- package/src/private/webapis/dom/nodes/ReadOnlyNode.js +17 -9
- package/src/private/webapis/intersectionobserver/IntersectionObserver.js +11 -11
- package/src/private/webapis/intersectionobserver/IntersectionObserverEntry.js +1 -1
- package/src/private/webapis/intersectionobserver/IntersectionObserverManager.js +1 -1
- package/src/private/webapis/intersectionobserver/specs/NativeIntersectionObserver.js +1 -0
- package/src/private/webapis/performance/Performance.js +0 -12
- package/src/private/webapis/performance/specs/NativePerformance.js +0 -11
- package/types/index.d.ts +1 -0
- package/Libraries/HeapCapture/HeapCapture.js +0 -29
- package/Libraries/HeapCapture/NativeJSCHeapCapture.js +0 -13
- package/Libraries/Performance/NativeJSCSamplingProfiler.js +0 -13
- package/Libraries/Performance/SamplingProfiler.js +0 -39
- package/Libraries/ReactNative/__mocks__/FabricUIManager.js +0 -334
- package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentDescriptor.h +0 -39
- package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewShadowNode.cpp +0 -18
- package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewShadowNode.h +0 -39
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputState.cpp +0 -34
- package/Microsoft.ReactNative/Fabric/ReactNativeConfigProperties.cpp +0 -53
- package/Microsoft.ReactNative/Fabric/ReactNativeConfigProperties.h +0 -26
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/core/LayoutableShadowNode.cpp +0 -363
- package/codegen/NativeJSCSamplingProfilerSpec.g.h +0 -35
- package/src/private/webapis/dom/nodes/specs/__mocks__/NativeDOMMock.js +0 -413
- package/src/private/webapis/intersectionobserver/specs/__mocks__/NativeIntersectionObserver.js +0 -181
- package/src/private/webapis/mutationobserver/specs/__mocks__/NativeMutationObserver.js +0 -327
package/codegen/rnwcoreJSI.h
CHANGED
|
@@ -25,8 +25,7 @@ public:
|
|
|
25
25
|
virtual bool completeReactInstanceCreationOnBgThreadOnAndroid(jsi::Runtime &rt) = 0;
|
|
26
26
|
virtual bool disableEventLoopOnBridgeless(jsi::Runtime &rt) = 0;
|
|
27
27
|
virtual bool disableMountItemReorderingAndroid(jsi::Runtime &rt) = 0;
|
|
28
|
-
virtual bool
|
|
29
|
-
virtual bool enableAndroidLineHeightCentering(jsi::Runtime &rt) = 0;
|
|
28
|
+
virtual bool enableAccumulatedUpdatesInRawPropsAndroid(jsi::Runtime &rt) = 0;
|
|
30
29
|
virtual bool enableBridgelessArchitecture(jsi::Runtime &rt) = 0;
|
|
31
30
|
virtual bool enableCppPropsIteratorSetter(jsi::Runtime &rt) = 0;
|
|
32
31
|
virtual bool enableDeletionOfUnmountedViews(jsi::Runtime &rt) = 0;
|
|
@@ -34,10 +33,10 @@ public:
|
|
|
34
33
|
virtual bool enableEventEmitterRetentionDuringGesturesOnAndroid(jsi::Runtime &rt) = 0;
|
|
35
34
|
virtual bool enableFabricLogs(jsi::Runtime &rt) = 0;
|
|
36
35
|
virtual bool enableFabricRenderer(jsi::Runtime &rt) = 0;
|
|
37
|
-
virtual bool enableFabricRendererExclusively(jsi::Runtime &rt) = 0;
|
|
38
36
|
virtual bool enableFixForViewCommandRace(jsi::Runtime &rt) = 0;
|
|
39
37
|
virtual bool enableGranularShadowTreeStateReconciliation(jsi::Runtime &rt) = 0;
|
|
40
38
|
virtual bool enableIOSViewClipToPaddingBox(jsi::Runtime &rt) = 0;
|
|
39
|
+
virtual bool enableImagePrefetchingAndroid(jsi::Runtime &rt) = 0;
|
|
41
40
|
virtual bool enableLayoutAnimationsOnAndroid(jsi::Runtime &rt) = 0;
|
|
42
41
|
virtual bool enableLayoutAnimationsOnIOS(jsi::Runtime &rt) = 0;
|
|
43
42
|
virtual bool enableLongTaskAPI(jsi::Runtime &rt) = 0;
|
|
@@ -49,9 +48,9 @@ public:
|
|
|
49
48
|
virtual bool enableUIConsistency(jsi::Runtime &rt) = 0;
|
|
50
49
|
virtual bool enableViewRecycling(jsi::Runtime &rt) = 0;
|
|
51
50
|
virtual bool excludeYogaFromRawProps(jsi::Runtime &rt) = 0;
|
|
51
|
+
virtual bool fixDifferentiatorEmittingUpdatesWithWrongParentTag(jsi::Runtime &rt) = 0;
|
|
52
52
|
virtual bool fixMappingOfEventPrioritiesBetweenFabricAndReact(jsi::Runtime &rt) = 0;
|
|
53
53
|
virtual bool fixMountingCoordinatorReportedPendingTransactionsOnAndroid(jsi::Runtime &rt) = 0;
|
|
54
|
-
virtual bool fuseboxEnabledDebug(jsi::Runtime &rt) = 0;
|
|
55
54
|
virtual bool fuseboxEnabledRelease(jsi::Runtime &rt) = 0;
|
|
56
55
|
virtual bool initEagerTurboModulesOnNativeModulesQueueAndroid(jsi::Runtime &rt) = 0;
|
|
57
56
|
virtual bool lazyAnimationCallbacks(jsi::Runtime &rt) = 0;
|
|
@@ -63,6 +62,7 @@ public:
|
|
|
63
62
|
virtual bool useNativeViewConfigsInBridgelessMode(jsi::Runtime &rt) = 0;
|
|
64
63
|
virtual bool useOptimisedViewPreallocationOnAndroid(jsi::Runtime &rt) = 0;
|
|
65
64
|
virtual bool useOptimizedEventBatchingOnAndroid(jsi::Runtime &rt) = 0;
|
|
65
|
+
virtual bool useRawPropsJsiValue(jsi::Runtime &rt) = 0;
|
|
66
66
|
virtual bool useRuntimeShadowNodeReferenceUpdate(jsi::Runtime &rt) = 0;
|
|
67
67
|
virtual bool useTurboModuleInterop(jsi::Runtime &rt) = 0;
|
|
68
68
|
virtual bool useTurboModules(jsi::Runtime &rt) = 0;
|
|
@@ -136,21 +136,13 @@ private:
|
|
|
136
136
|
return bridging::callFromJs<bool>(
|
|
137
137
|
rt, &T::disableMountItemReorderingAndroid, jsInvoker_, instance_);
|
|
138
138
|
}
|
|
139
|
-
bool
|
|
139
|
+
bool enableAccumulatedUpdatesInRawPropsAndroid(jsi::Runtime &rt) override {
|
|
140
140
|
static_assert(
|
|
141
|
-
bridging::getParameterCount(&T::
|
|
142
|
-
"Expected
|
|
141
|
+
bridging::getParameterCount(&T::enableAccumulatedUpdatesInRawPropsAndroid) == 1,
|
|
142
|
+
"Expected enableAccumulatedUpdatesInRawPropsAndroid(...) to have 1 parameters");
|
|
143
143
|
|
|
144
144
|
return bridging::callFromJs<bool>(
|
|
145
|
-
rt, &T::
|
|
146
|
-
}
|
|
147
|
-
bool enableAndroidLineHeightCentering(jsi::Runtime &rt) override {
|
|
148
|
-
static_assert(
|
|
149
|
-
bridging::getParameterCount(&T::enableAndroidLineHeightCentering) == 1,
|
|
150
|
-
"Expected enableAndroidLineHeightCentering(...) to have 1 parameters");
|
|
151
|
-
|
|
152
|
-
return bridging::callFromJs<bool>(
|
|
153
|
-
rt, &T::enableAndroidLineHeightCentering, jsInvoker_, instance_);
|
|
145
|
+
rt, &T::enableAccumulatedUpdatesInRawPropsAndroid, jsInvoker_, instance_);
|
|
154
146
|
}
|
|
155
147
|
bool enableBridgelessArchitecture(jsi::Runtime &rt) override {
|
|
156
148
|
static_assert(
|
|
@@ -208,14 +200,6 @@ private:
|
|
|
208
200
|
return bridging::callFromJs<bool>(
|
|
209
201
|
rt, &T::enableFabricRenderer, jsInvoker_, instance_);
|
|
210
202
|
}
|
|
211
|
-
bool enableFabricRendererExclusively(jsi::Runtime &rt) override {
|
|
212
|
-
static_assert(
|
|
213
|
-
bridging::getParameterCount(&T::enableFabricRendererExclusively) == 1,
|
|
214
|
-
"Expected enableFabricRendererExclusively(...) to have 1 parameters");
|
|
215
|
-
|
|
216
|
-
return bridging::callFromJs<bool>(
|
|
217
|
-
rt, &T::enableFabricRendererExclusively, jsInvoker_, instance_);
|
|
218
|
-
}
|
|
219
203
|
bool enableFixForViewCommandRace(jsi::Runtime &rt) override {
|
|
220
204
|
static_assert(
|
|
221
205
|
bridging::getParameterCount(&T::enableFixForViewCommandRace) == 1,
|
|
@@ -240,6 +224,14 @@ private:
|
|
|
240
224
|
return bridging::callFromJs<bool>(
|
|
241
225
|
rt, &T::enableIOSViewClipToPaddingBox, jsInvoker_, instance_);
|
|
242
226
|
}
|
|
227
|
+
bool enableImagePrefetchingAndroid(jsi::Runtime &rt) override {
|
|
228
|
+
static_assert(
|
|
229
|
+
bridging::getParameterCount(&T::enableImagePrefetchingAndroid) == 1,
|
|
230
|
+
"Expected enableImagePrefetchingAndroid(...) to have 1 parameters");
|
|
231
|
+
|
|
232
|
+
return bridging::callFromJs<bool>(
|
|
233
|
+
rt, &T::enableImagePrefetchingAndroid, jsInvoker_, instance_);
|
|
234
|
+
}
|
|
243
235
|
bool enableLayoutAnimationsOnAndroid(jsi::Runtime &rt) override {
|
|
244
236
|
static_assert(
|
|
245
237
|
bridging::getParameterCount(&T::enableLayoutAnimationsOnAndroid) == 1,
|
|
@@ -328,6 +320,14 @@ private:
|
|
|
328
320
|
return bridging::callFromJs<bool>(
|
|
329
321
|
rt, &T::excludeYogaFromRawProps, jsInvoker_, instance_);
|
|
330
322
|
}
|
|
323
|
+
bool fixDifferentiatorEmittingUpdatesWithWrongParentTag(jsi::Runtime &rt) override {
|
|
324
|
+
static_assert(
|
|
325
|
+
bridging::getParameterCount(&T::fixDifferentiatorEmittingUpdatesWithWrongParentTag) == 1,
|
|
326
|
+
"Expected fixDifferentiatorEmittingUpdatesWithWrongParentTag(...) to have 1 parameters");
|
|
327
|
+
|
|
328
|
+
return bridging::callFromJs<bool>(
|
|
329
|
+
rt, &T::fixDifferentiatorEmittingUpdatesWithWrongParentTag, jsInvoker_, instance_);
|
|
330
|
+
}
|
|
331
331
|
bool fixMappingOfEventPrioritiesBetweenFabricAndReact(jsi::Runtime &rt) override {
|
|
332
332
|
static_assert(
|
|
333
333
|
bridging::getParameterCount(&T::fixMappingOfEventPrioritiesBetweenFabricAndReact) == 1,
|
|
@@ -344,14 +344,6 @@ private:
|
|
|
344
344
|
return bridging::callFromJs<bool>(
|
|
345
345
|
rt, &T::fixMountingCoordinatorReportedPendingTransactionsOnAndroid, jsInvoker_, instance_);
|
|
346
346
|
}
|
|
347
|
-
bool fuseboxEnabledDebug(jsi::Runtime &rt) override {
|
|
348
|
-
static_assert(
|
|
349
|
-
bridging::getParameterCount(&T::fuseboxEnabledDebug) == 1,
|
|
350
|
-
"Expected fuseboxEnabledDebug(...) to have 1 parameters");
|
|
351
|
-
|
|
352
|
-
return bridging::callFromJs<bool>(
|
|
353
|
-
rt, &T::fuseboxEnabledDebug, jsInvoker_, instance_);
|
|
354
|
-
}
|
|
355
347
|
bool fuseboxEnabledRelease(jsi::Runtime &rt) override {
|
|
356
348
|
static_assert(
|
|
357
349
|
bridging::getParameterCount(&T::fuseboxEnabledRelease) == 1,
|
|
@@ -440,6 +432,14 @@ private:
|
|
|
440
432
|
return bridging::callFromJs<bool>(
|
|
441
433
|
rt, &T::useOptimizedEventBatchingOnAndroid, jsInvoker_, instance_);
|
|
442
434
|
}
|
|
435
|
+
bool useRawPropsJsiValue(jsi::Runtime &rt) override {
|
|
436
|
+
static_assert(
|
|
437
|
+
bridging::getParameterCount(&T::useRawPropsJsiValue) == 1,
|
|
438
|
+
"Expected useRawPropsJsiValue(...) to have 1 parameters");
|
|
439
|
+
|
|
440
|
+
return bridging::callFromJs<bool>(
|
|
441
|
+
rt, &T::useRawPropsJsiValue, jsInvoker_, instance_);
|
|
442
|
+
}
|
|
443
443
|
bool useRuntimeShadowNodeReferenceUpdate(jsi::Runtime &rt) override {
|
|
444
444
|
static_assert(
|
|
445
445
|
bridging::getParameterCount(&T::useRuntimeShadowNodeReferenceUpdate) == 1,
|
|
@@ -2613,6 +2613,69 @@ private:
|
|
|
2613
2613
|
};
|
|
2614
2614
|
|
|
2615
2615
|
|
|
2616
|
+
class JSI_EXPORT NativeCPUTimeCxxSpecJSI : public TurboModule {
|
|
2617
|
+
protected:
|
|
2618
|
+
NativeCPUTimeCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
|
|
2619
|
+
|
|
2620
|
+
public:
|
|
2621
|
+
virtual double getCPUTimeNanos(jsi::Runtime &rt) = 0;
|
|
2622
|
+
virtual bool hasAccurateCPUTimeNanosForBenchmarks(jsi::Runtime &rt) = 0;
|
|
2623
|
+
|
|
2624
|
+
};
|
|
2625
|
+
|
|
2626
|
+
template <typename T>
|
|
2627
|
+
class JSI_EXPORT NativeCPUTimeCxxSpec : public TurboModule {
|
|
2628
|
+
public:
|
|
2629
|
+
jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
|
|
2630
|
+
return delegate_.create(rt, propName);
|
|
2631
|
+
}
|
|
2632
|
+
|
|
2633
|
+
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
|
|
2634
|
+
return delegate_.getPropertyNames(runtime);
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2637
|
+
static constexpr std::string_view kModuleName = "CPUTimeCxx";
|
|
2638
|
+
|
|
2639
|
+
protected:
|
|
2640
|
+
NativeCPUTimeCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
|
|
2641
|
+
: TurboModule(std::string{NativeCPUTimeCxxSpec::kModuleName}, jsInvoker),
|
|
2642
|
+
delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
|
|
2643
|
+
|
|
2644
|
+
|
|
2645
|
+
private:
|
|
2646
|
+
class Delegate : public NativeCPUTimeCxxSpecJSI {
|
|
2647
|
+
public:
|
|
2648
|
+
Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
|
|
2649
|
+
NativeCPUTimeCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
|
|
2650
|
+
|
|
2651
|
+
}
|
|
2652
|
+
|
|
2653
|
+
double getCPUTimeNanos(jsi::Runtime &rt) override {
|
|
2654
|
+
static_assert(
|
|
2655
|
+
bridging::getParameterCount(&T::getCPUTimeNanos) == 1,
|
|
2656
|
+
"Expected getCPUTimeNanos(...) to have 1 parameters");
|
|
2657
|
+
|
|
2658
|
+
return bridging::callFromJs<double>(
|
|
2659
|
+
rt, &T::getCPUTimeNanos, jsInvoker_, instance_);
|
|
2660
|
+
}
|
|
2661
|
+
bool hasAccurateCPUTimeNanosForBenchmarks(jsi::Runtime &rt) override {
|
|
2662
|
+
static_assert(
|
|
2663
|
+
bridging::getParameterCount(&T::hasAccurateCPUTimeNanosForBenchmarks) == 1,
|
|
2664
|
+
"Expected hasAccurateCPUTimeNanosForBenchmarks(...) to have 1 parameters");
|
|
2665
|
+
|
|
2666
|
+
return bridging::callFromJs<bool>(
|
|
2667
|
+
rt, &T::hasAccurateCPUTimeNanosForBenchmarks, jsInvoker_, instance_);
|
|
2668
|
+
}
|
|
2669
|
+
|
|
2670
|
+
private:
|
|
2671
|
+
friend class NativeCPUTimeCxxSpec;
|
|
2672
|
+
T *instance_;
|
|
2673
|
+
};
|
|
2674
|
+
|
|
2675
|
+
Delegate delegate_;
|
|
2676
|
+
};
|
|
2677
|
+
|
|
2678
|
+
|
|
2616
2679
|
class JSI_EXPORT NativeDeviceEventManagerCxxSpecJSI : public TurboModule {
|
|
2617
2680
|
protected:
|
|
2618
2681
|
NativeDeviceEventManagerCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
|
|
@@ -3856,6 +3919,152 @@ private:
|
|
|
3856
3919
|
};
|
|
3857
3920
|
|
|
3858
3921
|
|
|
3922
|
+
|
|
3923
|
+
#pragma mark - NativeFantomRenderFormatOptions
|
|
3924
|
+
|
|
3925
|
+
template <typename P0, typename P1>
|
|
3926
|
+
struct NativeFantomRenderFormatOptions {
|
|
3927
|
+
P0 includeRoot;
|
|
3928
|
+
P1 includeLayoutMetrics;
|
|
3929
|
+
bool operator==(const NativeFantomRenderFormatOptions &other) const {
|
|
3930
|
+
return includeRoot == other.includeRoot && includeLayoutMetrics == other.includeLayoutMetrics;
|
|
3931
|
+
}
|
|
3932
|
+
};
|
|
3933
|
+
|
|
3934
|
+
template <typename T>
|
|
3935
|
+
struct NativeFantomRenderFormatOptionsBridging {
|
|
3936
|
+
static T types;
|
|
3937
|
+
|
|
3938
|
+
static T fromJs(
|
|
3939
|
+
jsi::Runtime &rt,
|
|
3940
|
+
const jsi::Object &value,
|
|
3941
|
+
const std::shared_ptr<CallInvoker> &jsInvoker) {
|
|
3942
|
+
T result{
|
|
3943
|
+
bridging::fromJs<decltype(types.includeRoot)>(rt, value.getProperty(rt, "includeRoot"), jsInvoker),
|
|
3944
|
+
bridging::fromJs<decltype(types.includeLayoutMetrics)>(rt, value.getProperty(rt, "includeLayoutMetrics"), jsInvoker)};
|
|
3945
|
+
return result;
|
|
3946
|
+
}
|
|
3947
|
+
|
|
3948
|
+
#ifdef DEBUG
|
|
3949
|
+
static bool includeRootToJs(jsi::Runtime &rt, decltype(types.includeRoot) value) {
|
|
3950
|
+
return bridging::toJs(rt, value);
|
|
3951
|
+
}
|
|
3952
|
+
|
|
3953
|
+
static bool includeLayoutMetricsToJs(jsi::Runtime &rt, decltype(types.includeLayoutMetrics) value) {
|
|
3954
|
+
return bridging::toJs(rt, value);
|
|
3955
|
+
}
|
|
3956
|
+
#endif
|
|
3957
|
+
|
|
3958
|
+
static jsi::Object toJs(
|
|
3959
|
+
jsi::Runtime &rt,
|
|
3960
|
+
const T &value,
|
|
3961
|
+
const std::shared_ptr<CallInvoker> &jsInvoker) {
|
|
3962
|
+
auto result = facebook::jsi::Object(rt);
|
|
3963
|
+
result.setProperty(rt, "includeRoot", bridging::toJs(rt, value.includeRoot, jsInvoker));
|
|
3964
|
+
result.setProperty(rt, "includeLayoutMetrics", bridging::toJs(rt, value.includeLayoutMetrics, jsInvoker));
|
|
3965
|
+
return result;
|
|
3966
|
+
}
|
|
3967
|
+
};
|
|
3968
|
+
|
|
3969
|
+
class JSI_EXPORT NativeFantomCxxSpecJSI : public TurboModule {
|
|
3970
|
+
protected:
|
|
3971
|
+
NativeFantomCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
|
|
3972
|
+
|
|
3973
|
+
public:
|
|
3974
|
+
virtual void startSurface(jsi::Runtime &rt, double surfaceId, double viewportWidth, double viewportHeight, double devicePixelRatio) = 0;
|
|
3975
|
+
virtual void stopSurface(jsi::Runtime &rt, double surfaceId) = 0;
|
|
3976
|
+
virtual jsi::Array getMountingManagerLogs(jsi::Runtime &rt, double surfaceId) = 0;
|
|
3977
|
+
virtual void flushMessageQueue(jsi::Runtime &rt) = 0;
|
|
3978
|
+
virtual jsi::String getRenderedOutput(jsi::Runtime &rt, double surfaceId, jsi::Object config) = 0;
|
|
3979
|
+
virtual void reportTestSuiteResultsJSON(jsi::Runtime &rt, jsi::String results) = 0;
|
|
3980
|
+
|
|
3981
|
+
};
|
|
3982
|
+
|
|
3983
|
+
template <typename T>
|
|
3984
|
+
class JSI_EXPORT NativeFantomCxxSpec : public TurboModule {
|
|
3985
|
+
public:
|
|
3986
|
+
jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
|
|
3987
|
+
return delegate_.create(rt, propName);
|
|
3988
|
+
}
|
|
3989
|
+
|
|
3990
|
+
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
|
|
3991
|
+
return delegate_.getPropertyNames(runtime);
|
|
3992
|
+
}
|
|
3993
|
+
|
|
3994
|
+
static constexpr std::string_view kModuleName = "NativeFantomCxx";
|
|
3995
|
+
|
|
3996
|
+
protected:
|
|
3997
|
+
NativeFantomCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
|
|
3998
|
+
: TurboModule(std::string{NativeFantomCxxSpec::kModuleName}, jsInvoker),
|
|
3999
|
+
delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
|
|
4000
|
+
|
|
4001
|
+
|
|
4002
|
+
private:
|
|
4003
|
+
class Delegate : public NativeFantomCxxSpecJSI {
|
|
4004
|
+
public:
|
|
4005
|
+
Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
|
|
4006
|
+
NativeFantomCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
|
|
4007
|
+
|
|
4008
|
+
}
|
|
4009
|
+
|
|
4010
|
+
void startSurface(jsi::Runtime &rt, double surfaceId, double viewportWidth, double viewportHeight, double devicePixelRatio) override {
|
|
4011
|
+
static_assert(
|
|
4012
|
+
bridging::getParameterCount(&T::startSurface) == 5,
|
|
4013
|
+
"Expected startSurface(...) to have 5 parameters");
|
|
4014
|
+
|
|
4015
|
+
return bridging::callFromJs<void>(
|
|
4016
|
+
rt, &T::startSurface, jsInvoker_, instance_, std::move(surfaceId), std::move(viewportWidth), std::move(viewportHeight), std::move(devicePixelRatio));
|
|
4017
|
+
}
|
|
4018
|
+
void stopSurface(jsi::Runtime &rt, double surfaceId) override {
|
|
4019
|
+
static_assert(
|
|
4020
|
+
bridging::getParameterCount(&T::stopSurface) == 2,
|
|
4021
|
+
"Expected stopSurface(...) to have 2 parameters");
|
|
4022
|
+
|
|
4023
|
+
return bridging::callFromJs<void>(
|
|
4024
|
+
rt, &T::stopSurface, jsInvoker_, instance_, std::move(surfaceId));
|
|
4025
|
+
}
|
|
4026
|
+
jsi::Array getMountingManagerLogs(jsi::Runtime &rt, double surfaceId) override {
|
|
4027
|
+
static_assert(
|
|
4028
|
+
bridging::getParameterCount(&T::getMountingManagerLogs) == 2,
|
|
4029
|
+
"Expected getMountingManagerLogs(...) to have 2 parameters");
|
|
4030
|
+
|
|
4031
|
+
return bridging::callFromJs<jsi::Array>(
|
|
4032
|
+
rt, &T::getMountingManagerLogs, jsInvoker_, instance_, std::move(surfaceId));
|
|
4033
|
+
}
|
|
4034
|
+
void flushMessageQueue(jsi::Runtime &rt) override {
|
|
4035
|
+
static_assert(
|
|
4036
|
+
bridging::getParameterCount(&T::flushMessageQueue) == 1,
|
|
4037
|
+
"Expected flushMessageQueue(...) to have 1 parameters");
|
|
4038
|
+
|
|
4039
|
+
return bridging::callFromJs<void>(
|
|
4040
|
+
rt, &T::flushMessageQueue, jsInvoker_, instance_);
|
|
4041
|
+
}
|
|
4042
|
+
jsi::String getRenderedOutput(jsi::Runtime &rt, double surfaceId, jsi::Object config) override {
|
|
4043
|
+
static_assert(
|
|
4044
|
+
bridging::getParameterCount(&T::getRenderedOutput) == 3,
|
|
4045
|
+
"Expected getRenderedOutput(...) to have 3 parameters");
|
|
4046
|
+
|
|
4047
|
+
return bridging::callFromJs<jsi::String>(
|
|
4048
|
+
rt, &T::getRenderedOutput, jsInvoker_, instance_, std::move(surfaceId), std::move(config));
|
|
4049
|
+
}
|
|
4050
|
+
void reportTestSuiteResultsJSON(jsi::Runtime &rt, jsi::String results) override {
|
|
4051
|
+
static_assert(
|
|
4052
|
+
bridging::getParameterCount(&T::reportTestSuiteResultsJSON) == 2,
|
|
4053
|
+
"Expected reportTestSuiteResultsJSON(...) to have 2 parameters");
|
|
4054
|
+
|
|
4055
|
+
return bridging::callFromJs<void>(
|
|
4056
|
+
rt, &T::reportTestSuiteResultsJSON, jsInvoker_, instance_, std::move(results));
|
|
4057
|
+
}
|
|
4058
|
+
|
|
4059
|
+
private:
|
|
4060
|
+
friend class NativeFantomCxxSpec;
|
|
4061
|
+
T *instance_;
|
|
4062
|
+
};
|
|
4063
|
+
|
|
4064
|
+
Delegate delegate_;
|
|
4065
|
+
};
|
|
4066
|
+
|
|
4067
|
+
|
|
3859
4068
|
class JSI_EXPORT NativeFileReaderModuleCxxSpecJSI : public TurboModule {
|
|
3860
4069
|
protected:
|
|
3861
4070
|
NativeFileReaderModuleCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
|
|
@@ -4879,60 +5088,6 @@ private:
|
|
|
4879
5088
|
};
|
|
4880
5089
|
|
|
4881
5090
|
|
|
4882
|
-
class JSI_EXPORT NativeJSCSamplingProfilerCxxSpecJSI : public TurboModule {
|
|
4883
|
-
protected:
|
|
4884
|
-
NativeJSCSamplingProfilerCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
|
|
4885
|
-
|
|
4886
|
-
public:
|
|
4887
|
-
virtual void operationComplete(jsi::Runtime &rt, double token, std::optional<jsi::String> result, std::optional<jsi::String> error) = 0;
|
|
4888
|
-
|
|
4889
|
-
};
|
|
4890
|
-
|
|
4891
|
-
template <typename T>
|
|
4892
|
-
class JSI_EXPORT NativeJSCSamplingProfilerCxxSpec : public TurboModule {
|
|
4893
|
-
public:
|
|
4894
|
-
jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
|
|
4895
|
-
return delegate_.create(rt, propName);
|
|
4896
|
-
}
|
|
4897
|
-
|
|
4898
|
-
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
|
|
4899
|
-
return delegate_.getPropertyNames(runtime);
|
|
4900
|
-
}
|
|
4901
|
-
|
|
4902
|
-
static constexpr std::string_view kModuleName = "JSCSamplingProfiler";
|
|
4903
|
-
|
|
4904
|
-
protected:
|
|
4905
|
-
NativeJSCSamplingProfilerCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
|
|
4906
|
-
: TurboModule(std::string{NativeJSCSamplingProfilerCxxSpec::kModuleName}, jsInvoker),
|
|
4907
|
-
delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
private:
|
|
4911
|
-
class Delegate : public NativeJSCSamplingProfilerCxxSpecJSI {
|
|
4912
|
-
public:
|
|
4913
|
-
Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
|
|
4914
|
-
NativeJSCSamplingProfilerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
|
|
4915
|
-
|
|
4916
|
-
}
|
|
4917
|
-
|
|
4918
|
-
void operationComplete(jsi::Runtime &rt, double token, std::optional<jsi::String> result, std::optional<jsi::String> error) override {
|
|
4919
|
-
static_assert(
|
|
4920
|
-
bridging::getParameterCount(&T::operationComplete) == 4,
|
|
4921
|
-
"Expected operationComplete(...) to have 4 parameters");
|
|
4922
|
-
|
|
4923
|
-
return bridging::callFromJs<void>(
|
|
4924
|
-
rt, &T::operationComplete, jsInvoker_, instance_, std::move(token), std::move(result), std::move(error));
|
|
4925
|
-
}
|
|
4926
|
-
|
|
4927
|
-
private:
|
|
4928
|
-
friend class NativeJSCSamplingProfilerCxxSpec;
|
|
4929
|
-
T *instance_;
|
|
4930
|
-
};
|
|
4931
|
-
|
|
4932
|
-
Delegate delegate_;
|
|
4933
|
-
};
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
5091
|
class JSI_EXPORT NativeKeyboardObserverCxxSpecJSI : public TurboModule {
|
|
4937
5092
|
protected:
|
|
4938
5093
|
NativeKeyboardObserverCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
|
|
@@ -8780,8 +8935,6 @@ protected:
|
|
|
8780
8935
|
|
|
8781
8936
|
public:
|
|
8782
8937
|
virtual double now(jsi::Runtime &rt) = 0;
|
|
8783
|
-
virtual void mark(jsi::Runtime &rt, jsi::String name, double startTime) = 0;
|
|
8784
|
-
virtual void measure(jsi::Runtime &rt, jsi::String name, double startTime, double endTime, std::optional<double> duration, std::optional<jsi::String> startMark, std::optional<jsi::String> endMark) = 0;
|
|
8785
8938
|
virtual double markWithResult(jsi::Runtime &rt, jsi::String name, std::optional<double> startTime) = 0;
|
|
8786
8939
|
virtual jsi::Array measureWithResult(jsi::Runtime &rt, jsi::String name, double startTime, double endTime, std::optional<double> duration, std::optional<jsi::String> startMark, std::optional<jsi::String> endMark) = 0;
|
|
8787
8940
|
virtual void clearMarks(jsi::Runtime &rt, std::optional<jsi::String> entryName) = 0;
|
|
@@ -8836,22 +8989,6 @@ private:
|
|
|
8836
8989
|
return bridging::callFromJs<double>(
|
|
8837
8990
|
rt, &T::now, jsInvoker_, instance_);
|
|
8838
8991
|
}
|
|
8839
|
-
void mark(jsi::Runtime &rt, jsi::String name, double startTime) override {
|
|
8840
|
-
static_assert(
|
|
8841
|
-
bridging::getParameterCount(&T::mark) == 3,
|
|
8842
|
-
"Expected mark(...) to have 3 parameters");
|
|
8843
|
-
|
|
8844
|
-
return bridging::callFromJs<void>(
|
|
8845
|
-
rt, &T::mark, jsInvoker_, instance_, std::move(name), std::move(startTime));
|
|
8846
|
-
}
|
|
8847
|
-
void measure(jsi::Runtime &rt, jsi::String name, double startTime, double endTime, std::optional<double> duration, std::optional<jsi::String> startMark, std::optional<jsi::String> endMark) override {
|
|
8848
|
-
static_assert(
|
|
8849
|
-
bridging::getParameterCount(&T::measure) == 7,
|
|
8850
|
-
"Expected measure(...) to have 7 parameters");
|
|
8851
|
-
|
|
8852
|
-
return bridging::callFromJs<void>(
|
|
8853
|
-
rt, &T::measure, jsInvoker_, instance_, std::move(name), std::move(startTime), std::move(endTime), std::move(duration), std::move(startMark), std::move(endMark));
|
|
8854
|
-
}
|
|
8855
8992
|
double markWithResult(jsi::Runtime &rt, jsi::String name, std::optional<double> startTime) override {
|
|
8856
8993
|
static_assert(
|
|
8857
8994
|
bridging::getParameterCount(&T::markWithResult) == 3,
|
package/index.js
CHANGED
|
@@ -28,6 +28,7 @@ import typeof Clipboard from './Libraries/Components/Clipboard/Clipboard';
|
|
|
28
28
|
import typeof DrawerLayoutAndroid from './Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
|
|
29
29
|
import typeof Keyboard from './Libraries/Components/Keyboard/Keyboard';
|
|
30
30
|
import typeof KeyboardAvoidingView from './Libraries/Components/Keyboard/KeyboardAvoidingView';
|
|
31
|
+
import typeof LayoutConformance from './Libraries/Components/LayoutConformance/LayoutConformance';
|
|
31
32
|
import typeof Pressable from './Libraries/Components/Pressable/Pressable';
|
|
32
33
|
import typeof ProgressBarAndroid from './Libraries/Components/ProgressBarAndroid/ProgressBarAndroid';
|
|
33
34
|
import typeof RefreshControl from './Libraries/Components/RefreshControl/RefreshControl';
|
|
@@ -136,6 +137,10 @@ module.exports = {
|
|
|
136
137
|
return require('./Libraries/Components/TextInput/InputAccessoryView')
|
|
137
138
|
.default;
|
|
138
139
|
},
|
|
140
|
+
get experimental_LayoutConformance(): LayoutConformance {
|
|
141
|
+
return require('./Libraries/Components/LayoutConformance/LayoutConformance')
|
|
142
|
+
.default;
|
|
143
|
+
},
|
|
139
144
|
get KeyboardAvoidingView(): KeyboardAvoidingView {
|
|
140
145
|
return require('./Libraries/Components/Keyboard/KeyboardAvoidingView')
|
|
141
146
|
.default;
|
package/index.windows.js
CHANGED
|
@@ -31,6 +31,7 @@ import typeof Clipboard from './Libraries/Components/Clipboard/Clipboard';
|
|
|
31
31
|
import typeof DrawerLayoutAndroid from './Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
|
|
32
32
|
import typeof Keyboard from './Libraries/Components/Keyboard/Keyboard';
|
|
33
33
|
import typeof KeyboardAvoidingView from './Libraries/Components/Keyboard/KeyboardAvoidingView';
|
|
34
|
+
import typeof LayoutConformance from './Libraries/Components/LayoutConformance/LayoutConformance';
|
|
34
35
|
import typeof Pressable from './Libraries/Components/Pressable/Pressable';
|
|
35
36
|
import typeof ProgressBarAndroid from './Libraries/Components/ProgressBarAndroid/ProgressBarAndroid';
|
|
36
37
|
import typeof RefreshControl from './Libraries/Components/RefreshControl/RefreshControl';
|
|
@@ -135,6 +136,10 @@ module.exports = {
|
|
|
135
136
|
return require('./Libraries/Components/TextInput/InputAccessoryView')
|
|
136
137
|
.default;
|
|
137
138
|
},
|
|
139
|
+
get experimental_LayoutConformance(): LayoutConformance {
|
|
140
|
+
return require('./Libraries/Components/LayoutConformance/LayoutConformance')
|
|
141
|
+
.default;
|
|
142
|
+
},
|
|
138
143
|
get KeyboardAvoidingView(): KeyboardAvoidingView {
|
|
139
144
|
return require('./Libraries/Components/Keyboard/KeyboardAvoidingView')
|
|
140
145
|
.default;
|
package/just-task.js
CHANGED
|
@@ -28,7 +28,7 @@ option('clean');
|
|
|
28
28
|
|
|
29
29
|
function codegen(test) {
|
|
30
30
|
execSync(
|
|
31
|
-
`react-native-windows-codegen --files src/**/*Native*.js --namespace Microsoft::ReactNativeSpecs --libraryName rnwcore --modulesWindows --internalComponents --modulesCxx${
|
|
31
|
+
`react-native-windows-codegen --files src/**/*Native*.js --namespace Microsoft::ReactNativeSpecs --libraryName rnwcore --componentsWindows --modulesWindows --internalComponents --modulesCxx${
|
|
32
32
|
test ? ' --test' : ''
|
|
33
33
|
}`,
|
|
34
34
|
{env: process.env},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-windows",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.78.0-preview.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
"@react-native-community/cli": "15.0.0-alpha.2",
|
|
27
27
|
"@react-native-community/cli-platform-android": "15.0.0-alpha.2",
|
|
28
28
|
"@react-native-community/cli-platform-ios": "15.0.0-alpha.2",
|
|
29
|
-
"@react-native-windows/cli": "0.
|
|
29
|
+
"@react-native-windows/cli": "0.78.0-preview.1",
|
|
30
30
|
"@react-native/assets": "1.0.0",
|
|
31
|
-
"@react-native/assets-registry": "0.
|
|
32
|
-
"@react-native/codegen": "0.
|
|
33
|
-
"@react-native/community-cli-plugin": "0.
|
|
34
|
-
"@react-native/gradle-plugin": "0.
|
|
35
|
-
"@react-native/js-polyfills": "0.
|
|
36
|
-
"@react-native/normalize-colors": "0.
|
|
37
|
-
"@react-native/virtualized-lists": "0.
|
|
31
|
+
"@react-native/assets-registry": "0.78.0-rc.0",
|
|
32
|
+
"@react-native/codegen": "0.78.0-rc.0",
|
|
33
|
+
"@react-native/community-cli-plugin": "0.78.0-rc.0",
|
|
34
|
+
"@react-native/gradle-plugin": "0.78.0-rc.0",
|
|
35
|
+
"@react-native/js-polyfills": "0.78.0-rc.0",
|
|
36
|
+
"@react-native/normalize-colors": "0.78.0-rc.0",
|
|
37
|
+
"@react-native/virtualized-lists": "0.78.0-rc.0",
|
|
38
38
|
"abort-controller": "^3.0.0",
|
|
39
39
|
"anser": "^1.4.9",
|
|
40
40
|
"ansi-regex": "^5.0.0",
|
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
"glob": "^7.1.1",
|
|
49
49
|
"invariant": "^2.2.4",
|
|
50
50
|
"jest-environment-node": "^29.6.3",
|
|
51
|
-
"jsc-android": "^250231.0.0",
|
|
52
51
|
"memoize-one": "^5.0.0",
|
|
53
52
|
"metro-runtime": "^0.81.0",
|
|
54
53
|
"metro-source-map": "^0.81.0",
|
|
@@ -60,7 +59,7 @@
|
|
|
60
59
|
"react-refresh": "^0.14.0",
|
|
61
60
|
"react-shallow-renderer": "^16.15.0",
|
|
62
61
|
"regenerator-runtime": "^0.13.2",
|
|
63
|
-
"scheduler": "0.
|
|
62
|
+
"scheduler": "0.25.0",
|
|
64
63
|
"semver": "^7.1.3",
|
|
65
64
|
"source-map-support": "^0.5.19",
|
|
66
65
|
"stacktrace-parser": "^0.1.10",
|
|
@@ -69,31 +68,31 @@
|
|
|
69
68
|
"yargs": "^17.6.2"
|
|
70
69
|
},
|
|
71
70
|
"devDependencies": {
|
|
72
|
-
"@react-native-windows/codegen": "0.
|
|
73
|
-
"@react-native/metro-config": "0.
|
|
71
|
+
"@react-native-windows/codegen": "0.78.0-preview.1",
|
|
72
|
+
"@react-native/metro-config": "0.78.0-nightly-20241231-a3c8e2137",
|
|
74
73
|
"@rnw-scripts/babel-react-native-config": "0.0.0",
|
|
75
|
-
"@rnw-scripts/eslint-config": "1.2.
|
|
76
|
-
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.
|
|
77
|
-
"@rnw-scripts/just-task": "2.3.
|
|
74
|
+
"@rnw-scripts/eslint-config": "1.2.32",
|
|
75
|
+
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.36",
|
|
76
|
+
"@rnw-scripts/just-task": "2.3.49",
|
|
78
77
|
"@rnw-scripts/metro-dev-config": "0.0.0",
|
|
79
78
|
"@rnx-kit/jest-preset": "^0.1.17",
|
|
80
79
|
"@types/node": "^18.0.0",
|
|
81
|
-
"@types/react": "^
|
|
80
|
+
"@types/react": "^19.0.0",
|
|
82
81
|
"eslint": "^8.19.0",
|
|
83
|
-
"flow-bin": "^0.
|
|
82
|
+
"flow-bin": "^0.257.1",
|
|
84
83
|
"jscodeshift": "^0.14.0",
|
|
85
84
|
"just-scripts": "^1.3.3",
|
|
86
85
|
"prettier": "2.8.8",
|
|
87
|
-
"react": "
|
|
88
|
-
"react-native": "0.
|
|
89
|
-
"react-native-platform-override": "^1.9.
|
|
86
|
+
"react": "19.0.0",
|
|
87
|
+
"react-native": "0.78.0-rc.0",
|
|
88
|
+
"react-native-platform-override": "^1.9.51",
|
|
90
89
|
"react-refresh": "^0.14.0",
|
|
91
90
|
"typescript": "5.0.4"
|
|
92
91
|
},
|
|
93
92
|
"peerDependencies": {
|
|
94
|
-
"@types/react": "^
|
|
95
|
-
"react": "^
|
|
96
|
-
"react-native": "0.
|
|
93
|
+
"@types/react": "^19.0.0",
|
|
94
|
+
"react": "^19.0.0",
|
|
95
|
+
"react-native": "0.78.0-rc.0"
|
|
97
96
|
},
|
|
98
97
|
"beachball": {
|
|
99
98
|
"defaultNpmTag": "preview",
|
|
@@ -20,7 +20,7 @@ export function validateInterpolation<OutputT: number | string>(
|
|
|
20
20
|
config: InterpolationConfigType<OutputT>,
|
|
21
21
|
): void {
|
|
22
22
|
for (const key in config) {
|
|
23
|
-
if (!isSupportedInterpolationParam(key)) {
|
|
23
|
+
if (key !== 'debugID' && !isSupportedInterpolationParam(key)) {
|
|
24
24
|
console.error(
|
|
25
25
|
`Interpolation property '${key}' is not supported by native animated module`,
|
|
26
26
|
);
|