react-native-windows 0.74.35 → 0.74.37
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/Microsoft.ReactNative/Fabric/AbiViewProps.cpp +8 -10
- package/Microsoft.ReactNative/Fabric/ComponentView.cpp +4 -1
- package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.cpp +1 -1
- package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.cpp +2 -2
- package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.cpp +5 -2
- package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.h +2 -1
- package/Microsoft.ReactNative/Fabric/Composition/TooltipService.cpp +41 -37
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/graphics/HostPlatformColor.h +3 -8
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/graphics/PlatformColorParser.h +0 -1
- package/Microsoft.ReactNative.Cxx/NativeModules.h +9 -0
- package/PropertySheets/Generated/PackageVersion.g.props +3 -3
- package/Shared/Networking/WinRTWebSocketResource.cpp +371 -6
- package/Shared/Networking/WinRTWebSocketResource.h +118 -0
- 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 +6 -6
- 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/package.json +3 -3
|
@@ -135,7 +135,7 @@ void RegisterAndroidHorizontalScrollContentViewNativeComponent(
|
|
|
135
135
|
userData->UpdateEventEmitter(std::make_shared<AndroidHorizontalScrollContentViewEventEmitter>(eventEmitter));
|
|
136
136
|
});
|
|
137
137
|
|
|
138
|
-
if
|
|
138
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::FinalizeUpdate != &BaseAndroidHorizontalScrollContentView<TUserData>::FinalizeUpdate) {
|
|
139
139
|
builder.SetFinalizeUpdateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
140
140
|
winrt::Microsoft::ReactNative::ComponentViewUpdateMask mask) noexcept {
|
|
141
141
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -143,7 +143,7 @@ void RegisterAndroidHorizontalScrollContentViewNativeComponent(
|
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
if
|
|
146
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UpdateState != &BaseAndroidHorizontalScrollContentView<TUserData>::UpdateState) {
|
|
147
147
|
builder.SetUpdateStateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
148
148
|
const winrt::Microsoft::ReactNative::IComponentState &newState) noexcept {
|
|
149
149
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -151,7 +151,7 @@ void RegisterAndroidHorizontalScrollContentViewNativeComponent(
|
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
if
|
|
154
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::MountChildComponentView != &BaseAndroidHorizontalScrollContentView<TUserData>::MountChildComponentView) {
|
|
155
155
|
builder.SetMountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
156
156
|
const winrt::Microsoft::ReactNative::MountChildComponentViewArgs &args) noexcept {
|
|
157
157
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -159,7 +159,7 @@ void RegisterAndroidHorizontalScrollContentViewNativeComponent(
|
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
if
|
|
162
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UnmountChildComponentView != &BaseAndroidHorizontalScrollContentView<TUserData>::UnmountChildComponentView) {
|
|
163
163
|
builder.SetUnmountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
164
164
|
const winrt::Microsoft::ReactNative::UnmountChildComponentViewArgs &args) noexcept {
|
|
165
165
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -169,13 +169,13 @@ void RegisterAndroidHorizontalScrollContentViewNativeComponent(
|
|
|
169
169
|
|
|
170
170
|
compBuilder.SetViewComponentViewInitializer([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
171
171
|
auto userData = winrt::make_self<TUserData>();
|
|
172
|
-
if
|
|
172
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::Initialize != &BaseAndroidHorizontalScrollContentView<TUserData>::Initialize) {
|
|
173
173
|
userData->Initialize(view);
|
|
174
174
|
}
|
|
175
175
|
view.UserData(*userData);
|
|
176
176
|
});
|
|
177
177
|
|
|
178
|
-
if
|
|
178
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::CreateVisual != &BaseAndroidHorizontalScrollContentView<TUserData>::CreateVisual) {
|
|
179
179
|
compBuilder.SetCreateVisualHandler([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
180
180
|
auto userData = view.UserData().as<TUserData>();
|
|
181
181
|
return userData->CreateVisual(view);
|
|
@@ -159,7 +159,7 @@ void RegisterAndroidProgressBarNativeComponent(
|
|
|
159
159
|
userData->UpdateEventEmitter(std::make_shared<AndroidProgressBarEventEmitter>(eventEmitter));
|
|
160
160
|
});
|
|
161
161
|
|
|
162
|
-
if
|
|
162
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::FinalizeUpdate != &BaseAndroidProgressBar<TUserData>::FinalizeUpdate) {
|
|
163
163
|
builder.SetFinalizeUpdateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
164
164
|
winrt::Microsoft::ReactNative::ComponentViewUpdateMask mask) noexcept {
|
|
165
165
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -167,7 +167,7 @@ void RegisterAndroidProgressBarNativeComponent(
|
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
if
|
|
170
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UpdateState != &BaseAndroidProgressBar<TUserData>::UpdateState) {
|
|
171
171
|
builder.SetUpdateStateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
172
172
|
const winrt::Microsoft::ReactNative::IComponentState &newState) noexcept {
|
|
173
173
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -175,7 +175,7 @@ void RegisterAndroidProgressBarNativeComponent(
|
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
if
|
|
178
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::MountChildComponentView != &BaseAndroidProgressBar<TUserData>::MountChildComponentView) {
|
|
179
179
|
builder.SetMountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
180
180
|
const winrt::Microsoft::ReactNative::MountChildComponentViewArgs &args) noexcept {
|
|
181
181
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -183,7 +183,7 @@ void RegisterAndroidProgressBarNativeComponent(
|
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
if
|
|
186
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UnmountChildComponentView != &BaseAndroidProgressBar<TUserData>::UnmountChildComponentView) {
|
|
187
187
|
builder.SetUnmountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
188
188
|
const winrt::Microsoft::ReactNative::UnmountChildComponentViewArgs &args) noexcept {
|
|
189
189
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -193,13 +193,13 @@ void RegisterAndroidProgressBarNativeComponent(
|
|
|
193
193
|
|
|
194
194
|
compBuilder.SetViewComponentViewInitializer([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
195
195
|
auto userData = winrt::make_self<TUserData>();
|
|
196
|
-
if
|
|
196
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::Initialize != &BaseAndroidProgressBar<TUserData>::Initialize) {
|
|
197
197
|
userData->Initialize(view);
|
|
198
198
|
}
|
|
199
199
|
view.UserData(*userData);
|
|
200
200
|
});
|
|
201
201
|
|
|
202
|
-
if
|
|
202
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::CreateVisual != &BaseAndroidProgressBar<TUserData>::CreateVisual) {
|
|
203
203
|
compBuilder.SetCreateVisualHandler([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
204
204
|
auto userData = view.UserData().as<TUserData>();
|
|
205
205
|
return userData->CreateVisual(view);
|
|
@@ -179,7 +179,7 @@ void RegisterAndroidSwipeRefreshLayoutNativeComponent(
|
|
|
179
179
|
userData->UpdateEventEmitter(std::make_shared<AndroidSwipeRefreshLayoutEventEmitter>(eventEmitter));
|
|
180
180
|
});
|
|
181
181
|
|
|
182
|
-
if
|
|
182
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::FinalizeUpdate != &BaseAndroidSwipeRefreshLayout<TUserData>::FinalizeUpdate) {
|
|
183
183
|
builder.SetFinalizeUpdateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
184
184
|
winrt::Microsoft::ReactNative::ComponentViewUpdateMask mask) noexcept {
|
|
185
185
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -187,7 +187,7 @@ void RegisterAndroidSwipeRefreshLayoutNativeComponent(
|
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
if
|
|
190
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UpdateState != &BaseAndroidSwipeRefreshLayout<TUserData>::UpdateState) {
|
|
191
191
|
builder.SetUpdateStateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
192
192
|
const winrt::Microsoft::ReactNative::IComponentState &newState) noexcept {
|
|
193
193
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -201,7 +201,7 @@ void RegisterAndroidSwipeRefreshLayoutNativeComponent(
|
|
|
201
201
|
userData->HandleCommand(view, args);
|
|
202
202
|
});
|
|
203
203
|
|
|
204
|
-
if
|
|
204
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::MountChildComponentView != &BaseAndroidSwipeRefreshLayout<TUserData>::MountChildComponentView) {
|
|
205
205
|
builder.SetMountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
206
206
|
const winrt::Microsoft::ReactNative::MountChildComponentViewArgs &args) noexcept {
|
|
207
207
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -209,7 +209,7 @@ void RegisterAndroidSwipeRefreshLayoutNativeComponent(
|
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
if
|
|
212
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UnmountChildComponentView != &BaseAndroidSwipeRefreshLayout<TUserData>::UnmountChildComponentView) {
|
|
213
213
|
builder.SetUnmountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
214
214
|
const winrt::Microsoft::ReactNative::UnmountChildComponentViewArgs &args) noexcept {
|
|
215
215
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -219,13 +219,13 @@ void RegisterAndroidSwipeRefreshLayoutNativeComponent(
|
|
|
219
219
|
|
|
220
220
|
compBuilder.SetViewComponentViewInitializer([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
221
221
|
auto userData = winrt::make_self<TUserData>();
|
|
222
|
-
if
|
|
222
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::Initialize != &BaseAndroidSwipeRefreshLayout<TUserData>::Initialize) {
|
|
223
223
|
userData->Initialize(view);
|
|
224
224
|
}
|
|
225
225
|
view.UserData(*userData);
|
|
226
226
|
});
|
|
227
227
|
|
|
228
|
-
if
|
|
228
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::CreateVisual != &BaseAndroidSwipeRefreshLayout<TUserData>::CreateVisual) {
|
|
229
229
|
compBuilder.SetCreateVisualHandler([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
230
230
|
auto userData = view.UserData().as<TUserData>();
|
|
231
231
|
return userData->CreateVisual(view);
|
|
@@ -196,7 +196,7 @@ void RegisterAndroidSwitchNativeComponent(
|
|
|
196
196
|
userData->UpdateEventEmitter(std::make_shared<AndroidSwitchEventEmitter>(eventEmitter));
|
|
197
197
|
});
|
|
198
198
|
|
|
199
|
-
if
|
|
199
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::FinalizeUpdate != &BaseAndroidSwitch<TUserData>::FinalizeUpdate) {
|
|
200
200
|
builder.SetFinalizeUpdateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
201
201
|
winrt::Microsoft::ReactNative::ComponentViewUpdateMask mask) noexcept {
|
|
202
202
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -204,7 +204,7 @@ void RegisterAndroidSwitchNativeComponent(
|
|
|
204
204
|
});
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
if
|
|
207
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UpdateState != &BaseAndroidSwitch<TUserData>::UpdateState) {
|
|
208
208
|
builder.SetUpdateStateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
209
209
|
const winrt::Microsoft::ReactNative::IComponentState &newState) noexcept {
|
|
210
210
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -218,7 +218,7 @@ void RegisterAndroidSwitchNativeComponent(
|
|
|
218
218
|
userData->HandleCommand(view, args);
|
|
219
219
|
});
|
|
220
220
|
|
|
221
|
-
if
|
|
221
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::MountChildComponentView != &BaseAndroidSwitch<TUserData>::MountChildComponentView) {
|
|
222
222
|
builder.SetMountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
223
223
|
const winrt::Microsoft::ReactNative::MountChildComponentViewArgs &args) noexcept {
|
|
224
224
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -226,7 +226,7 @@ void RegisterAndroidSwitchNativeComponent(
|
|
|
226
226
|
});
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
if
|
|
229
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UnmountChildComponentView != &BaseAndroidSwitch<TUserData>::UnmountChildComponentView) {
|
|
230
230
|
builder.SetUnmountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
231
231
|
const winrt::Microsoft::ReactNative::UnmountChildComponentViewArgs &args) noexcept {
|
|
232
232
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -236,13 +236,13 @@ void RegisterAndroidSwitchNativeComponent(
|
|
|
236
236
|
|
|
237
237
|
compBuilder.SetViewComponentViewInitializer([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
238
238
|
auto userData = winrt::make_self<TUserData>();
|
|
239
|
-
if
|
|
239
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::Initialize != &BaseAndroidSwitch<TUserData>::Initialize) {
|
|
240
240
|
userData->Initialize(view);
|
|
241
241
|
}
|
|
242
242
|
view.UserData(*userData);
|
|
243
243
|
});
|
|
244
244
|
|
|
245
|
-
if
|
|
245
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::CreateVisual != &BaseAndroidSwitch<TUserData>::CreateVisual) {
|
|
246
246
|
compBuilder.SetCreateVisualHandler([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
247
247
|
auto userData = view.UserData().as<TUserData>();
|
|
248
248
|
return userData->CreateVisual(view);
|
|
@@ -163,7 +163,7 @@ void RegisterDebuggingOverlayNativeComponent(
|
|
|
163
163
|
userData->UpdateEventEmitter(std::make_shared<DebuggingOverlayEventEmitter>(eventEmitter));
|
|
164
164
|
});
|
|
165
165
|
|
|
166
|
-
if
|
|
166
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::FinalizeUpdate != &BaseDebuggingOverlay<TUserData>::FinalizeUpdate) {
|
|
167
167
|
builder.SetFinalizeUpdateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
168
168
|
winrt::Microsoft::ReactNative::ComponentViewUpdateMask mask) noexcept {
|
|
169
169
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -171,7 +171,7 @@ void RegisterDebuggingOverlayNativeComponent(
|
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
if
|
|
174
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UpdateState != &BaseDebuggingOverlay<TUserData>::UpdateState) {
|
|
175
175
|
builder.SetUpdateStateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
176
176
|
const winrt::Microsoft::ReactNative::IComponentState &newState) noexcept {
|
|
177
177
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -185,7 +185,7 @@ void RegisterDebuggingOverlayNativeComponent(
|
|
|
185
185
|
userData->HandleCommand(view, args);
|
|
186
186
|
});
|
|
187
187
|
|
|
188
|
-
if
|
|
188
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::MountChildComponentView != &BaseDebuggingOverlay<TUserData>::MountChildComponentView) {
|
|
189
189
|
builder.SetMountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
190
190
|
const winrt::Microsoft::ReactNative::MountChildComponentViewArgs &args) noexcept {
|
|
191
191
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -193,7 +193,7 @@ void RegisterDebuggingOverlayNativeComponent(
|
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
if
|
|
196
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UnmountChildComponentView != &BaseDebuggingOverlay<TUserData>::UnmountChildComponentView) {
|
|
197
197
|
builder.SetUnmountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
198
198
|
const winrt::Microsoft::ReactNative::UnmountChildComponentViewArgs &args) noexcept {
|
|
199
199
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -203,13 +203,13 @@ void RegisterDebuggingOverlayNativeComponent(
|
|
|
203
203
|
|
|
204
204
|
compBuilder.SetViewComponentViewInitializer([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
205
205
|
auto userData = winrt::make_self<TUserData>();
|
|
206
|
-
if
|
|
206
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::Initialize != &BaseDebuggingOverlay<TUserData>::Initialize) {
|
|
207
207
|
userData->Initialize(view);
|
|
208
208
|
}
|
|
209
209
|
view.UserData(*userData);
|
|
210
210
|
});
|
|
211
211
|
|
|
212
|
-
if
|
|
212
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::CreateVisual != &BaseDebuggingOverlay<TUserData>::CreateVisual) {
|
|
213
213
|
compBuilder.SetCreateVisualHandler([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
214
214
|
auto userData = view.UserData().as<TUserData>();
|
|
215
215
|
return userData->CreateVisual(view);
|
|
@@ -135,7 +135,7 @@ void RegisterInputAccessoryNativeComponent(
|
|
|
135
135
|
userData->UpdateEventEmitter(std::make_shared<InputAccessoryEventEmitter>(eventEmitter));
|
|
136
136
|
});
|
|
137
137
|
|
|
138
|
-
if
|
|
138
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::FinalizeUpdate != &BaseInputAccessory<TUserData>::FinalizeUpdate) {
|
|
139
139
|
builder.SetFinalizeUpdateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
140
140
|
winrt::Microsoft::ReactNative::ComponentViewUpdateMask mask) noexcept {
|
|
141
141
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -143,7 +143,7 @@ void RegisterInputAccessoryNativeComponent(
|
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
if
|
|
146
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UpdateState != &BaseInputAccessory<TUserData>::UpdateState) {
|
|
147
147
|
builder.SetUpdateStateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
148
148
|
const winrt::Microsoft::ReactNative::IComponentState &newState) noexcept {
|
|
149
149
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -151,7 +151,7 @@ void RegisterInputAccessoryNativeComponent(
|
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
if
|
|
154
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::MountChildComponentView != &BaseInputAccessory<TUserData>::MountChildComponentView) {
|
|
155
155
|
builder.SetMountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
156
156
|
const winrt::Microsoft::ReactNative::MountChildComponentViewArgs &args) noexcept {
|
|
157
157
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -159,7 +159,7 @@ void RegisterInputAccessoryNativeComponent(
|
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
if
|
|
162
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UnmountChildComponentView != &BaseInputAccessory<TUserData>::UnmountChildComponentView) {
|
|
163
163
|
builder.SetUnmountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
164
164
|
const winrt::Microsoft::ReactNative::UnmountChildComponentViewArgs &args) noexcept {
|
|
165
165
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -169,13 +169,13 @@ void RegisterInputAccessoryNativeComponent(
|
|
|
169
169
|
|
|
170
170
|
compBuilder.SetViewComponentViewInitializer([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
171
171
|
auto userData = winrt::make_self<TUserData>();
|
|
172
|
-
if
|
|
172
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::Initialize != &BaseInputAccessory<TUserData>::Initialize) {
|
|
173
173
|
userData->Initialize(view);
|
|
174
174
|
}
|
|
175
175
|
view.UserData(*userData);
|
|
176
176
|
});
|
|
177
177
|
|
|
178
|
-
if
|
|
178
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::CreateVisual != &BaseInputAccessory<TUserData>::CreateVisual) {
|
|
179
179
|
compBuilder.SetCreateVisualHandler([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
180
180
|
auto userData = view.UserData().as<TUserData>();
|
|
181
181
|
return userData->CreateVisual(view);
|
|
@@ -214,7 +214,7 @@ void RegisterModalHostViewNativeComponent(
|
|
|
214
214
|
userData->UpdateEventEmitter(std::make_shared<ModalHostViewEventEmitter>(eventEmitter));
|
|
215
215
|
});
|
|
216
216
|
|
|
217
|
-
if
|
|
217
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::FinalizeUpdate != &BaseModalHostView<TUserData>::FinalizeUpdate) {
|
|
218
218
|
builder.SetFinalizeUpdateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
219
219
|
winrt::Microsoft::ReactNative::ComponentViewUpdateMask mask) noexcept {
|
|
220
220
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -222,7 +222,7 @@ void RegisterModalHostViewNativeComponent(
|
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
if
|
|
225
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UpdateState != &BaseModalHostView<TUserData>::UpdateState) {
|
|
226
226
|
builder.SetUpdateStateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
227
227
|
const winrt::Microsoft::ReactNative::IComponentState &newState) noexcept {
|
|
228
228
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -230,7 +230,7 @@ void RegisterModalHostViewNativeComponent(
|
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
if
|
|
233
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::MountChildComponentView != &BaseModalHostView<TUserData>::MountChildComponentView) {
|
|
234
234
|
builder.SetMountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
235
235
|
const winrt::Microsoft::ReactNative::MountChildComponentViewArgs &args) noexcept {
|
|
236
236
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -238,7 +238,7 @@ void RegisterModalHostViewNativeComponent(
|
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
if
|
|
241
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UnmountChildComponentView != &BaseModalHostView<TUserData>::UnmountChildComponentView) {
|
|
242
242
|
builder.SetUnmountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
243
243
|
const winrt::Microsoft::ReactNative::UnmountChildComponentViewArgs &args) noexcept {
|
|
244
244
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -248,13 +248,13 @@ void RegisterModalHostViewNativeComponent(
|
|
|
248
248
|
|
|
249
249
|
compBuilder.SetViewComponentViewInitializer([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
250
250
|
auto userData = winrt::make_self<TUserData>();
|
|
251
|
-
if
|
|
251
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::Initialize != &BaseModalHostView<TUserData>::Initialize) {
|
|
252
252
|
userData->Initialize(view);
|
|
253
253
|
}
|
|
254
254
|
view.UserData(*userData);
|
|
255
255
|
});
|
|
256
256
|
|
|
257
|
-
if
|
|
257
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::CreateVisual != &BaseModalHostView<TUserData>::CreateVisual) {
|
|
258
258
|
compBuilder.SetCreateVisualHandler([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
259
259
|
auto userData = view.UserData().as<TUserData>();
|
|
260
260
|
return userData->CreateVisual(view);
|
|
@@ -175,7 +175,7 @@ void RegisterPullToRefreshViewNativeComponent(
|
|
|
175
175
|
userData->UpdateEventEmitter(std::make_shared<PullToRefreshViewEventEmitter>(eventEmitter));
|
|
176
176
|
});
|
|
177
177
|
|
|
178
|
-
if
|
|
178
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::FinalizeUpdate != &BasePullToRefreshView<TUserData>::FinalizeUpdate) {
|
|
179
179
|
builder.SetFinalizeUpdateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
180
180
|
winrt::Microsoft::ReactNative::ComponentViewUpdateMask mask) noexcept {
|
|
181
181
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -183,7 +183,7 @@ void RegisterPullToRefreshViewNativeComponent(
|
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
if
|
|
186
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UpdateState != &BasePullToRefreshView<TUserData>::UpdateState) {
|
|
187
187
|
builder.SetUpdateStateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
188
188
|
const winrt::Microsoft::ReactNative::IComponentState &newState) noexcept {
|
|
189
189
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -197,7 +197,7 @@ void RegisterPullToRefreshViewNativeComponent(
|
|
|
197
197
|
userData->HandleCommand(view, args);
|
|
198
198
|
});
|
|
199
199
|
|
|
200
|
-
if
|
|
200
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::MountChildComponentView != &BasePullToRefreshView<TUserData>::MountChildComponentView) {
|
|
201
201
|
builder.SetMountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
202
202
|
const winrt::Microsoft::ReactNative::MountChildComponentViewArgs &args) noexcept {
|
|
203
203
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -205,7 +205,7 @@ void RegisterPullToRefreshViewNativeComponent(
|
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
if
|
|
208
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UnmountChildComponentView != &BasePullToRefreshView<TUserData>::UnmountChildComponentView) {
|
|
209
209
|
builder.SetUnmountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
210
210
|
const winrt::Microsoft::ReactNative::UnmountChildComponentViewArgs &args) noexcept {
|
|
211
211
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -215,13 +215,13 @@ void RegisterPullToRefreshViewNativeComponent(
|
|
|
215
215
|
|
|
216
216
|
compBuilder.SetViewComponentViewInitializer([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
217
217
|
auto userData = winrt::make_self<TUserData>();
|
|
218
|
-
if
|
|
218
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::Initialize != &BasePullToRefreshView<TUserData>::Initialize) {
|
|
219
219
|
userData->Initialize(view);
|
|
220
220
|
}
|
|
221
221
|
view.UserData(*userData);
|
|
222
222
|
});
|
|
223
223
|
|
|
224
|
-
if
|
|
224
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::CreateVisual != &BasePullToRefreshView<TUserData>::CreateVisual) {
|
|
225
225
|
compBuilder.SetCreateVisualHandler([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
226
226
|
auto userData = view.UserData().as<TUserData>();
|
|
227
227
|
return userData->CreateVisual(view);
|
|
@@ -132,7 +132,7 @@ void RegisterSafeAreaViewNativeComponent(
|
|
|
132
132
|
userData->UpdateEventEmitter(std::make_shared<SafeAreaViewEventEmitter>(eventEmitter));
|
|
133
133
|
});
|
|
134
134
|
|
|
135
|
-
if
|
|
135
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::FinalizeUpdate != &BaseSafeAreaView<TUserData>::FinalizeUpdate) {
|
|
136
136
|
builder.SetFinalizeUpdateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
137
137
|
winrt::Microsoft::ReactNative::ComponentViewUpdateMask mask) noexcept {
|
|
138
138
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -140,7 +140,7 @@ void RegisterSafeAreaViewNativeComponent(
|
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
if
|
|
143
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UpdateState != &BaseSafeAreaView<TUserData>::UpdateState) {
|
|
144
144
|
builder.SetUpdateStateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
145
145
|
const winrt::Microsoft::ReactNative::IComponentState &newState) noexcept {
|
|
146
146
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -148,7 +148,7 @@ void RegisterSafeAreaViewNativeComponent(
|
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
if
|
|
151
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::MountChildComponentView != &BaseSafeAreaView<TUserData>::MountChildComponentView) {
|
|
152
152
|
builder.SetMountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
153
153
|
const winrt::Microsoft::ReactNative::MountChildComponentViewArgs &args) noexcept {
|
|
154
154
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -156,7 +156,7 @@ void RegisterSafeAreaViewNativeComponent(
|
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
if
|
|
159
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UnmountChildComponentView != &BaseSafeAreaView<TUserData>::UnmountChildComponentView) {
|
|
160
160
|
builder.SetUnmountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
161
161
|
const winrt::Microsoft::ReactNative::UnmountChildComponentViewArgs &args) noexcept {
|
|
162
162
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -166,13 +166,13 @@ void RegisterSafeAreaViewNativeComponent(
|
|
|
166
166
|
|
|
167
167
|
compBuilder.SetViewComponentViewInitializer([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
168
168
|
auto userData = winrt::make_self<TUserData>();
|
|
169
|
-
if
|
|
169
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::Initialize != &BaseSafeAreaView<TUserData>::Initialize) {
|
|
170
170
|
userData->Initialize(view);
|
|
171
171
|
}
|
|
172
172
|
view.UserData(*userData);
|
|
173
173
|
});
|
|
174
174
|
|
|
175
|
-
if
|
|
175
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::CreateVisual != &BaseSafeAreaView<TUserData>::CreateVisual) {
|
|
176
176
|
compBuilder.SetCreateVisualHandler([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
177
177
|
auto userData = view.UserData().as<TUserData>();
|
|
178
178
|
return userData->CreateVisual(view);
|
|
@@ -192,7 +192,7 @@ void RegisterSwitchNativeComponent(
|
|
|
192
192
|
userData->UpdateEventEmitter(std::make_shared<SwitchEventEmitter>(eventEmitter));
|
|
193
193
|
});
|
|
194
194
|
|
|
195
|
-
if
|
|
195
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::FinalizeUpdate != &BaseSwitch<TUserData>::FinalizeUpdate) {
|
|
196
196
|
builder.SetFinalizeUpdateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
197
197
|
winrt::Microsoft::ReactNative::ComponentViewUpdateMask mask) noexcept {
|
|
198
198
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -200,7 +200,7 @@ void RegisterSwitchNativeComponent(
|
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
if
|
|
203
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UpdateState != &BaseSwitch<TUserData>::UpdateState) {
|
|
204
204
|
builder.SetUpdateStateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
205
205
|
const winrt::Microsoft::ReactNative::IComponentState &newState) noexcept {
|
|
206
206
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -214,7 +214,7 @@ void RegisterSwitchNativeComponent(
|
|
|
214
214
|
userData->HandleCommand(view, args);
|
|
215
215
|
});
|
|
216
216
|
|
|
217
|
-
if
|
|
217
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::MountChildComponentView != &BaseSwitch<TUserData>::MountChildComponentView) {
|
|
218
218
|
builder.SetMountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
219
219
|
const winrt::Microsoft::ReactNative::MountChildComponentViewArgs &args) noexcept {
|
|
220
220
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -222,7 +222,7 @@ void RegisterSwitchNativeComponent(
|
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
if
|
|
225
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UnmountChildComponentView != &BaseSwitch<TUserData>::UnmountChildComponentView) {
|
|
226
226
|
builder.SetUnmountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
227
227
|
const winrt::Microsoft::ReactNative::UnmountChildComponentViewArgs &args) noexcept {
|
|
228
228
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -232,13 +232,13 @@ void RegisterSwitchNativeComponent(
|
|
|
232
232
|
|
|
233
233
|
compBuilder.SetViewComponentViewInitializer([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
234
234
|
auto userData = winrt::make_self<TUserData>();
|
|
235
|
-
if
|
|
235
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::Initialize != &BaseSwitch<TUserData>::Initialize) {
|
|
236
236
|
userData->Initialize(view);
|
|
237
237
|
}
|
|
238
238
|
view.UserData(*userData);
|
|
239
239
|
});
|
|
240
240
|
|
|
241
|
-
if
|
|
241
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::CreateVisual != &BaseSwitch<TUserData>::CreateVisual) {
|
|
242
242
|
compBuilder.SetCreateVisualHandler([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
243
243
|
auto userData = view.UserData().as<TUserData>();
|
|
244
244
|
return userData->CreateVisual(view);
|
|
@@ -135,7 +135,7 @@ void RegisterUnimplementedNativeViewNativeComponent(
|
|
|
135
135
|
userData->UpdateEventEmitter(std::make_shared<UnimplementedNativeViewEventEmitter>(eventEmitter));
|
|
136
136
|
});
|
|
137
137
|
|
|
138
|
-
if
|
|
138
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::FinalizeUpdate != &BaseUnimplementedNativeView<TUserData>::FinalizeUpdate) {
|
|
139
139
|
builder.SetFinalizeUpdateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
140
140
|
winrt::Microsoft::ReactNative::ComponentViewUpdateMask mask) noexcept {
|
|
141
141
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -143,7 +143,7 @@ void RegisterUnimplementedNativeViewNativeComponent(
|
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
if
|
|
146
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UpdateState != &BaseUnimplementedNativeView<TUserData>::UpdateState) {
|
|
147
147
|
builder.SetUpdateStateHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
148
148
|
const winrt::Microsoft::ReactNative::IComponentState &newState) noexcept {
|
|
149
149
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -151,7 +151,7 @@ void RegisterUnimplementedNativeViewNativeComponent(
|
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
if
|
|
154
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::MountChildComponentView != &BaseUnimplementedNativeView<TUserData>::MountChildComponentView) {
|
|
155
155
|
builder.SetMountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
156
156
|
const winrt::Microsoft::ReactNative::MountChildComponentViewArgs &args) noexcept {
|
|
157
157
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -159,7 +159,7 @@ void RegisterUnimplementedNativeViewNativeComponent(
|
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
if
|
|
162
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::UnmountChildComponentView != &BaseUnimplementedNativeView<TUserData>::UnmountChildComponentView) {
|
|
163
163
|
builder.SetUnmountChildComponentViewHandler([](const winrt::Microsoft::ReactNative::ComponentView &view,
|
|
164
164
|
const winrt::Microsoft::ReactNative::UnmountChildComponentViewArgs &args) noexcept {
|
|
165
165
|
auto userData = view.UserData().as<TUserData>();
|
|
@@ -169,13 +169,13 @@ void RegisterUnimplementedNativeViewNativeComponent(
|
|
|
169
169
|
|
|
170
170
|
compBuilder.SetViewComponentViewInitializer([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
171
171
|
auto userData = winrt::make_self<TUserData>();
|
|
172
|
-
if
|
|
172
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::Initialize != &BaseUnimplementedNativeView<TUserData>::Initialize) {
|
|
173
173
|
userData->Initialize(view);
|
|
174
174
|
}
|
|
175
175
|
view.UserData(*userData);
|
|
176
176
|
});
|
|
177
177
|
|
|
178
|
-
if
|
|
178
|
+
if CONSTEXPR_SUPPORTED_ON_VIRTUAL_FN_ADDRESS (&TUserData::CreateVisual != &BaseUnimplementedNativeView<TUserData>::CreateVisual) {
|
|
179
179
|
compBuilder.SetCreateVisualHandler([](const winrt::Microsoft::ReactNative::ComponentView &view) noexcept {
|
|
180
180
|
auto userData = view.UserData().as<TUserData>();
|
|
181
181
|
return userData->CreateVisual(view);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-windows",
|
|
3
|
-
"version": "0.74.
|
|
3
|
+
"version": "0.74.37",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@react-native-community/cli": "13.6.9",
|
|
27
27
|
"@react-native-community/cli-platform-android": "13.6.9",
|
|
28
28
|
"@react-native-community/cli-platform-ios": "13.6.9",
|
|
29
|
-
"@react-native-windows/cli": "0.74.
|
|
29
|
+
"@react-native-windows/cli": "0.74.11",
|
|
30
30
|
"@react-native/assets": "1.0.0",
|
|
31
31
|
"@react-native/assets-registry": "0.74.87",
|
|
32
32
|
"@react-native/codegen": "0.74.87",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"yargs": "^17.6.2"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@react-native-windows/codegen": "0.74.
|
|
67
|
+
"@react-native-windows/codegen": "0.74.8",
|
|
68
68
|
"@react-native/metro-config": "0.74.87",
|
|
69
69
|
"@rnw-scripts/babel-react-native-config": "0.0.0",
|
|
70
70
|
"@rnw-scripts/eslint-config": "1.2.9",
|