react-native-windows 0.78.4 → 0.78.6
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/Directory.Build.props +6 -4
- package/Folly/Folly.vcxproj +46 -6
- package/Folly/Folly.vcxproj.filters +16 -4
- package/Folly/TEMP_UntilFollyUpdate/ConstexprMath.h +26 -18
- package/Folly/TEMP_UntilFollyUpdate/Conv.cpp +1205 -0
- package/Folly/TEMP_UntilFollyUpdate/chrono/Hardware.h +155 -0
- package/Folly/TEMP_UntilFollyUpdate/concurrency/CacheLocality.cpp +633 -0
- package/Folly/TEMP_UntilFollyUpdate/{dynamic-inl.h → json/dynamic-inl.h} +3 -4
- package/Folly/TEMP_UntilFollyUpdate/{json.cpp → json/json.cpp} +14 -10
- package/Folly/TEMP_UntilFollyUpdate/lang/SafeAssert.h +7 -14
- package/Folly/TEMP_UntilFollyUpdate/lang/ToAscii.h +6 -6
- package/Folly/ThreadNameStub.cpp +10 -0
- package/Folly/cgmanifest.json +11 -1
- package/Libraries/Components/View/View.windows.js +107 -56
- package/Libraries/Components/View/ViewAccessibility.d.ts +60 -1
- package/Libraries/Image/Image.windows.js +42 -21
- package/Libraries/Modal/Modal.d.ts +7 -0
- package/Libraries/Modal/Modal.windows.js +7 -1
- package/Libraries/NativeComponent/BaseViewConfig.windows.js +3 -0
- package/Libraries/Text/Text.d.ts +18 -0
- package/Microsoft.ReactNative/AsynchronousEventBeat.cpp +4 -25
- package/Microsoft.ReactNative/AsynchronousEventBeat.h +0 -3
- package/Microsoft.ReactNative/Base/FollyIncludes.h +1 -0
- package/Microsoft.ReactNative/CallInvoker.cpp +42 -0
- package/Microsoft.ReactNative/CallInvoker.h +34 -0
- package/Microsoft.ReactNative/{JSDispatcherWriter.cpp → CallInvokerWriter.cpp} +35 -47
- package/Microsoft.ReactNative/CallInvokerWriter.h +74 -0
- package/Microsoft.ReactNative/CompositionComponentView.idl +0 -5
- package/Microsoft.ReactNative/CompositionSwitcher.idl +7 -0
- package/Microsoft.ReactNative/Fabric/AbiViewProps.cpp +8 -10
- package/Microsoft.ReactNative/Fabric/ComponentView.cpp +4 -1
- package/Microsoft.ReactNative/Fabric/Composition/ActivityIndicatorComponentView.cpp +12 -2
- package/Microsoft.ReactNative/Fabric/Composition/ActivityIndicatorComponentView.h +2 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionAnnotationProvider.cpp +100 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionAnnotationProvider.h +31 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionContextHelper.cpp +77 -11
- package/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.cpp +43 -1
- package/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.h +7 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionEventHandler.cpp +86 -56
- package/Microsoft.ReactNative/Fabric/Composition/CompositionEventHandler.h +5 -1
- package/Microsoft.ReactNative/Fabric/Composition/CompositionRootAutomationProvider.cpp +0 -4
- package/Microsoft.ReactNative/Fabric/Composition/CompositionUIService.cpp +0 -2
- package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.cpp +118 -63
- package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.h +2 -0
- package/Microsoft.ReactNative/Fabric/Composition/ContentIslandComponentView.cpp +133 -8
- package/Microsoft.ReactNative/Fabric/Composition/ContentIslandComponentView.h +16 -2
- package/Microsoft.ReactNative/Fabric/Composition/FocusManager.cpp +4 -2
- package/Microsoft.ReactNative/Fabric/Composition/FocusManager.h +9 -1
- package/Microsoft.ReactNative/Fabric/Composition/ImageComponentView.cpp +34 -11
- package/Microsoft.ReactNative/Fabric/Composition/ImageComponentView.h +3 -0
- package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.cpp +133 -135
- package/Microsoft.ReactNative/Fabric/Composition/ParagraphComponentView.cpp +9 -6
- package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.cpp +46 -49
- package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.h +6 -1
- package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.cpp +13 -8
- package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.h +5 -2
- package/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.cpp +146 -25
- package/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.h +14 -0
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp +160 -12
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.h +6 -0
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputEventEmitter.cpp +47 -0
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputEventEmitter.h +15 -1
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputProps.cpp +6 -2
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputProps.h +4 -1
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputShadowNode.cpp +7 -9
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputShadowNode.h +4 -1
- package/Microsoft.ReactNative/Fabric/Composition/Theme.cpp +5 -0
- package/Microsoft.ReactNative/Fabric/Composition/TooltipService.cpp +40 -36
- package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.cpp +68 -0
- package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.h +11 -0
- package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.cpp +70 -13
- package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.h +10 -2
- package/Microsoft.ReactNative/Fabric/ImageManager.cpp +5 -5
- package/Microsoft.ReactNative/Fabric/ImageRequestParams.cpp +26 -0
- package/Microsoft.ReactNative/Fabric/WindowsImageManager.cpp +47 -8
- package/Microsoft.ReactNative/Fabric/WindowsImageManager.h +10 -1
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/CompositionAccessibilityProps.h +67 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewEventEmitter.cpp +22 -4
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewEventEmitter.h +15 -2
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewProps.cpp +20 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewProps.h +5 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/MouseEvent.h +20 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/graphics/HostPlatformColor.h +5 -8
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/graphics/PlatformColorParser.h +1 -2
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/TextLayoutManager.cpp +247 -45
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/TextLayoutManager.h +15 -0
- package/Microsoft.ReactNative/Fabric/platform/react/threading/MessageQueueThreadImpl.cpp +39 -0
- package/Microsoft.ReactNative/Fabric/platform/react/threading/MessageQueueThreadImpl.h +54 -0
- package/Microsoft.ReactNative/Fabric/platform/react/threading/TaskDispatchThread.cpp +126 -0
- package/Microsoft.ReactNative/Fabric/platform/react/threading/TaskDispatchThread.h +73 -0
- package/Microsoft.ReactNative/IReactContext.cpp +17 -0
- package/Microsoft.ReactNative/IReactContext.h +1 -0
- package/Microsoft.ReactNative/IReactContext.idl +18 -1
- package/Microsoft.ReactNative/IReactDispatcher.idl +1 -0
- package/Microsoft.ReactNative/IReactModuleBuilder.cpp +12 -0
- package/Microsoft.ReactNative/IReactModuleBuilder.h +2 -0
- package/Microsoft.ReactNative/IReactModuleBuilder.idl +8 -0
- package/Microsoft.ReactNative/JsiApi.cpp +10 -2
- package/Microsoft.ReactNative/JsiApi.h +1 -0
- package/Microsoft.ReactNative/JsiApi.idl +1 -0
- package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +0 -3
- package/Microsoft.ReactNative/Modules/AccessibilityInfoModule.cpp +2 -3
- package/Microsoft.ReactNative/Modules/AlertModule.cpp +7 -12
- package/Microsoft.ReactNative/Modules/Animated/AnimationDriver.cpp +2 -1
- package/Microsoft.ReactNative/Modules/Animated/NativeAnimatedModule.cpp +4 -8
- package/Microsoft.ReactNative/Modules/AppStateModule.cpp +2 -2
- package/Microsoft.ReactNative/Modules/ClipboardModule.cpp +6 -8
- package/Microsoft.ReactNative/Modules/ClipboardModule.h +1 -1
- package/Microsoft.ReactNative/Modules/ImageViewManagerModule.cpp +6 -15
- package/Microsoft.ReactNative/Modules/NativeUIManager.cpp +13 -24
- package/Microsoft.ReactNative/QuirkSettings.cpp +0 -16
- package/Microsoft.ReactNative/QuirkSettings.h +0 -3
- package/Microsoft.ReactNative/ReactHost/ReactHost.cpp +11 -1
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp +78 -68
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.h +1 -2
- package/Microsoft.ReactNative/ReactInstanceSettings.cpp +12 -0
- package/Microsoft.ReactNative/ReactInstanceSettings.h +2 -0
- package/Microsoft.ReactNative/ReactInstanceSettings.idl +6 -0
- package/Microsoft.ReactNative/ReactNativeIsland.idl +3 -0
- package/Microsoft.ReactNative/ReactSupport.cpp +44 -11
- package/Microsoft.ReactNative/RedBox.cpp +30 -1
- package/Microsoft.ReactNative/SchedulerSettings.cpp +4 -4
- package/Microsoft.ReactNative/SchedulerSettings.h +1 -1
- package/Microsoft.ReactNative/TurboModulesProvider.cpp +30 -12
- package/Microsoft.ReactNative/Utils/ImageUtils.h +1 -0
- package/Microsoft.ReactNative/Utils/LocalBundleReader.cpp +37 -31
- package/Microsoft.ReactNative.Cxx/ApiLoaders/JSRuntimeApi.cpp +1 -0
- package/Microsoft.ReactNative.Cxx/ApiLoaders/JSRuntimeApi.inc +2 -0
- package/Microsoft.ReactNative.Cxx/ApiLoaders/NodeApi_posix.cpp +1 -1
- package/Microsoft.ReactNative.Cxx/JSI/JsiAbiApi.cpp +94 -27
- package/Microsoft.ReactNative.Cxx/JSI/JsiAbiApi.h +27 -6
- package/Microsoft.ReactNative.Cxx/JSI/JsiApiContext.cpp +45 -11
- package/Microsoft.ReactNative.Cxx/JSI/JsiApiContext.h +6 -0
- package/Microsoft.ReactNative.Cxx/JSI/decorator.h +220 -0
- package/Microsoft.ReactNative.Cxx/JSI/instrumentation.h +28 -0
- package/Microsoft.ReactNative.Cxx/JSI/jsi-inl.h +6 -0
- package/Microsoft.ReactNative.Cxx/JSI/jsi.cpp +241 -4
- package/Microsoft.ReactNative.Cxx/JSI/jsi.h +207 -19
- package/Microsoft.ReactNative.Cxx/JSValue.cpp +19 -3
- package/Microsoft.ReactNative.Cxx/JSValue.h +15 -7
- package/Microsoft.ReactNative.Cxx/Microsoft.ReactNative.Cxx.vcxitems +2 -2
- package/Microsoft.ReactNative.Cxx/NativeModules.h +60 -2
- package/Microsoft.ReactNative.Cxx/NodeApiJsiRuntime.cpp +1267 -614
- package/Microsoft.ReactNative.Cxx/NodeApiJsiRuntime.h +4 -2
- package/Microsoft.ReactNative.Cxx/ReactContext.h +7 -0
- package/Microsoft.ReactNative.Cxx/TurboModuleProvider.cpp +11 -13
- package/Microsoft.ReactNative.Cxx/TurboModuleProvider.h +2 -3
- package/Microsoft.ReactNative.Cxx/node-api/js_native_api.h +81 -20
- package/Microsoft.ReactNative.Cxx/node-api/js_native_api_types.h +47 -2
- package/Microsoft.ReactNative.Cxx/node-api/js_runtime_api.h +13 -0
- package/Microsoft.ReactNative.Cxx/stubs/glog/logging.h +1 -1
- package/Microsoft.ReactNative.Managed/ReactContext.cs +3 -1
- package/PropertySheets/Generated/PackageVersion.g.props +3 -3
- package/PropertySheets/JSEngine.props +1 -1
- package/PropertySheets/React.Cpp.props +2 -1
- package/PropertySheets/WebView2.props +1 -1
- package/PropertySheets/WinUI.props +2 -2
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jserrorhandler/JsErrorHandler.cpp +429 -0
- package/ReactCommon/cgmanifest.json +1 -1
- package/Shared/HermesRuntimeHolder.cpp +6 -0
- package/Shared/JSI/ChakraRuntime.cpp +4 -0
- package/Shared/JSI/ChakraRuntime.h +2 -0
- package/Shared/Modules/BlobModule.cpp +14 -16
- package/Shared/Modules/BlobModule.h +3 -1
- package/Shared/Networking/WinRTWebSocketResource.cpp +82 -101
- package/Shared/Networking/WinRTWebSocketResource.h +91 -7
- package/Shared/Shared.vcxitems +11 -7
- package/Shared/Shared.vcxitems.filters +6 -1
- package/Shared/TurboModuleManager.cpp +0 -15
- package/codegen/react/components/rnwcore/ActivityIndicatorView.g.h +6 -6
- package/codegen/react/components/rnwcore/AndroidDrawerLayout.g.h +6 -6
- package/codegen/react/components/rnwcore/AndroidHorizontalScrollContentView.g.h +6 -6
- package/codegen/react/components/rnwcore/AndroidProgressBar.g.h +6 -6
- package/codegen/react/components/rnwcore/AndroidSwipeRefreshLayout.g.h +6 -6
- package/codegen/react/components/rnwcore/AndroidSwitch.g.h +6 -6
- package/codegen/react/components/rnwcore/DebuggingOverlay.g.h +6 -6
- package/codegen/react/components/rnwcore/InputAccessory.g.h +6 -6
- package/codegen/react/components/rnwcore/ModalHostView.g.h +11 -7
- package/codegen/react/components/rnwcore/Props.cpp +2 -1
- package/codegen/react/components/rnwcore/Props.h +1 -0
- package/codegen/react/components/rnwcore/PullToRefreshView.g.h +6 -6
- package/codegen/react/components/rnwcore/SafeAreaView.g.h +6 -6
- package/codegen/react/components/rnwcore/Switch.g.h +6 -6
- package/codegen/react/components/rnwcore/UnimplementedNativeView.g.h +6 -6
- package/index.windows.js +4 -2
- package/package.json +3 -4
- package/src/private/specs/components/RCTModalHostViewNativeComponent.js +8 -0
- package/stubs/glog/logging.h +1 -1
- package/Microsoft.ReactNative/JSDispatcherWriter.h +0 -47
- package/Microsoft.ReactNative/SynchronousEventBeat.cpp +0 -51
- package/Microsoft.ReactNative/SynchronousEventBeat.h +0 -31
|
@@ -165,7 +165,7 @@ void RegisterAndroidProgressBarNativeComponent(
|
|
|
165
165
|
userData->UpdateEventEmitter(std::make_shared<AndroidProgressBarEventEmitter>(eventEmitter));
|
|
166
166
|
});
|
|
167
167
|
|
|
168
|
-
if
|
|
168
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::FinalizeUpdate != &BaseAndroidProgressBar<TUserData>::FinalizeUpdate) {
|
|
169
169
|
builder.SetFinalizeUpdateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
170
170
|
winrt::Microsoft::ReactNative::ComponentViewUpdateMask mask) noexcept {
|
|
171
171
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -173,7 +173,7 @@ void RegisterAndroidProgressBarNativeComponent(
|
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
if
|
|
176
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UpdateState != &BaseAndroidProgressBar<TUserData>::UpdateState) {
|
|
177
177
|
builder.SetUpdateStateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
178
178
|
const winrt::Microsoft::ReactNative::IComponentState &newState) noexcept {
|
|
179
179
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -181,7 +181,7 @@ void RegisterAndroidProgressBarNativeComponent(
|
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
if
|
|
184
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::MountChildComponentView != &BaseAndroidProgressBar<TUserData>::MountChildComponentView) {
|
|
185
185
|
builder.SetMountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
186
186
|
const winrt::Microsoft::ReactNative::MountChildComponentViewArgs &args) noexcept {
|
|
187
187
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -189,7 +189,7 @@ void RegisterAndroidProgressBarNativeComponent(
|
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
if
|
|
192
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UnmountChildComponentView != &BaseAndroidProgressBar<TUserData>::UnmountChildComponentView) {
|
|
193
193
|
builder.SetUnmountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
194
194
|
const winrt::Microsoft::ReactNative::UnmountChildComponentViewArgs &args) noexcept {
|
|
195
195
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -199,13 +199,13 @@ void RegisterAndroidProgressBarNativeComponent(
|
|
|
199
199
|
|
|
200
200
|
compBuilder.SetViewComponentViewInitializer([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
201
201
|
auto userData = winrt::make_self<TUserData>();
|
|
202
|
-
if
|
|
202
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::Initialize != &BaseAndroidProgressBar<TUserData>::Initialize) {
|
|
203
203
|
userData->Initialize(view);
|
|
204
204
|
}
|
|
205
205
|
view.UserData(*userData);
|
|
206
206
|
});
|
|
207
207
|
|
|
208
|
-
if
|
|
208
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::CreateVisual != &BaseAndroidProgressBar<TUserData>::CreateVisual) {
|
|
209
209
|
compBuilder.SetCreateVisualHandler([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
210
210
|
auto userData = view.UserData().as<TUserData>();
|
|
211
211
|
return userData->CreateVisual(view);
|
|
@@ -185,7 +185,7 @@ void RegisterAndroidSwipeRefreshLayoutNativeComponent(
|
|
|
185
185
|
userData->UpdateEventEmitter(std::make_shared<AndroidSwipeRefreshLayoutEventEmitter>(eventEmitter));
|
|
186
186
|
});
|
|
187
187
|
|
|
188
|
-
if
|
|
188
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::FinalizeUpdate != &BaseAndroidSwipeRefreshLayout<TUserData>::FinalizeUpdate) {
|
|
189
189
|
builder.SetFinalizeUpdateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
190
190
|
winrt::Microsoft::ReactNative::ComponentViewUpdateMask mask) noexcept {
|
|
191
191
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -193,7 +193,7 @@ void RegisterAndroidSwipeRefreshLayoutNativeComponent(
|
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
if
|
|
196
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UpdateState != &BaseAndroidSwipeRefreshLayout<TUserData>::UpdateState) {
|
|
197
197
|
builder.SetUpdateStateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
198
198
|
const winrt::Microsoft::ReactNative::IComponentState &newState) noexcept {
|
|
199
199
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -207,7 +207,7 @@ void RegisterAndroidSwipeRefreshLayoutNativeComponent(
|
|
|
207
207
|
userData->HandleCommand(view, args);
|
|
208
208
|
});
|
|
209
209
|
|
|
210
|
-
if
|
|
210
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::MountChildComponentView != &BaseAndroidSwipeRefreshLayout<TUserData>::MountChildComponentView) {
|
|
211
211
|
builder.SetMountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
212
212
|
const winrt::Microsoft::ReactNative::MountChildComponentViewArgs &args) noexcept {
|
|
213
213
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -215,7 +215,7 @@ void RegisterAndroidSwipeRefreshLayoutNativeComponent(
|
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
if
|
|
218
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UnmountChildComponentView != &BaseAndroidSwipeRefreshLayout<TUserData>::UnmountChildComponentView) {
|
|
219
219
|
builder.SetUnmountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
220
220
|
const winrt::Microsoft::ReactNative::UnmountChildComponentViewArgs &args) noexcept {
|
|
221
221
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -225,13 +225,13 @@ void RegisterAndroidSwipeRefreshLayoutNativeComponent(
|
|
|
225
225
|
|
|
226
226
|
compBuilder.SetViewComponentViewInitializer([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
227
227
|
auto userData = winrt::make_self<TUserData>();
|
|
228
|
-
if
|
|
228
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::Initialize != &BaseAndroidSwipeRefreshLayout<TUserData>::Initialize) {
|
|
229
229
|
userData->Initialize(view);
|
|
230
230
|
}
|
|
231
231
|
view.UserData(*userData);
|
|
232
232
|
});
|
|
233
233
|
|
|
234
|
-
if
|
|
234
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::CreateVisual != &BaseAndroidSwipeRefreshLayout<TUserData>::CreateVisual) {
|
|
235
235
|
compBuilder.SetCreateVisualHandler([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
236
236
|
auto userData = view.UserData().as<TUserData>();
|
|
237
237
|
return userData->CreateVisual(view);
|
|
@@ -202,7 +202,7 @@ void RegisterAndroidSwitchNativeComponent(
|
|
|
202
202
|
userData->UpdateEventEmitter(std::make_shared<AndroidSwitchEventEmitter>(eventEmitter));
|
|
203
203
|
});
|
|
204
204
|
|
|
205
|
-
if
|
|
205
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::FinalizeUpdate != &BaseAndroidSwitch<TUserData>::FinalizeUpdate) {
|
|
206
206
|
builder.SetFinalizeUpdateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
207
207
|
winrt::Microsoft::ReactNative::ComponentViewUpdateMask mask) noexcept {
|
|
208
208
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -210,7 +210,7 @@ void RegisterAndroidSwitchNativeComponent(
|
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
if
|
|
213
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UpdateState != &BaseAndroidSwitch<TUserData>::UpdateState) {
|
|
214
214
|
builder.SetUpdateStateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
215
215
|
const winrt::Microsoft::ReactNative::IComponentState &newState) noexcept {
|
|
216
216
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -224,7 +224,7 @@ void RegisterAndroidSwitchNativeComponent(
|
|
|
224
224
|
userData->HandleCommand(view, args);
|
|
225
225
|
});
|
|
226
226
|
|
|
227
|
-
if
|
|
227
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::MountChildComponentView != &BaseAndroidSwitch<TUserData>::MountChildComponentView) {
|
|
228
228
|
builder.SetMountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
229
229
|
const winrt::Microsoft::ReactNative::MountChildComponentViewArgs &args) noexcept {
|
|
230
230
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -232,7 +232,7 @@ void RegisterAndroidSwitchNativeComponent(
|
|
|
232
232
|
});
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
-
if
|
|
235
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UnmountChildComponentView != &BaseAndroidSwitch<TUserData>::UnmountChildComponentView) {
|
|
236
236
|
builder.SetUnmountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
237
237
|
const winrt::Microsoft::ReactNative::UnmountChildComponentViewArgs &args) noexcept {
|
|
238
238
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -242,13 +242,13 @@ void RegisterAndroidSwitchNativeComponent(
|
|
|
242
242
|
|
|
243
243
|
compBuilder.SetViewComponentViewInitializer([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
244
244
|
auto userData = winrt::make_self<TUserData>();
|
|
245
|
-
if
|
|
245
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::Initialize != &BaseAndroidSwitch<TUserData>::Initialize) {
|
|
246
246
|
userData->Initialize(view);
|
|
247
247
|
}
|
|
248
248
|
view.UserData(*userData);
|
|
249
249
|
});
|
|
250
250
|
|
|
251
|
-
if
|
|
251
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::CreateVisual != &BaseAndroidSwitch<TUserData>::CreateVisual) {
|
|
252
252
|
compBuilder.SetCreateVisualHandler([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
253
253
|
auto userData = view.UserData().as<TUserData>();
|
|
254
254
|
return userData->CreateVisual(view);
|
|
@@ -169,7 +169,7 @@ void RegisterDebuggingOverlayNativeComponent(
|
|
|
169
169
|
userData->UpdateEventEmitter(std::make_shared<DebuggingOverlayEventEmitter>(eventEmitter));
|
|
170
170
|
});
|
|
171
171
|
|
|
172
|
-
if
|
|
172
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::FinalizeUpdate != &BaseDebuggingOverlay<TUserData>::FinalizeUpdate) {
|
|
173
173
|
builder.SetFinalizeUpdateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
174
174
|
winrt::Microsoft::ReactNative::ComponentViewUpdateMask mask) noexcept {
|
|
175
175
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -177,7 +177,7 @@ void RegisterDebuggingOverlayNativeComponent(
|
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
if
|
|
180
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UpdateState != &BaseDebuggingOverlay<TUserData>::UpdateState) {
|
|
181
181
|
builder.SetUpdateStateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
182
182
|
const winrt::Microsoft::ReactNative::IComponentState &newState) noexcept {
|
|
183
183
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -191,7 +191,7 @@ void RegisterDebuggingOverlayNativeComponent(
|
|
|
191
191
|
userData->HandleCommand(view, args);
|
|
192
192
|
});
|
|
193
193
|
|
|
194
|
-
if
|
|
194
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::MountChildComponentView != &BaseDebuggingOverlay<TUserData>::MountChildComponentView) {
|
|
195
195
|
builder.SetMountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
196
196
|
const winrt::Microsoft::ReactNative::MountChildComponentViewArgs &args) noexcept {
|
|
197
197
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -199,7 +199,7 @@ void RegisterDebuggingOverlayNativeComponent(
|
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
if
|
|
202
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UnmountChildComponentView != &BaseDebuggingOverlay<TUserData>::UnmountChildComponentView) {
|
|
203
203
|
builder.SetUnmountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
204
204
|
const winrt::Microsoft::ReactNative::UnmountChildComponentViewArgs &args) noexcept {
|
|
205
205
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -209,13 +209,13 @@ void RegisterDebuggingOverlayNativeComponent(
|
|
|
209
209
|
|
|
210
210
|
compBuilder.SetViewComponentViewInitializer([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
211
211
|
auto userData = winrt::make_self<TUserData>();
|
|
212
|
-
if
|
|
212
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::Initialize != &BaseDebuggingOverlay<TUserData>::Initialize) {
|
|
213
213
|
userData->Initialize(view);
|
|
214
214
|
}
|
|
215
215
|
view.UserData(*userData);
|
|
216
216
|
});
|
|
217
217
|
|
|
218
|
-
if
|
|
218
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::CreateVisual != &BaseDebuggingOverlay<TUserData>::CreateVisual) {
|
|
219
219
|
compBuilder.SetCreateVisualHandler([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
220
220
|
auto userData = view.UserData().as<TUserData>();
|
|
221
221
|
return userData->CreateVisual(view);
|
|
@@ -141,7 +141,7 @@ void RegisterInputAccessoryNativeComponent(
|
|
|
141
141
|
userData->UpdateEventEmitter(std::make_shared<InputAccessoryEventEmitter>(eventEmitter));
|
|
142
142
|
});
|
|
143
143
|
|
|
144
|
-
if
|
|
144
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::FinalizeUpdate != &BaseInputAccessory<TUserData>::FinalizeUpdate) {
|
|
145
145
|
builder.SetFinalizeUpdateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
146
146
|
winrt::Microsoft::ReactNative::ComponentViewUpdateMask mask) noexcept {
|
|
147
147
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -149,7 +149,7 @@ void RegisterInputAccessoryNativeComponent(
|
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
if
|
|
152
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UpdateState != &BaseInputAccessory<TUserData>::UpdateState) {
|
|
153
153
|
builder.SetUpdateStateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
154
154
|
const winrt::Microsoft::ReactNative::IComponentState &newState) noexcept {
|
|
155
155
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -157,7 +157,7 @@ void RegisterInputAccessoryNativeComponent(
|
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
if
|
|
160
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::MountChildComponentView != &BaseInputAccessory<TUserData>::MountChildComponentView) {
|
|
161
161
|
builder.SetMountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
162
162
|
const winrt::Microsoft::ReactNative::MountChildComponentViewArgs &args) noexcept {
|
|
163
163
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -165,7 +165,7 @@ void RegisterInputAccessoryNativeComponent(
|
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
if
|
|
168
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UnmountChildComponentView != &BaseInputAccessory<TUserData>::UnmountChildComponentView) {
|
|
169
169
|
builder.SetUnmountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
170
170
|
const winrt::Microsoft::ReactNative::UnmountChildComponentViewArgs &args) noexcept {
|
|
171
171
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -175,13 +175,13 @@ void RegisterInputAccessoryNativeComponent(
|
|
|
175
175
|
|
|
176
176
|
compBuilder.SetViewComponentViewInitializer([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
177
177
|
auto userData = winrt::make_self<TUserData>();
|
|
178
|
-
if
|
|
178
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::Initialize != &BaseInputAccessory<TUserData>::Initialize) {
|
|
179
179
|
userData->Initialize(view);
|
|
180
180
|
}
|
|
181
181
|
view.UserData(*userData);
|
|
182
182
|
});
|
|
183
183
|
|
|
184
|
-
if
|
|
184
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::CreateVisual != &BaseInputAccessory<TUserData>::CreateVisual) {
|
|
185
185
|
compBuilder.SetCreateVisualHandler([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
186
186
|
auto userData = view.UserData().as<TUserData>();
|
|
187
187
|
return userData->CreateVisual(view);
|
|
@@ -34,7 +34,8 @@ struct ModalHostViewProps : winrt::implements<ModalHostViewProps, winrt::Microso
|
|
|
34
34
|
visible = cloneFromProps->visible;
|
|
35
35
|
animated = cloneFromProps->animated;
|
|
36
36
|
supportedOrientations = cloneFromProps->supportedOrientations;
|
|
37
|
-
identifier = cloneFromProps->identifier;
|
|
37
|
+
identifier = cloneFromProps->identifier;
|
|
38
|
+
title = cloneFromProps->title;
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
|
|
@@ -72,6 +73,9 @@ struct ModalHostViewProps : winrt::implements<ModalHostViewProps, winrt::Microso
|
|
|
72
73
|
REACT_FIELD(identifier)
|
|
73
74
|
std::optional<int32_t> identifier{};
|
|
74
75
|
|
|
76
|
+
REACT_FIELD(title)
|
|
77
|
+
std::optional<std::string> title;
|
|
78
|
+
|
|
75
79
|
const winrt::Microsoft::ReactNative::ViewProps ViewProps;
|
|
76
80
|
};
|
|
77
81
|
|
|
@@ -224,7 +228,7 @@ void RegisterModalHostViewNativeComponent(
|
|
|
224
228
|
userData->UpdateEventEmitter(std::make_shared<ModalHostViewEventEmitter>(eventEmitter));
|
|
225
229
|
});
|
|
226
230
|
|
|
227
|
-
if
|
|
231
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::FinalizeUpdate != &BaseModalHostView<TUserData>::FinalizeUpdate) {
|
|
228
232
|
builder.SetFinalizeUpdateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
229
233
|
winrt::Microsoft::ReactNative::ComponentViewUpdateMask mask) noexcept {
|
|
230
234
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -232,7 +236,7 @@ void RegisterModalHostViewNativeComponent(
|
|
|
232
236
|
});
|
|
233
237
|
}
|
|
234
238
|
|
|
235
|
-
if
|
|
239
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UpdateState != &BaseModalHostView<TUserData>::UpdateState) {
|
|
236
240
|
builder.SetUpdateStateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
237
241
|
const winrt::Microsoft::ReactNative::IComponentState &newState) noexcept {
|
|
238
242
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -240,7 +244,7 @@ void RegisterModalHostViewNativeComponent(
|
|
|
240
244
|
});
|
|
241
245
|
}
|
|
242
246
|
|
|
243
|
-
if
|
|
247
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::MountChildComponentView != &BaseModalHostView<TUserData>::MountChildComponentView) {
|
|
244
248
|
builder.SetMountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
245
249
|
const winrt::Microsoft::ReactNative::MountChildComponentViewArgs &args) noexcept {
|
|
246
250
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -248,7 +252,7 @@ void RegisterModalHostViewNativeComponent(
|
|
|
248
252
|
});
|
|
249
253
|
}
|
|
250
254
|
|
|
251
|
-
if
|
|
255
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UnmountChildComponentView != &BaseModalHostView<TUserData>::UnmountChildComponentView) {
|
|
252
256
|
builder.SetUnmountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
253
257
|
const winrt::Microsoft::ReactNative::UnmountChildComponentViewArgs &args) noexcept {
|
|
254
258
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -258,13 +262,13 @@ void RegisterModalHostViewNativeComponent(
|
|
|
258
262
|
|
|
259
263
|
compBuilder.SetViewComponentViewInitializer([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
260
264
|
auto userData = winrt::make_self<TUserData>();
|
|
261
|
-
if
|
|
265
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::Initialize != &BaseModalHostView<TUserData>::Initialize) {
|
|
262
266
|
userData->Initialize(view);
|
|
263
267
|
}
|
|
264
268
|
view.UserData(*userData);
|
|
265
269
|
});
|
|
266
270
|
|
|
267
|
-
if
|
|
271
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::CreateVisual != &BaseModalHostView<TUserData>::CreateVisual) {
|
|
268
272
|
compBuilder.SetCreateVisualHandler([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
269
273
|
auto userData = view.UserData().as<TUserData>();
|
|
270
274
|
return userData->CreateVisual(view);
|
|
@@ -122,7 +122,8 @@ ModalHostViewProps::ModalHostViewProps(
|
|
|
122
122
|
visible(convertRawProp(context, rawProps, "visible", sourceProps.visible, {false})),
|
|
123
123
|
animated(convertRawProp(context, rawProps, "animated", sourceProps.animated, {false})),
|
|
124
124
|
supportedOrientations(convertRawProp(context, rawProps, "supportedOrientations", ModalHostViewSupportedOrientationsMaskWrapped{ .value = sourceProps.supportedOrientations }, {static_cast<ModalHostViewSupportedOrientationsMask>(ModalHostViewSupportedOrientations::Portrait)}).value),
|
|
125
|
-
identifier(convertRawProp(context, rawProps, "identifier", sourceProps.identifier, {0}))
|
|
125
|
+
identifier(convertRawProp(context, rawProps, "identifier", sourceProps.identifier, {0})),
|
|
126
|
+
title(convertRawProp(context, rawProps, "title", sourceProps.title, {}))
|
|
126
127
|
{}
|
|
127
128
|
SafeAreaViewProps::SafeAreaViewProps(
|
|
128
129
|
const PropsParserContext &context,
|
|
@@ -355,6 +355,7 @@ class ModalHostViewProps final : public ViewProps {
|
|
|
355
355
|
bool animated{false};
|
|
356
356
|
ModalHostViewSupportedOrientationsMask supportedOrientations{static_cast<ModalHostViewSupportedOrientationsMask>(ModalHostViewSupportedOrientations::Portrait)};
|
|
357
357
|
int identifier{0};
|
|
358
|
+
std::string title{};
|
|
358
359
|
};
|
|
359
360
|
|
|
360
361
|
class SafeAreaViewProps final : public ViewProps {
|
|
@@ -181,7 +181,7 @@ void RegisterPullToRefreshViewNativeComponent(
|
|
|
181
181
|
userData->UpdateEventEmitter(std::make_shared<PullToRefreshViewEventEmitter>(eventEmitter));
|
|
182
182
|
});
|
|
183
183
|
|
|
184
|
-
if
|
|
184
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::FinalizeUpdate != &BasePullToRefreshView<TUserData>::FinalizeUpdate) {
|
|
185
185
|
builder.SetFinalizeUpdateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
186
186
|
winrt::Microsoft::ReactNative::ComponentViewUpdateMask mask) noexcept {
|
|
187
187
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -189,7 +189,7 @@ void RegisterPullToRefreshViewNativeComponent(
|
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
if
|
|
192
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UpdateState != &BasePullToRefreshView<TUserData>::UpdateState) {
|
|
193
193
|
builder.SetUpdateStateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
194
194
|
const winrt::Microsoft::ReactNative::IComponentState &newState) noexcept {
|
|
195
195
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -203,7 +203,7 @@ void RegisterPullToRefreshViewNativeComponent(
|
|
|
203
203
|
userData->HandleCommand(view, args);
|
|
204
204
|
});
|
|
205
205
|
|
|
206
|
-
if
|
|
206
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::MountChildComponentView != &BasePullToRefreshView<TUserData>::MountChildComponentView) {
|
|
207
207
|
builder.SetMountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
208
208
|
const winrt::Microsoft::ReactNative::MountChildComponentViewArgs &args) noexcept {
|
|
209
209
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -211,7 +211,7 @@ void RegisterPullToRefreshViewNativeComponent(
|
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
-
if
|
|
214
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UnmountChildComponentView != &BasePullToRefreshView<TUserData>::UnmountChildComponentView) {
|
|
215
215
|
builder.SetUnmountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
216
216
|
const winrt::Microsoft::ReactNative::UnmountChildComponentViewArgs &args) noexcept {
|
|
217
217
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -221,13 +221,13 @@ void RegisterPullToRefreshViewNativeComponent(
|
|
|
221
221
|
|
|
222
222
|
compBuilder.SetViewComponentViewInitializer([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
223
223
|
auto userData = winrt::make_self<TUserData>();
|
|
224
|
-
if
|
|
224
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::Initialize != &BasePullToRefreshView<TUserData>::Initialize) {
|
|
225
225
|
userData->Initialize(view);
|
|
226
226
|
}
|
|
227
227
|
view.UserData(*userData);
|
|
228
228
|
});
|
|
229
229
|
|
|
230
|
-
if
|
|
230
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::CreateVisual != &BasePullToRefreshView<TUserData>::CreateVisual) {
|
|
231
231
|
compBuilder.SetCreateVisualHandler([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
232
232
|
auto userData = view.UserData().as<TUserData>();
|
|
233
233
|
return userData->CreateVisual(view);
|
|
@@ -138,7 +138,7 @@ void RegisterSafeAreaViewNativeComponent(
|
|
|
138
138
|
userData->UpdateEventEmitter(std::make_shared<SafeAreaViewEventEmitter>(eventEmitter));
|
|
139
139
|
});
|
|
140
140
|
|
|
141
|
-
if
|
|
141
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::FinalizeUpdate != &BaseSafeAreaView<TUserData>::FinalizeUpdate) {
|
|
142
142
|
builder.SetFinalizeUpdateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
143
143
|
winrt::Microsoft::ReactNative::ComponentViewUpdateMask mask) noexcept {
|
|
144
144
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -146,7 +146,7 @@ void RegisterSafeAreaViewNativeComponent(
|
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
if
|
|
149
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UpdateState != &BaseSafeAreaView<TUserData>::UpdateState) {
|
|
150
150
|
builder.SetUpdateStateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
151
151
|
const winrt::Microsoft::ReactNative::IComponentState &newState) noexcept {
|
|
152
152
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -154,7 +154,7 @@ void RegisterSafeAreaViewNativeComponent(
|
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
if
|
|
157
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::MountChildComponentView != &BaseSafeAreaView<TUserData>::MountChildComponentView) {
|
|
158
158
|
builder.SetMountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
159
159
|
const winrt::Microsoft::ReactNative::MountChildComponentViewArgs &args) noexcept {
|
|
160
160
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -162,7 +162,7 @@ void RegisterSafeAreaViewNativeComponent(
|
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
if
|
|
165
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UnmountChildComponentView != &BaseSafeAreaView<TUserData>::UnmountChildComponentView) {
|
|
166
166
|
builder.SetUnmountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
167
167
|
const winrt::Microsoft::ReactNative::UnmountChildComponentViewArgs &args) noexcept {
|
|
168
168
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -172,13 +172,13 @@ void RegisterSafeAreaViewNativeComponent(
|
|
|
172
172
|
|
|
173
173
|
compBuilder.SetViewComponentViewInitializer([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
174
174
|
auto userData = winrt::make_self<TUserData>();
|
|
175
|
-
if
|
|
175
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::Initialize != &BaseSafeAreaView<TUserData>::Initialize) {
|
|
176
176
|
userData->Initialize(view);
|
|
177
177
|
}
|
|
178
178
|
view.UserData(*userData);
|
|
179
179
|
});
|
|
180
180
|
|
|
181
|
-
if
|
|
181
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::CreateVisual != &BaseSafeAreaView<TUserData>::CreateVisual) {
|
|
182
182
|
compBuilder.SetCreateVisualHandler([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
183
183
|
auto userData = view.UserData().as<TUserData>();
|
|
184
184
|
return userData->CreateVisual(view);
|
|
@@ -198,7 +198,7 @@ void RegisterSwitchNativeComponent(
|
|
|
198
198
|
userData->UpdateEventEmitter(std::make_shared<SwitchEventEmitter>(eventEmitter));
|
|
199
199
|
});
|
|
200
200
|
|
|
201
|
-
if
|
|
201
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::FinalizeUpdate != &BaseSwitch<TUserData>::FinalizeUpdate) {
|
|
202
202
|
builder.SetFinalizeUpdateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
203
203
|
winrt::Microsoft::ReactNative::ComponentViewUpdateMask mask) noexcept {
|
|
204
204
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -206,7 +206,7 @@ void RegisterSwitchNativeComponent(
|
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
if
|
|
209
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UpdateState != &BaseSwitch<TUserData>::UpdateState) {
|
|
210
210
|
builder.SetUpdateStateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
211
211
|
const winrt::Microsoft::ReactNative::IComponentState &newState) noexcept {
|
|
212
212
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -220,7 +220,7 @@ void RegisterSwitchNativeComponent(
|
|
|
220
220
|
userData->HandleCommand(view, args);
|
|
221
221
|
});
|
|
222
222
|
|
|
223
|
-
if
|
|
223
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::MountChildComponentView != &BaseSwitch<TUserData>::MountChildComponentView) {
|
|
224
224
|
builder.SetMountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
225
225
|
const winrt::Microsoft::ReactNative::MountChildComponentViewArgs &args) noexcept {
|
|
226
226
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -228,7 +228,7 @@ void RegisterSwitchNativeComponent(
|
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
if
|
|
231
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UnmountChildComponentView != &BaseSwitch<TUserData>::UnmountChildComponentView) {
|
|
232
232
|
builder.SetUnmountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
233
233
|
const winrt::Microsoft::ReactNative::UnmountChildComponentViewArgs &args) noexcept {
|
|
234
234
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -238,13 +238,13 @@ void RegisterSwitchNativeComponent(
|
|
|
238
238
|
|
|
239
239
|
compBuilder.SetViewComponentViewInitializer([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
240
240
|
auto userData = winrt::make_self<TUserData>();
|
|
241
|
-
if
|
|
241
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::Initialize != &BaseSwitch<TUserData>::Initialize) {
|
|
242
242
|
userData->Initialize(view);
|
|
243
243
|
}
|
|
244
244
|
view.UserData(*userData);
|
|
245
245
|
});
|
|
246
246
|
|
|
247
|
-
if
|
|
247
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::CreateVisual != &BaseSwitch<TUserData>::CreateVisual) {
|
|
248
248
|
compBuilder.SetCreateVisualHandler([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
249
249
|
auto userData = view.UserData().as<TUserData>();
|
|
250
250
|
return userData->CreateVisual(view);
|
|
@@ -141,7 +141,7 @@ void RegisterUnimplementedNativeViewNativeComponent(
|
|
|
141
141
|
userData->UpdateEventEmitter(std::make_shared<UnimplementedNativeViewEventEmitter>(eventEmitter));
|
|
142
142
|
});
|
|
143
143
|
|
|
144
|
-
if
|
|
144
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::FinalizeUpdate != &BaseUnimplementedNativeView<TUserData>::FinalizeUpdate) {
|
|
145
145
|
builder.SetFinalizeUpdateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
146
146
|
winrt::Microsoft::ReactNative::ComponentViewUpdateMask mask) noexcept {
|
|
147
147
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -149,7 +149,7 @@ void RegisterUnimplementedNativeViewNativeComponent(
|
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
if
|
|
152
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UpdateState != &BaseUnimplementedNativeView<TUserData>::UpdateState) {
|
|
153
153
|
builder.SetUpdateStateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
154
154
|
const winrt::Microsoft::ReactNative::IComponentState &newState) noexcept {
|
|
155
155
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -157,7 +157,7 @@ void RegisterUnimplementedNativeViewNativeComponent(
|
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
if
|
|
160
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::MountChildComponentView != &BaseUnimplementedNativeView<TUserData>::MountChildComponentView) {
|
|
161
161
|
builder.SetMountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
162
162
|
const winrt::Microsoft::ReactNative::MountChildComponentViewArgs &args) noexcept {
|
|
163
163
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -165,7 +165,7 @@ void RegisterUnimplementedNativeViewNativeComponent(
|
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
if
|
|
168
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UnmountChildComponentView != &BaseUnimplementedNativeView<TUserData>::UnmountChildComponentView) {
|
|
169
169
|
builder.SetUnmountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
170
170
|
const winrt::Microsoft::ReactNative::UnmountChildComponentViewArgs &args) noexcept {
|
|
171
171
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -175,13 +175,13 @@ void RegisterUnimplementedNativeViewNativeComponent(
|
|
|
175
175
|
|
|
176
176
|
compBuilder.SetViewComponentViewInitializer([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
177
177
|
auto userData = winrt::make_self<TUserData>();
|
|
178
|
-
if
|
|
178
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::Initialize != &BaseUnimplementedNativeView<TUserData>::Initialize) {
|
|
179
179
|
userData->Initialize(view);
|
|
180
180
|
}
|
|
181
181
|
view.UserData(*userData);
|
|
182
182
|
});
|
|
183
183
|
|
|
184
|
-
if
|
|
184
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::CreateVisual != &BaseUnimplementedNativeView<TUserData>::CreateVisual) {
|
|
185
185
|
compBuilder.SetCreateVisualHandler([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
186
186
|
auto userData = view.UserData().as<TUserData>();
|
|
187
187
|
return userData->CreateVisual(view);
|
package/index.windows.js
CHANGED
|
@@ -48,6 +48,7 @@ import typeof TouchableNativeFeedback from './Libraries/Components/Touchable/Tou
|
|
|
48
48
|
import typeof TouchableOpacity from './Libraries/Components/Touchable/TouchableOpacity';
|
|
49
49
|
import typeof TouchableWithoutFeedback from './Libraries/Components/Touchable/TouchableWithoutFeedback';
|
|
50
50
|
import typeof View from './Libraries/Components/View/View';
|
|
51
|
+
import typeof RegisterCallableModule from './Libraries/Core/registerCallableModule';
|
|
51
52
|
import typeof NativeEventEmitter from './Libraries/EventEmitter/NativeEventEmitter';
|
|
52
53
|
import typeof RCTDeviceEventEmitter from './Libraries/EventEmitter/RCTDeviceEventEmitter';
|
|
53
54
|
import typeof RCTNativeAppEventEmitter from './Libraries/EventEmitter/RCTNativeAppEventEmitter';
|
|
@@ -107,6 +108,9 @@ const invariant = require('invariant');
|
|
|
107
108
|
export type {HostComponent, HostInstance};
|
|
108
109
|
|
|
109
110
|
module.exports = {
|
|
111
|
+
get registerCallableModule(): RegisterCallableModule {
|
|
112
|
+
return require('./Libraries/Core/registerCallableModule').default;
|
|
113
|
+
},
|
|
110
114
|
// Components
|
|
111
115
|
get AccessibilityInfo(): AccessibilityInfo {
|
|
112
116
|
return require('./Libraries/Components/AccessibilityInfo/AccessibilityInfo')
|
|
@@ -286,7 +290,6 @@ module.exports = {
|
|
|
286
290
|
get NativeEventEmitter(): NativeEventEmitter {
|
|
287
291
|
return require('./Libraries/EventEmitter/NativeEventEmitter').default;
|
|
288
292
|
},
|
|
289
|
-
// $FlowFixMe[value-as-type]
|
|
290
293
|
get Networking(): Networking {
|
|
291
294
|
return require('./Libraries/Network/RCTNetworking').default;
|
|
292
295
|
},
|
|
@@ -308,7 +311,6 @@ module.exports = {
|
|
|
308
311
|
);
|
|
309
312
|
return require('./Libraries/PushNotificationIOS/PushNotificationIOS');
|
|
310
313
|
},
|
|
311
|
-
// $FlowFixMe[value-as-type]
|
|
312
314
|
get Settings(): Settings {
|
|
313
315
|
return require('./Libraries/Settings/Settings');
|
|
314
316
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-windows",
|
|
3
|
-
"version": "0.78.
|
|
3
|
+
"version": "0.78.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@react-native-community/cli": "^15.0.0",
|
|
27
27
|
"@react-native-community/cli-platform-android": "^15.0.0",
|
|
28
28
|
"@react-native-community/cli-platform-ios": "^15.0.0",
|
|
29
|
-
"@react-native-windows/cli": "0.78.
|
|
29
|
+
"@react-native-windows/cli": "0.78.3",
|
|
30
30
|
"@react-native/assets": "1.0.0",
|
|
31
31
|
"@react-native/assets-registry": "0.78.0",
|
|
32
32
|
"@react-native/codegen": "0.78.0",
|
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
"promise": "^8.3.0",
|
|
58
58
|
"react-devtools-core": "^6.0.1",
|
|
59
59
|
"react-refresh": "^0.14.0",
|
|
60
|
-
"react-shallow-renderer": "^16.15.0",
|
|
61
60
|
"regenerator-runtime": "^0.13.2",
|
|
62
61
|
"scheduler": "0.25.0",
|
|
63
62
|
"semver": "^7.1.3",
|
|
@@ -68,7 +67,7 @@
|
|
|
68
67
|
"yargs": "^17.6.2"
|
|
69
68
|
},
|
|
70
69
|
"devDependencies": {
|
|
71
|
-
"@react-native-windows/codegen": "0.78.
|
|
70
|
+
"@react-native-windows/codegen": "0.78.2",
|
|
72
71
|
"@react-native/metro-config": "0.78.0-nightly-20241231-a3c8e2137",
|
|
73
72
|
"@rnw-scripts/babel-react-native-config": "0.0.0",
|
|
74
73
|
"@rnw-scripts/eslint-config": "1.2.32",
|