react-native-windows 0.72.6 → 0.72.8
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/ReactHost/ReactInstanceWin.cpp +12 -6
- package/Microsoft.ReactNative.Managed/packages.lock.json +4 -73
- package/PropertySheets/Generated/PackageVersion.g.props +3 -3
- package/Shared/DevSettings.h +3 -0
- package/Shared/OInstance.cpp +24 -25
- package/codegen/NativeAccessibilityInfoSpec.g.h +2 -1
- package/codegen/NativeAccessibilityManagerSpec.g.h +27 -16
- package/codegen/NativeActionSheetManagerSpec.g.h +42 -26
- package/codegen/NativeAlertManagerSpec.g.h +18 -12
- package/codegen/NativeAnimatedModuleSpec.g.h +17 -6
- package/codegen/NativeAnimatedTurboModuleSpec.g.h +17 -6
- package/codegen/NativeAnimationsDebugModuleSpec.g.h +2 -1
- package/codegen/NativeAppStateSpec.g.h +16 -5
- package/codegen/NativeAppThemeSpec.g.h +24 -13
- package/codegen/NativeAppearanceSpec.g.h +2 -1
- package/codegen/NativeBlobModuleSpec.g.h +10 -4
- package/codegen/NativeBugReportingSpec.g.h +2 -1
- package/codegen/NativeClipboardSpec.g.h +2 -1
- package/codegen/NativeDevLoadingViewSpec.g.h +2 -1
- package/codegen/NativeDevMenuSpec.g.h +2 -1
- package/codegen/NativeDevSettingsSpec.g.h +2 -1
- package/codegen/NativeDevSplitBundleLoaderSpec.g.h +2 -1
- package/codegen/NativeDevToolsSettingsManagerSpec.g.h +2 -1
- package/codegen/NativeDeviceEventManagerSpec.g.h +2 -1
- package/codegen/NativeDeviceInfoSpec.g.h +41 -20
- package/codegen/NativeDialogManagerAndroidSpec.g.h +26 -15
- package/codegen/NativeDialogManagerWindowsSpec.g.h +28 -17
- package/codegen/NativeExceptionsManagerSpec.g.h +27 -16
- package/codegen/NativeFileReaderModuleSpec.g.h +2 -1
- package/codegen/NativeFrameRateLoggerSpec.g.h +10 -4
- package/codegen/NativeHeadlessJsTaskSupportSpec.g.h +2 -1
- package/codegen/NativeI18nManagerSpec.g.h +11 -5
- package/codegen/NativeImageEditorSpec.g.h +37 -16
- package/codegen/NativeImageLoaderAndroidSpec.g.h +18 -7
- package/codegen/NativeImageLoaderIOSSpec.g.h +10 -4
- package/codegen/NativeImageStoreAndroidSpec.g.h +2 -1
- package/codegen/NativeImageStoreIOSSpec.g.h +16 -5
- package/codegen/NativeIntentAndroidSpec.g.h +2 -1
- package/codegen/NativeJSCHeapCaptureSpec.g.h +2 -1
- package/codegen/NativeJSCSamplingProfilerSpec.g.h +2 -1
- package/codegen/NativeKeyboardObserverSpec.g.h +2 -1
- package/codegen/NativeLinkingManagerSpec.g.h +2 -1
- package/codegen/NativeLogBoxSpec.g.h +2 -1
- package/codegen/NativeModalManagerSpec.g.h +2 -1
- package/codegen/NativeNetworkingAndroidSpec.g.h +2 -1
- package/codegen/NativeNetworkingIOSSpec.g.h +16 -10
- package/codegen/NativePerformanceObserverSpec.g.h +23 -12
- package/codegen/NativePerformanceSpec.g.h +12 -6
- package/codegen/NativePermissionsAndroidSpec.g.h +2 -1
- package/codegen/NativePlatformConstantsAndroidSpec.g.h +29 -18
- package/codegen/NativePlatformConstantsIOSSpec.g.h +24 -13
- package/codegen/NativePlatformConstantsWinSpec.g.h +21 -10
- package/codegen/NativePushNotificationManagerIOSSpec.g.h +36 -20
- package/codegen/NativeRedBoxSpec.g.h +2 -1
- package/codegen/NativeSampleTurboModuleSpec.g.h +11 -5
- package/codegen/NativeSegmentFetcherSpec.g.h +2 -1
- package/codegen/NativeSettingsManagerSpec.g.h +9 -3
- package/codegen/NativeShareModuleSpec.g.h +17 -6
- package/codegen/NativeSoundManagerSpec.g.h +2 -1
- package/codegen/NativeSourceCodeSpec.g.h +9 -3
- package/codegen/NativeStatusBarManagerAndroidSpec.g.h +10 -4
- package/codegen/NativeStatusBarManagerIOSSpec.g.h +17 -6
- package/codegen/NativeTimingSpec.g.h +2 -1
- package/codegen/NativeToastAndroidSpec.g.h +13 -7
- package/codegen/NativeUIManagerSpec.g.h +2 -1
- package/codegen/NativeVibrationSpec.g.h +2 -1
- package/codegen/NativeWebSocketModuleSpec.g.h +9 -3
- package/package.json +3 -3
|
@@ -84,6 +84,7 @@
|
|
|
84
84
|
#include <tuple>
|
|
85
85
|
#include "ChakraRuntimeHolder.h"
|
|
86
86
|
|
|
87
|
+
#include <CppRuntimeOptions.h>
|
|
87
88
|
#include <CreateModules.h>
|
|
88
89
|
#include <Utils/Helpers.h>
|
|
89
90
|
#include "CrashManager.h"
|
|
@@ -392,15 +393,17 @@ void ReactInstanceWin::LoadModules(
|
|
|
392
393
|
L"Timing", winrt::Microsoft::ReactNative::MakeTurboModuleProvider<::Microsoft::ReactNative::Timing>());
|
|
393
394
|
#endif
|
|
394
395
|
|
|
395
|
-
registerTurboModule(
|
|
396
|
+
registerTurboModule(
|
|
397
|
+
::Microsoft::React::GetWebSocketTurboModuleName(), ::Microsoft::React::GetWebSocketModuleProvider());
|
|
396
398
|
|
|
397
|
-
|
|
399
|
+
if (!Microsoft::React::GetRuntimeOptionBool("Blob.DisableModule")) {
|
|
400
|
+
registerTurboModule(::Microsoft::React::GetHttpTurboModuleName(), ::Microsoft::React::GetHttpModuleProvider());
|
|
398
401
|
|
|
399
|
-
|
|
400
|
-
::Microsoft::React::GetFileReaderTurboModuleName(), ::Microsoft::React::GetFileReaderModuleProvider());
|
|
402
|
+
registerTurboModule(::Microsoft::React::GetBlobTurboModuleName(), ::Microsoft::React::GetBlobModuleProvider());
|
|
401
403
|
|
|
402
|
-
|
|
403
|
-
|
|
404
|
+
registerTurboModule(
|
|
405
|
+
::Microsoft::React::GetFileReaderTurboModuleName(), ::Microsoft::React::GetFileReaderModuleProvider());
|
|
406
|
+
}
|
|
404
407
|
}
|
|
405
408
|
|
|
406
409
|
//! Initialize() is called from the native queue.
|
|
@@ -550,6 +553,9 @@ void ReactInstanceWin::Initialize() noexcept {
|
|
|
550
553
|
// We need to keep the instance wrapper alive as its destruction shuts down the native queue.
|
|
551
554
|
m_options.TurboModuleProvider->SetReactContext(
|
|
552
555
|
winrt::make<implementation::ReactContext>(Mso::Copy(m_reactContext)));
|
|
556
|
+
auto omitNetCxxPropName = ReactPropertyBagHelper::GetName(nullptr, L"OmitNetworkingCxxModules");
|
|
557
|
+
auto omitNetCxxPropValue = m_options.Properties.Get(omitNetCxxPropName);
|
|
558
|
+
devSettings->omitNetworkingCxxModules = winrt::unbox_value_or(omitNetCxxPropValue, false);
|
|
553
559
|
auto bundleRootPath = devSettings->bundleRootPath;
|
|
554
560
|
auto instanceWrapper = facebook::react::CreateReactInstance(
|
|
555
561
|
std::shared_ptr<facebook::react::Instance>(strongThis->m_instance.Load()),
|
|
@@ -24,21 +24,11 @@
|
|
|
24
24
|
"Microsoft.SourceLink.Common": "1.0.0"
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
|
-
"boost": {
|
|
28
|
-
"type": "Transitive",
|
|
29
|
-
"resolved": "1.76.0",
|
|
30
|
-
"contentHash": "p+w3YvNdXL8Cu9Fzrmexssu0tZbWxuf6ywsQqHjDlKFE5ojXHof1HIyMC3zDLfLnh80dIeFcEUAuR2Asg/XHRA=="
|
|
31
|
-
},
|
|
32
27
|
"Microsoft.Build.Tasks.Git": {
|
|
33
28
|
"type": "Transitive",
|
|
34
29
|
"resolved": "1.0.0",
|
|
35
30
|
"contentHash": "z2fpmmt+1Jfl+ZnBki9nSP08S1/tbEOxFdsK1rSR+LBehIJz1Xv9/6qOOoGNqlwnAGGVGis1Oj6S8Kt9COEYlQ=="
|
|
36
31
|
},
|
|
37
|
-
"Microsoft.JavaScript.Hermes": {
|
|
38
|
-
"type": "Transitive",
|
|
39
|
-
"resolved": "0.1.15",
|
|
40
|
-
"contentHash": "My/u5RvxoymtwWokoweU6iVpuP79w271UjadcmSNqnQ9ESIv00tlVP4sHnIiN3t2lJNDeciyE1EVF4swGPECKQ=="
|
|
41
|
-
},
|
|
42
32
|
"Microsoft.Net.Native.Compiler": {
|
|
43
33
|
"type": "Transitive",
|
|
44
34
|
"resolved": "2.2.7-rel-27913-00",
|
|
@@ -63,35 +53,17 @@
|
|
|
63
53
|
"Microsoft.NETCore.Platforms": {
|
|
64
54
|
"type": "Transitive",
|
|
65
55
|
"resolved": "2.1.0",
|
|
66
|
-
"contentHash": "
|
|
56
|
+
"contentHash": "ok+RPAtESz/9MUXeIEz6Lv5XAGQsaNmEYXMsgVALj4D7kqC8gveKWXWXbufLySR2fWrwZf8smyN5RmHu0e4BHA=="
|
|
67
57
|
},
|
|
68
58
|
"Microsoft.SourceLink.Common": {
|
|
69
59
|
"type": "Transitive",
|
|
70
60
|
"resolved": "1.0.0",
|
|
71
61
|
"contentHash": "G8DuQY8/DK5NN+3jm5wcMcd9QYD90UV7MiLmdljSJixi3U/vNaeBKmmXUqI4DJCOeWizIUEh4ALhSt58mR+5eg=="
|
|
72
62
|
},
|
|
73
|
-
"Microsoft.UI.Xaml": {
|
|
74
|
-
"type": "Transitive",
|
|
75
|
-
"resolved": "2.8.0",
|
|
76
|
-
"contentHash": "vxdHxTr63s5KVtNddMFpgvjBjUH50z7seq/5jLWmmSuf8poxg+sXrywkofUdE8ZstbpO9y3FL/IXXUcPYbeesA==",
|
|
77
|
-
"dependencies": {
|
|
78
|
-
"Microsoft.Web.WebView2": "1.0.1264.42"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"Microsoft.Web.WebView2": {
|
|
82
|
-
"type": "Transitive",
|
|
83
|
-
"resolved": "1.0.1264.42",
|
|
84
|
-
"contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
|
|
85
|
-
},
|
|
86
|
-
"Microsoft.Windows.SDK.BuildTools": {
|
|
87
|
-
"type": "Transitive",
|
|
88
|
-
"resolved": "10.0.22000.194",
|
|
89
|
-
"contentHash": "4L0P3zqut466SIqT3VBeLTNUQTxCBDOrTRymRuROCRJKazcK7ibLz9yAO1nKWRt50ttCj39oAa2Iuz9ZTDmLlg=="
|
|
90
|
-
},
|
|
91
63
|
"NETStandard.Library": {
|
|
92
64
|
"type": "Transitive",
|
|
93
65
|
"resolved": "2.0.3",
|
|
94
|
-
"contentHash": "
|
|
66
|
+
"contentHash": "st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==",
|
|
95
67
|
"dependencies": {
|
|
96
68
|
"Microsoft.NETCore.Platforms": "1.1.0"
|
|
97
69
|
}
|
|
@@ -172,7 +144,6 @@
|
|
|
172
144
|
"folly": {
|
|
173
145
|
"type": "Project",
|
|
174
146
|
"dependencies": {
|
|
175
|
-
"boost": "[1.76.0, )",
|
|
176
147
|
"fmt": "[1.0.0, )"
|
|
177
148
|
}
|
|
178
149
|
},
|
|
@@ -181,18 +152,13 @@
|
|
|
181
152
|
"dependencies": {
|
|
182
153
|
"Common": "[1.0.0, )",
|
|
183
154
|
"Folly": "[1.0.0, )",
|
|
184
|
-
"
|
|
185
|
-
"Microsoft.UI.Xaml": "[2.8.0, )",
|
|
186
|
-
"Microsoft.Windows.SDK.BuildTools": "[10.0.22000.194, )",
|
|
187
|
-
"ReactCommon": "[1.0.0, )",
|
|
188
|
-
"boost": "[1.76.0, )"
|
|
155
|
+
"ReactCommon": "[1.0.0, )"
|
|
189
156
|
}
|
|
190
157
|
},
|
|
191
158
|
"reactcommon": {
|
|
192
159
|
"type": "Project",
|
|
193
160
|
"dependencies": {
|
|
194
|
-
"Folly": "[1.0.0, )"
|
|
195
|
-
"boost": "[1.76.0, )"
|
|
161
|
+
"Folly": "[1.0.0, )"
|
|
196
162
|
}
|
|
197
163
|
}
|
|
198
164
|
},
|
|
@@ -210,11 +176,6 @@
|
|
|
210
176
|
"runtime.win10-arm.Microsoft.NETCore.UniversalWindowsPlatform": "6.2.9"
|
|
211
177
|
}
|
|
212
178
|
},
|
|
213
|
-
"Microsoft.Web.WebView2": {
|
|
214
|
-
"type": "Transitive",
|
|
215
|
-
"resolved": "1.0.1264.42",
|
|
216
|
-
"contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
|
|
217
|
-
},
|
|
218
179
|
"runtime.win10-arm.Microsoft.NETCore.UniversalWindowsPlatform": {
|
|
219
180
|
"type": "Transitive",
|
|
220
181
|
"resolved": "6.2.9",
|
|
@@ -235,11 +196,6 @@
|
|
|
235
196
|
"runtime.win10-arm-aot.Microsoft.NETCore.UniversalWindowsPlatform": "6.2.9"
|
|
236
197
|
}
|
|
237
198
|
},
|
|
238
|
-
"Microsoft.Web.WebView2": {
|
|
239
|
-
"type": "Transitive",
|
|
240
|
-
"resolved": "1.0.1264.42",
|
|
241
|
-
"contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
|
|
242
|
-
},
|
|
243
199
|
"runtime.win10-arm-aot.Microsoft.NETCore.UniversalWindowsPlatform": {
|
|
244
200
|
"type": "Transitive",
|
|
245
201
|
"resolved": "6.2.9",
|
|
@@ -260,11 +216,6 @@
|
|
|
260
216
|
"runtime.win10-arm64-aot.Microsoft.NETCore.UniversalWindowsPlatform": "6.2.9"
|
|
261
217
|
}
|
|
262
218
|
},
|
|
263
|
-
"Microsoft.Web.WebView2": {
|
|
264
|
-
"type": "Transitive",
|
|
265
|
-
"resolved": "1.0.1264.42",
|
|
266
|
-
"contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
|
|
267
|
-
},
|
|
268
219
|
"runtime.win10-arm64-aot.Microsoft.NETCore.UniversalWindowsPlatform": {
|
|
269
220
|
"type": "Transitive",
|
|
270
221
|
"resolved": "6.2.9",
|
|
@@ -285,11 +236,6 @@
|
|
|
285
236
|
"runtime.win10-x64.Microsoft.NETCore.UniversalWindowsPlatform": "6.2.9"
|
|
286
237
|
}
|
|
287
238
|
},
|
|
288
|
-
"Microsoft.Web.WebView2": {
|
|
289
|
-
"type": "Transitive",
|
|
290
|
-
"resolved": "1.0.1264.42",
|
|
291
|
-
"contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
|
|
292
|
-
},
|
|
293
239
|
"runtime.win10-x64.Microsoft.NETCore.UniversalWindowsPlatform": {
|
|
294
240
|
"type": "Transitive",
|
|
295
241
|
"resolved": "6.2.9",
|
|
@@ -310,11 +256,6 @@
|
|
|
310
256
|
"runtime.win10-x64-aot.Microsoft.NETCore.UniversalWindowsPlatform": "6.2.9"
|
|
311
257
|
}
|
|
312
258
|
},
|
|
313
|
-
"Microsoft.Web.WebView2": {
|
|
314
|
-
"type": "Transitive",
|
|
315
|
-
"resolved": "1.0.1264.42",
|
|
316
|
-
"contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
|
|
317
|
-
},
|
|
318
259
|
"runtime.win10-x64-aot.Microsoft.NETCore.UniversalWindowsPlatform": {
|
|
319
260
|
"type": "Transitive",
|
|
320
261
|
"resolved": "6.2.9",
|
|
@@ -335,11 +276,6 @@
|
|
|
335
276
|
"runtime.win10-x86.Microsoft.NETCore.UniversalWindowsPlatform": "6.2.9"
|
|
336
277
|
}
|
|
337
278
|
},
|
|
338
|
-
"Microsoft.Web.WebView2": {
|
|
339
|
-
"type": "Transitive",
|
|
340
|
-
"resolved": "1.0.1264.42",
|
|
341
|
-
"contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
|
|
342
|
-
},
|
|
343
279
|
"runtime.win10-x86.Microsoft.NETCore.UniversalWindowsPlatform": {
|
|
344
280
|
"type": "Transitive",
|
|
345
281
|
"resolved": "6.2.9",
|
|
@@ -360,11 +296,6 @@
|
|
|
360
296
|
"runtime.win10-x86-aot.Microsoft.NETCore.UniversalWindowsPlatform": "6.2.9"
|
|
361
297
|
}
|
|
362
298
|
},
|
|
363
|
-
"Microsoft.Web.WebView2": {
|
|
364
|
-
"type": "Transitive",
|
|
365
|
-
"resolved": "1.0.1264.42",
|
|
366
|
-
"contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
|
|
367
|
-
},
|
|
368
299
|
"runtime.win10-x86-aot.Microsoft.NETCore.UniversalWindowsPlatform": {
|
|
369
300
|
"type": "Transitive",
|
|
370
301
|
"resolved": "6.2.9",
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
-->
|
|
11
11
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
12
12
|
<PropertyGroup>
|
|
13
|
-
<ReactNativeWindowsVersion>0.72.
|
|
13
|
+
<ReactNativeWindowsVersion>0.72.8</ReactNativeWindowsVersion>
|
|
14
14
|
<ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
|
|
15
15
|
<ReactNativeWindowsMinor>72</ReactNativeWindowsMinor>
|
|
16
|
-
<ReactNativeWindowsPatch>
|
|
16
|
+
<ReactNativeWindowsPatch>8</ReactNativeWindowsPatch>
|
|
17
17
|
<ReactNativeWindowsCanary>false</ReactNativeWindowsCanary>
|
|
18
|
-
<ReactNativeWindowsCommitId>
|
|
18
|
+
<ReactNativeWindowsCommitId>cf39c805b2e779356853f2a65b7de12df3ec035c</ReactNativeWindowsCommitId>
|
|
19
19
|
</PropertyGroup>
|
|
20
20
|
</Project>
|
package/Shared/DevSettings.h
CHANGED
|
@@ -99,6 +99,9 @@ struct DevSettings {
|
|
|
99
99
|
bool devBundle{true};
|
|
100
100
|
|
|
101
101
|
bool enableDefaultCrashHandler{false};
|
|
102
|
+
|
|
103
|
+
// Transitory. Used to indicate whether or not to load networking types in the default Cxx module registry.
|
|
104
|
+
bool omitNetworkingCxxModules{false};
|
|
102
105
|
};
|
|
103
106
|
|
|
104
107
|
} // namespace react
|
package/Shared/OInstance.cpp
CHANGED
|
@@ -538,35 +538,34 @@ std::vector<std::unique_ptr<NativeModule>> InstanceImpl::GetDefaultNativeModules
|
|
|
538
538
|
// If this code is enabled, we will have unused module instances.
|
|
539
539
|
// Also, MSRN has a different property bag mechanism incompatible with this method's transitionalProps variable.
|
|
540
540
|
#if (defined(_MSC_VER) && !defined(WINRT))
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
Microsoft::React::GetHttpModuleName(),
|
|
544
|
-
[nativeQueue, transitionalProps]() -> std::unique_ptr<xplat::module::CxxModule> {
|
|
545
|
-
return Microsoft::React::CreateHttpModule(transitionalProps);
|
|
546
|
-
},
|
|
547
|
-
nativeQueue));
|
|
548
|
-
|
|
549
|
-
modules.push_back(std::make_unique<CxxNativeModule>(
|
|
550
|
-
m_innerInstance,
|
|
551
|
-
Microsoft::React::GetWebSocketModuleName(),
|
|
552
|
-
[nativeQueue, transitionalProps]() -> std::unique_ptr<xplat::module::CxxModule> {
|
|
553
|
-
return Microsoft::React::CreateWebSocketModule(transitionalProps);
|
|
554
|
-
},
|
|
555
|
-
nativeQueue));
|
|
556
|
-
|
|
557
|
-
// Use in case the host app provides its a non-Blob-compatilbe HTTP module.
|
|
558
|
-
if (!Microsoft::React::GetRuntimeOptionBool("Blob.DisableModule")) {
|
|
541
|
+
// Applications using the Windows ABI feature should loade the networking TurboModule variants instead.
|
|
542
|
+
if (!m_devSettings->omitNetworkingCxxModules) {
|
|
559
543
|
modules.push_back(std::make_unique<CxxNativeModule>(
|
|
560
544
|
m_innerInstance,
|
|
561
|
-
Microsoft::React::
|
|
562
|
-
[transitionalProps]() { return Microsoft::React::
|
|
545
|
+
Microsoft::React::GetWebSocketModuleName(),
|
|
546
|
+
[transitionalProps]() { return Microsoft::React::CreateWebSocketModule(transitionalProps); },
|
|
563
547
|
nativeQueue));
|
|
564
548
|
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
549
|
+
// Use in case the host app provides its a non-Blob-compatilbe HTTP module.
|
|
550
|
+
if (!Microsoft::React::GetRuntimeOptionBool("Blob.DisableModule")) {
|
|
551
|
+
modules.push_back(std::make_unique<CxxNativeModule>(
|
|
552
|
+
m_innerInstance,
|
|
553
|
+
Microsoft::React::GetHttpModuleName(),
|
|
554
|
+
[transitionalProps]() { return Microsoft::React::CreateHttpModule(transitionalProps); },
|
|
555
|
+
nativeQueue));
|
|
556
|
+
|
|
557
|
+
modules.push_back(std::make_unique<CxxNativeModule>(
|
|
558
|
+
m_innerInstance,
|
|
559
|
+
Microsoft::React::GetBlobModuleName(),
|
|
560
|
+
[transitionalProps]() { return Microsoft::React::CreateBlobModule(transitionalProps); },
|
|
561
|
+
nativeQueue));
|
|
562
|
+
|
|
563
|
+
modules.push_back(std::make_unique<CxxNativeModule>(
|
|
564
|
+
m_innerInstance,
|
|
565
|
+
Microsoft::React::GetFileReaderModuleName(),
|
|
566
|
+
[transitionalProps]() { return Microsoft::React::CreateFileReaderModule(transitionalProps); },
|
|
567
|
+
nativeQueue));
|
|
568
|
+
}
|
|
570
569
|
}
|
|
571
570
|
|
|
572
571
|
modules.push_back(std::make_unique<CxxNativeModule>(
|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
+
|
|
16
17
|
struct AccessibilityInfoSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
18
|
static constexpr auto methods = std::tuple{
|
|
18
19
|
Method<void(Callback<bool>) noexcept>{0, L"isReduceMotionEnabled"},
|
|
@@ -8,45 +8,56 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
-
REACT_STRUCT(AccessibilityManagerSpec_setAccessibilityContentSizeMultipliers_JSMultipliers)
|
|
17
16
|
struct AccessibilityManagerSpec_setAccessibilityContentSizeMultipliers_JSMultipliers {
|
|
18
|
-
REACT_FIELD(extraSmall)
|
|
19
17
|
std::optional<double> extraSmall;
|
|
20
|
-
REACT_FIELD(small)
|
|
21
18
|
std::optional<double> small;
|
|
22
|
-
REACT_FIELD(medium)
|
|
23
19
|
std::optional<double> medium;
|
|
24
|
-
REACT_FIELD(large)
|
|
25
20
|
std::optional<double> large;
|
|
26
|
-
REACT_FIELD(extraLarge)
|
|
27
21
|
std::optional<double> extraLarge;
|
|
28
|
-
REACT_FIELD(extraExtraLarge)
|
|
29
22
|
std::optional<double> extraExtraLarge;
|
|
30
|
-
REACT_FIELD(extraExtraExtraLarge)
|
|
31
23
|
std::optional<double> extraExtraExtraLarge;
|
|
32
|
-
REACT_FIELD(accessibilityMedium)
|
|
33
24
|
std::optional<double> accessibilityMedium;
|
|
34
|
-
REACT_FIELD(accessibilityLarge)
|
|
35
25
|
std::optional<double> accessibilityLarge;
|
|
36
|
-
REACT_FIELD(accessibilityExtraLarge)
|
|
37
26
|
std::optional<double> accessibilityExtraLarge;
|
|
38
|
-
REACT_FIELD(accessibilityExtraExtraLarge)
|
|
39
27
|
std::optional<double> accessibilityExtraExtraLarge;
|
|
40
|
-
REACT_FIELD(accessibilityExtraExtraExtraLarge)
|
|
41
28
|
std::optional<double> accessibilityExtraExtraExtraLarge;
|
|
42
29
|
};
|
|
43
30
|
|
|
44
|
-
REACT_STRUCT(AccessibilityManagerSpec_announceForAccessibilityWithOptions_options)
|
|
45
31
|
struct AccessibilityManagerSpec_announceForAccessibilityWithOptions_options {
|
|
46
|
-
REACT_FIELD(queue)
|
|
47
32
|
std::optional<bool> queue;
|
|
48
33
|
};
|
|
49
34
|
|
|
35
|
+
|
|
36
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(AccessibilityManagerSpec_setAccessibilityContentSizeMultipliers_JSMultipliers*) noexcept {
|
|
37
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
38
|
+
{L"extraSmall", &AccessibilityManagerSpec_setAccessibilityContentSizeMultipliers_JSMultipliers::extraSmall},
|
|
39
|
+
{L"small", &AccessibilityManagerSpec_setAccessibilityContentSizeMultipliers_JSMultipliers::small},
|
|
40
|
+
{L"medium", &AccessibilityManagerSpec_setAccessibilityContentSizeMultipliers_JSMultipliers::medium},
|
|
41
|
+
{L"large", &AccessibilityManagerSpec_setAccessibilityContentSizeMultipliers_JSMultipliers::large},
|
|
42
|
+
{L"extraLarge", &AccessibilityManagerSpec_setAccessibilityContentSizeMultipliers_JSMultipliers::extraLarge},
|
|
43
|
+
{L"extraExtraLarge", &AccessibilityManagerSpec_setAccessibilityContentSizeMultipliers_JSMultipliers::extraExtraLarge},
|
|
44
|
+
{L"extraExtraExtraLarge", &AccessibilityManagerSpec_setAccessibilityContentSizeMultipliers_JSMultipliers::extraExtraExtraLarge},
|
|
45
|
+
{L"accessibilityMedium", &AccessibilityManagerSpec_setAccessibilityContentSizeMultipliers_JSMultipliers::accessibilityMedium},
|
|
46
|
+
{L"accessibilityLarge", &AccessibilityManagerSpec_setAccessibilityContentSizeMultipliers_JSMultipliers::accessibilityLarge},
|
|
47
|
+
{L"accessibilityExtraLarge", &AccessibilityManagerSpec_setAccessibilityContentSizeMultipliers_JSMultipliers::accessibilityExtraLarge},
|
|
48
|
+
{L"accessibilityExtraExtraLarge", &AccessibilityManagerSpec_setAccessibilityContentSizeMultipliers_JSMultipliers::accessibilityExtraExtraLarge},
|
|
49
|
+
{L"accessibilityExtraExtraExtraLarge", &AccessibilityManagerSpec_setAccessibilityContentSizeMultipliers_JSMultipliers::accessibilityExtraExtraExtraLarge},
|
|
50
|
+
};
|
|
51
|
+
return fieldMap;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(AccessibilityManagerSpec_announceForAccessibilityWithOptions_options*) noexcept {
|
|
55
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
56
|
+
{L"queue", &AccessibilityManagerSpec_announceForAccessibilityWithOptions_options::queue},
|
|
57
|
+
};
|
|
58
|
+
return fieldMap;
|
|
59
|
+
}
|
|
60
|
+
|
|
50
61
|
struct AccessibilityManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
51
62
|
static constexpr auto methods = std::tuple{
|
|
52
63
|
Method<void(Callback<bool>, Callback<::React::JSValue>) noexcept>{0, L"getCurrentBoldTextState"},
|
|
@@ -8,67 +8,83 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
-
REACT_STRUCT(ActionSheetManagerSpec_showActionSheetWithOptions_options)
|
|
17
16
|
struct ActionSheetManagerSpec_showActionSheetWithOptions_options {
|
|
18
|
-
REACT_FIELD(title)
|
|
19
17
|
std::optional<std::string> title;
|
|
20
|
-
REACT_FIELD(message)
|
|
21
18
|
std::optional<std::string> message;
|
|
22
|
-
REACT_FIELD(options)
|
|
23
19
|
std::optional<std::vector<std::string>> options;
|
|
24
|
-
REACT_FIELD(destructiveButtonIndices)
|
|
25
20
|
std::optional<std::vector<double>> destructiveButtonIndices;
|
|
26
|
-
REACT_FIELD(cancelButtonIndex)
|
|
27
21
|
std::optional<double> cancelButtonIndex;
|
|
28
|
-
REACT_FIELD(anchor)
|
|
29
22
|
std::optional<double> anchor;
|
|
30
|
-
REACT_FIELD(tintColor)
|
|
31
23
|
std::optional<double> tintColor;
|
|
32
|
-
REACT_FIELD(cancelButtonTintColor)
|
|
33
24
|
std::optional<double> cancelButtonTintColor;
|
|
34
|
-
REACT_FIELD(userInterfaceStyle)
|
|
35
25
|
std::optional<std::string> userInterfaceStyle;
|
|
36
|
-
REACT_FIELD(disabledButtonIndices)
|
|
37
26
|
std::optional<std::vector<double>> disabledButtonIndices;
|
|
38
27
|
};
|
|
39
28
|
|
|
40
|
-
REACT_STRUCT(ActionSheetManagerSpec_showShareActionSheetWithOptions_options)
|
|
41
29
|
struct ActionSheetManagerSpec_showShareActionSheetWithOptions_options {
|
|
42
|
-
REACT_FIELD(message)
|
|
43
30
|
std::optional<std::string> message;
|
|
44
|
-
REACT_FIELD(url)
|
|
45
31
|
std::optional<std::string> url;
|
|
46
|
-
REACT_FIELD(subject)
|
|
47
32
|
std::optional<std::string> subject;
|
|
48
|
-
REACT_FIELD(anchor)
|
|
49
33
|
std::optional<double> anchor;
|
|
50
|
-
REACT_FIELD(tintColor)
|
|
51
34
|
std::optional<double> tintColor;
|
|
52
|
-
REACT_FIELD(cancelButtonTintColor)
|
|
53
35
|
std::optional<double> cancelButtonTintColor;
|
|
54
|
-
REACT_FIELD(excludedActivityTypes)
|
|
55
36
|
std::optional<std::vector<std::string>> excludedActivityTypes;
|
|
56
|
-
REACT_FIELD(userInterfaceStyle)
|
|
57
37
|
std::optional<std::string> userInterfaceStyle;
|
|
58
38
|
};
|
|
59
39
|
|
|
60
|
-
REACT_STRUCT(ActionSheetManagerSpec_showShareActionSheetWithOptions_failureCallback_error)
|
|
61
40
|
struct ActionSheetManagerSpec_showShareActionSheetWithOptions_failureCallback_error {
|
|
62
|
-
REACT_FIELD(domain)
|
|
63
41
|
std::string domain;
|
|
64
|
-
REACT_FIELD(code)
|
|
65
42
|
std::string code;
|
|
66
|
-
REACT_FIELD(userInfo)
|
|
67
43
|
std::optional<::React::JSValue> userInfo;
|
|
68
|
-
REACT_FIELD(message)
|
|
69
44
|
std::string message;
|
|
70
45
|
};
|
|
71
46
|
|
|
47
|
+
|
|
48
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(ActionSheetManagerSpec_showActionSheetWithOptions_options*) noexcept {
|
|
49
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
50
|
+
{L"title", &ActionSheetManagerSpec_showActionSheetWithOptions_options::title},
|
|
51
|
+
{L"message", &ActionSheetManagerSpec_showActionSheetWithOptions_options::message},
|
|
52
|
+
{L"options", &ActionSheetManagerSpec_showActionSheetWithOptions_options::options},
|
|
53
|
+
{L"destructiveButtonIndices", &ActionSheetManagerSpec_showActionSheetWithOptions_options::destructiveButtonIndices},
|
|
54
|
+
{L"cancelButtonIndex", &ActionSheetManagerSpec_showActionSheetWithOptions_options::cancelButtonIndex},
|
|
55
|
+
{L"anchor", &ActionSheetManagerSpec_showActionSheetWithOptions_options::anchor},
|
|
56
|
+
{L"tintColor", &ActionSheetManagerSpec_showActionSheetWithOptions_options::tintColor},
|
|
57
|
+
{L"cancelButtonTintColor", &ActionSheetManagerSpec_showActionSheetWithOptions_options::cancelButtonTintColor},
|
|
58
|
+
{L"userInterfaceStyle", &ActionSheetManagerSpec_showActionSheetWithOptions_options::userInterfaceStyle},
|
|
59
|
+
{L"disabledButtonIndices", &ActionSheetManagerSpec_showActionSheetWithOptions_options::disabledButtonIndices},
|
|
60
|
+
};
|
|
61
|
+
return fieldMap;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(ActionSheetManagerSpec_showShareActionSheetWithOptions_options*) noexcept {
|
|
65
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
66
|
+
{L"message", &ActionSheetManagerSpec_showShareActionSheetWithOptions_options::message},
|
|
67
|
+
{L"url", &ActionSheetManagerSpec_showShareActionSheetWithOptions_options::url},
|
|
68
|
+
{L"subject", &ActionSheetManagerSpec_showShareActionSheetWithOptions_options::subject},
|
|
69
|
+
{L"anchor", &ActionSheetManagerSpec_showShareActionSheetWithOptions_options::anchor},
|
|
70
|
+
{L"tintColor", &ActionSheetManagerSpec_showShareActionSheetWithOptions_options::tintColor},
|
|
71
|
+
{L"cancelButtonTintColor", &ActionSheetManagerSpec_showShareActionSheetWithOptions_options::cancelButtonTintColor},
|
|
72
|
+
{L"excludedActivityTypes", &ActionSheetManagerSpec_showShareActionSheetWithOptions_options::excludedActivityTypes},
|
|
73
|
+
{L"userInterfaceStyle", &ActionSheetManagerSpec_showShareActionSheetWithOptions_options::userInterfaceStyle},
|
|
74
|
+
};
|
|
75
|
+
return fieldMap;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(ActionSheetManagerSpec_showShareActionSheetWithOptions_failureCallback_error*) noexcept {
|
|
79
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
80
|
+
{L"domain", &ActionSheetManagerSpec_showShareActionSheetWithOptions_failureCallback_error::domain},
|
|
81
|
+
{L"code", &ActionSheetManagerSpec_showShareActionSheetWithOptions_failureCallback_error::code},
|
|
82
|
+
{L"userInfo", &ActionSheetManagerSpec_showShareActionSheetWithOptions_failureCallback_error::userInfo},
|
|
83
|
+
{L"message", &ActionSheetManagerSpec_showShareActionSheetWithOptions_failureCallback_error::message},
|
|
84
|
+
};
|
|
85
|
+
return fieldMap;
|
|
86
|
+
}
|
|
87
|
+
|
|
72
88
|
struct ActionSheetManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
73
89
|
static constexpr auto methods = std::tuple{
|
|
74
90
|
Method<void(ActionSheetManagerSpec_showActionSheetWithOptions_options, Callback<double>) noexcept>{0, L"showActionSheetWithOptions"},
|
|
@@ -8,35 +8,41 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
-
REACT_STRUCT(AlertManagerSpec_Args)
|
|
17
16
|
struct AlertManagerSpec_Args {
|
|
18
|
-
REACT_FIELD(title)
|
|
19
17
|
std::optional<std::string> title;
|
|
20
|
-
REACT_FIELD(message)
|
|
21
18
|
std::optional<std::string> message;
|
|
22
|
-
REACT_FIELD(buttons)
|
|
23
19
|
std::optional<std::vector<::React::JSValue>> buttons;
|
|
24
|
-
REACT_FIELD(type)
|
|
25
20
|
std::optional<std::string> type;
|
|
26
|
-
REACT_FIELD(defaultValue)
|
|
27
21
|
std::optional<std::string> defaultValue;
|
|
28
|
-
REACT_FIELD(cancelButtonKey)
|
|
29
22
|
std::optional<std::string> cancelButtonKey;
|
|
30
|
-
REACT_FIELD(destructiveButtonKey)
|
|
31
23
|
std::optional<std::string> destructiveButtonKey;
|
|
32
|
-
REACT_FIELD(preferredButtonKey)
|
|
33
24
|
std::optional<std::string> preferredButtonKey;
|
|
34
|
-
REACT_FIELD(keyboardType)
|
|
35
25
|
std::optional<std::string> keyboardType;
|
|
36
|
-
REACT_FIELD(userInterfaceStyle)
|
|
37
26
|
std::optional<std::string> userInterfaceStyle;
|
|
38
27
|
};
|
|
39
28
|
|
|
29
|
+
|
|
30
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(AlertManagerSpec_Args*) noexcept {
|
|
31
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
32
|
+
{L"title", &AlertManagerSpec_Args::title},
|
|
33
|
+
{L"message", &AlertManagerSpec_Args::message},
|
|
34
|
+
{L"buttons", &AlertManagerSpec_Args::buttons},
|
|
35
|
+
{L"type", &AlertManagerSpec_Args::type},
|
|
36
|
+
{L"defaultValue", &AlertManagerSpec_Args::defaultValue},
|
|
37
|
+
{L"cancelButtonKey", &AlertManagerSpec_Args::cancelButtonKey},
|
|
38
|
+
{L"destructiveButtonKey", &AlertManagerSpec_Args::destructiveButtonKey},
|
|
39
|
+
{L"preferredButtonKey", &AlertManagerSpec_Args::preferredButtonKey},
|
|
40
|
+
{L"keyboardType", &AlertManagerSpec_Args::keyboardType},
|
|
41
|
+
{L"userInterfaceStyle", &AlertManagerSpec_Args::userInterfaceStyle},
|
|
42
|
+
};
|
|
43
|
+
return fieldMap;
|
|
44
|
+
}
|
|
45
|
+
|
|
40
46
|
struct AlertManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
41
47
|
static constexpr auto methods = std::tuple{
|
|
42
48
|
Method<void(AlertManagerSpec_Args, Callback<double, std::string>) noexcept>{0, L"alertWithArgs"},
|
|
@@ -8,25 +8,36 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
-
REACT_STRUCT(AnimatedModuleSpec_EndResult)
|
|
17
16
|
struct AnimatedModuleSpec_EndResult {
|
|
18
|
-
REACT_FIELD(finished)
|
|
19
17
|
bool finished;
|
|
20
18
|
};
|
|
21
19
|
|
|
22
|
-
REACT_STRUCT(AnimatedModuleSpec_EventMapping)
|
|
23
20
|
struct AnimatedModuleSpec_EventMapping {
|
|
24
|
-
REACT_FIELD(nativeEventPath)
|
|
25
21
|
std::vector<std::string> nativeEventPath;
|
|
26
|
-
REACT_FIELD(animatedValueTag)
|
|
27
22
|
std::optional<double> animatedValueTag;
|
|
28
23
|
};
|
|
29
24
|
|
|
25
|
+
|
|
26
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(AnimatedModuleSpec_EndResult*) noexcept {
|
|
27
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
28
|
+
{L"finished", &AnimatedModuleSpec_EndResult::finished},
|
|
29
|
+
};
|
|
30
|
+
return fieldMap;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(AnimatedModuleSpec_EventMapping*) noexcept {
|
|
34
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
35
|
+
{L"nativeEventPath", &AnimatedModuleSpec_EventMapping::nativeEventPath},
|
|
36
|
+
{L"animatedValueTag", &AnimatedModuleSpec_EventMapping::animatedValueTag},
|
|
37
|
+
};
|
|
38
|
+
return fieldMap;
|
|
39
|
+
}
|
|
40
|
+
|
|
30
41
|
struct AnimatedModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
31
42
|
static constexpr auto methods = std::tuple{
|
|
32
43
|
Method<void() noexcept>{0, L"startOperationBatch"},
|
|
@@ -8,25 +8,36 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
-
REACT_STRUCT(AnimatedTurboModuleSpec_EndResult)
|
|
17
16
|
struct AnimatedTurboModuleSpec_EndResult {
|
|
18
|
-
REACT_FIELD(finished)
|
|
19
17
|
bool finished;
|
|
20
18
|
};
|
|
21
19
|
|
|
22
|
-
REACT_STRUCT(AnimatedTurboModuleSpec_EventMapping)
|
|
23
20
|
struct AnimatedTurboModuleSpec_EventMapping {
|
|
24
|
-
REACT_FIELD(nativeEventPath)
|
|
25
21
|
std::vector<std::string> nativeEventPath;
|
|
26
|
-
REACT_FIELD(animatedValueTag)
|
|
27
22
|
std::optional<double> animatedValueTag;
|
|
28
23
|
};
|
|
29
24
|
|
|
25
|
+
|
|
26
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(AnimatedTurboModuleSpec_EndResult*) noexcept {
|
|
27
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
28
|
+
{L"finished", &AnimatedTurboModuleSpec_EndResult::finished},
|
|
29
|
+
};
|
|
30
|
+
return fieldMap;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(AnimatedTurboModuleSpec_EventMapping*) noexcept {
|
|
34
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
35
|
+
{L"nativeEventPath", &AnimatedTurboModuleSpec_EventMapping::nativeEventPath},
|
|
36
|
+
{L"animatedValueTag", &AnimatedTurboModuleSpec_EventMapping::animatedValueTag},
|
|
37
|
+
};
|
|
38
|
+
return fieldMap;
|
|
39
|
+
}
|
|
40
|
+
|
|
30
41
|
struct AnimatedTurboModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
31
42
|
static constexpr auto methods = std::tuple{
|
|
32
43
|
Method<void() noexcept>{0, L"startOperationBatch"},
|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
+
|
|
16
17
|
struct AnimationsDebugModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
18
|
static constexpr auto methods = std::tuple{
|
|
18
19
|
Method<void() noexcept>{0, L"startRecordingFps"},
|