react-native-windows 0.72.6 → 0.72.7
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.Managed/packages.lock.json +4 -73
- package/PropertySheets/Generated/PackageVersion.g.props +3 -3
- 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
|
@@ -8,55 +8,71 @@
|
|
|
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(PushNotificationManagerIOSSpec_Permissions)
|
|
17
16
|
struct PushNotificationManagerIOSSpec_Permissions {
|
|
18
|
-
REACT_FIELD(alert)
|
|
19
17
|
bool alert;
|
|
20
|
-
REACT_FIELD(badge)
|
|
21
18
|
bool badge;
|
|
22
|
-
REACT_FIELD(sound)
|
|
23
19
|
bool sound;
|
|
24
20
|
};
|
|
25
21
|
|
|
26
|
-
REACT_STRUCT(PushNotificationManagerIOSSpec_Notification)
|
|
27
22
|
struct PushNotificationManagerIOSSpec_Notification {
|
|
28
|
-
REACT_FIELD(alertTitle)
|
|
29
23
|
std::optional<std::string> alertTitle;
|
|
30
|
-
REACT_FIELD(fireDate)
|
|
31
24
|
std::optional<double> fireDate;
|
|
32
|
-
REACT_FIELD(alertBody)
|
|
33
25
|
std::optional<std::string> alertBody;
|
|
34
|
-
REACT_FIELD(alertAction)
|
|
35
26
|
std::optional<std::string> alertAction;
|
|
36
|
-
REACT_FIELD(userInfo)
|
|
37
27
|
std::optional<::React::JSValue> userInfo;
|
|
38
|
-
REACT_FIELD(category)
|
|
39
28
|
std::optional<std::string> category;
|
|
40
|
-
REACT_FIELD(repeatInterval)
|
|
41
29
|
std::optional<std::string> repeatInterval;
|
|
42
|
-
REACT_FIELD(applicationIconBadgeNumber)
|
|
43
30
|
std::optional<double> applicationIconBadgeNumber;
|
|
44
|
-
REACT_FIELD(isSilent)
|
|
45
31
|
std::optional<bool> isSilent;
|
|
46
|
-
REACT_FIELD(soundName)
|
|
47
32
|
std::optional<std::string> soundName;
|
|
48
33
|
};
|
|
49
34
|
|
|
50
|
-
REACT_STRUCT(PushNotificationManagerIOSSpec_requestPermissions_permission)
|
|
51
35
|
struct PushNotificationManagerIOSSpec_requestPermissions_permission {
|
|
52
|
-
REACT_FIELD(alert)
|
|
53
36
|
bool alert;
|
|
54
|
-
REACT_FIELD(badge)
|
|
55
37
|
bool badge;
|
|
56
|
-
REACT_FIELD(sound)
|
|
57
38
|
bool sound;
|
|
58
39
|
};
|
|
59
40
|
|
|
41
|
+
|
|
42
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(PushNotificationManagerIOSSpec_Permissions*) noexcept {
|
|
43
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
44
|
+
{L"alert", &PushNotificationManagerIOSSpec_Permissions::alert},
|
|
45
|
+
{L"badge", &PushNotificationManagerIOSSpec_Permissions::badge},
|
|
46
|
+
{L"sound", &PushNotificationManagerIOSSpec_Permissions::sound},
|
|
47
|
+
};
|
|
48
|
+
return fieldMap;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(PushNotificationManagerIOSSpec_Notification*) noexcept {
|
|
52
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
53
|
+
{L"alertTitle", &PushNotificationManagerIOSSpec_Notification::alertTitle},
|
|
54
|
+
{L"fireDate", &PushNotificationManagerIOSSpec_Notification::fireDate},
|
|
55
|
+
{L"alertBody", &PushNotificationManagerIOSSpec_Notification::alertBody},
|
|
56
|
+
{L"alertAction", &PushNotificationManagerIOSSpec_Notification::alertAction},
|
|
57
|
+
{L"userInfo", &PushNotificationManagerIOSSpec_Notification::userInfo},
|
|
58
|
+
{L"category", &PushNotificationManagerIOSSpec_Notification::category},
|
|
59
|
+
{L"repeatInterval", &PushNotificationManagerIOSSpec_Notification::repeatInterval},
|
|
60
|
+
{L"applicationIconBadgeNumber", &PushNotificationManagerIOSSpec_Notification::applicationIconBadgeNumber},
|
|
61
|
+
{L"isSilent", &PushNotificationManagerIOSSpec_Notification::isSilent},
|
|
62
|
+
{L"soundName", &PushNotificationManagerIOSSpec_Notification::soundName},
|
|
63
|
+
};
|
|
64
|
+
return fieldMap;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(PushNotificationManagerIOSSpec_requestPermissions_permission*) noexcept {
|
|
68
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
69
|
+
{L"alert", &PushNotificationManagerIOSSpec_requestPermissions_permission::alert},
|
|
70
|
+
{L"badge", &PushNotificationManagerIOSSpec_requestPermissions_permission::badge},
|
|
71
|
+
{L"sound", &PushNotificationManagerIOSSpec_requestPermissions_permission::sound},
|
|
72
|
+
};
|
|
73
|
+
return fieldMap;
|
|
74
|
+
}
|
|
75
|
+
|
|
60
76
|
struct PushNotificationManagerIOSSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
61
77
|
static constexpr auto methods = std::tuple{
|
|
62
78
|
Method<void(std::string, std::string) noexcept>{0, L"onFinishRemoteNotification"},
|
|
@@ -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 RedBoxSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
18
|
static constexpr auto methods = std::tuple{
|
|
18
19
|
Method<void(::React::JSValue, std::string) noexcept>{0, L"setExtraData"},
|
|
@@ -8,21 +8,27 @@
|
|
|
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(SampleTurboModuleSpec_Constants)
|
|
17
16
|
struct SampleTurboModuleSpec_Constants {
|
|
18
|
-
REACT_FIELD(const1)
|
|
19
17
|
bool const1;
|
|
20
|
-
REACT_FIELD(const2)
|
|
21
18
|
double const2;
|
|
22
|
-
REACT_FIELD(const3)
|
|
23
19
|
std::string const3;
|
|
24
20
|
};
|
|
25
21
|
|
|
22
|
+
|
|
23
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(SampleTurboModuleSpec_Constants*) noexcept {
|
|
24
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
25
|
+
{L"const1", &SampleTurboModuleSpec_Constants::const1},
|
|
26
|
+
{L"const2", &SampleTurboModuleSpec_Constants::const2},
|
|
27
|
+
{L"const3", &SampleTurboModuleSpec_Constants::const3},
|
|
28
|
+
};
|
|
29
|
+
return fieldMap;
|
|
30
|
+
}
|
|
31
|
+
|
|
26
32
|
struct SampleTurboModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
27
33
|
static constexpr auto constants = std::tuple{
|
|
28
34
|
TypedConstant<SampleTurboModuleSpec_Constants>{0},
|
|
@@ -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 SegmentFetcherSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
18
|
static constexpr auto methods = std::tuple{
|
|
18
19
|
Method<void(double, ::React::JSValue, Callback<std::optional<::React::JSValue>>) noexcept>{0, L"fetchSegment"},
|
|
@@ -8,17 +8,23 @@
|
|
|
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(SettingsManagerSpec_Constants)
|
|
17
16
|
struct SettingsManagerSpec_Constants {
|
|
18
|
-
REACT_FIELD(settings)
|
|
19
17
|
::React::JSValue settings;
|
|
20
18
|
};
|
|
21
19
|
|
|
20
|
+
|
|
21
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(SettingsManagerSpec_Constants*) noexcept {
|
|
22
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
23
|
+
{L"settings", &SettingsManagerSpec_Constants::settings},
|
|
24
|
+
};
|
|
25
|
+
return fieldMap;
|
|
26
|
+
}
|
|
27
|
+
|
|
22
28
|
struct SettingsManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
23
29
|
static constexpr auto constants = std::tuple{
|
|
24
30
|
TypedConstant<SettingsManagerSpec_Constants>{0},
|
|
@@ -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(ShareModuleSpec_share_content)
|
|
17
16
|
struct ShareModuleSpec_share_content {
|
|
18
|
-
REACT_FIELD(title)
|
|
19
17
|
std::optional<std::string> title;
|
|
20
|
-
REACT_FIELD(message)
|
|
21
18
|
std::optional<std::string> message;
|
|
22
19
|
};
|
|
23
20
|
|
|
24
|
-
REACT_STRUCT(ShareModuleSpec_share_returnType)
|
|
25
21
|
struct ShareModuleSpec_share_returnType {
|
|
26
|
-
REACT_FIELD(action)
|
|
27
22
|
std::string action;
|
|
28
23
|
};
|
|
29
24
|
|
|
25
|
+
|
|
26
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(ShareModuleSpec_share_content*) noexcept {
|
|
27
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
28
|
+
{L"title", &ShareModuleSpec_share_content::title},
|
|
29
|
+
{L"message", &ShareModuleSpec_share_content::message},
|
|
30
|
+
};
|
|
31
|
+
return fieldMap;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(ShareModuleSpec_share_returnType*) noexcept {
|
|
35
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
36
|
+
{L"action", &ShareModuleSpec_share_returnType::action},
|
|
37
|
+
};
|
|
38
|
+
return fieldMap;
|
|
39
|
+
}
|
|
40
|
+
|
|
30
41
|
struct ShareModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
31
42
|
static constexpr auto methods = std::tuple{
|
|
32
43
|
Method<void(ShareModuleSpec_share_content, std::string, Promise<ShareModuleSpec_share_returnType>) noexcept>{0, L"share"},
|
|
@@ -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 SoundManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
18
|
static constexpr auto methods = std::tuple{
|
|
18
19
|
Method<void() noexcept>{0, L"playTouchSound"},
|
|
@@ -8,17 +8,23 @@
|
|
|
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(SourceCodeSpec_Constants)
|
|
17
16
|
struct SourceCodeSpec_Constants {
|
|
18
|
-
REACT_FIELD(scriptURL)
|
|
19
17
|
std::string scriptURL;
|
|
20
18
|
};
|
|
21
19
|
|
|
20
|
+
|
|
21
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(SourceCodeSpec_Constants*) noexcept {
|
|
22
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
23
|
+
{L"scriptURL", &SourceCodeSpec_Constants::scriptURL},
|
|
24
|
+
};
|
|
25
|
+
return fieldMap;
|
|
26
|
+
}
|
|
27
|
+
|
|
22
28
|
struct SourceCodeSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
23
29
|
static constexpr auto constants = std::tuple{
|
|
24
30
|
TypedConstant<SourceCodeSpec_Constants>{0},
|
|
@@ -8,19 +8,25 @@
|
|
|
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(StatusBarManagerAndroidSpec_Constants)
|
|
17
16
|
struct StatusBarManagerAndroidSpec_Constants {
|
|
18
|
-
REACT_FIELD(HEIGHT)
|
|
19
17
|
double HEIGHT;
|
|
20
|
-
REACT_FIELD(DEFAULT_BACKGROUND_COLOR)
|
|
21
18
|
double DEFAULT_BACKGROUND_COLOR;
|
|
22
19
|
};
|
|
23
20
|
|
|
21
|
+
|
|
22
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(StatusBarManagerAndroidSpec_Constants*) noexcept {
|
|
23
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
24
|
+
{L"HEIGHT", &StatusBarManagerAndroidSpec_Constants::HEIGHT},
|
|
25
|
+
{L"DEFAULT_BACKGROUND_COLOR", &StatusBarManagerAndroidSpec_Constants::DEFAULT_BACKGROUND_COLOR},
|
|
26
|
+
};
|
|
27
|
+
return fieldMap;
|
|
28
|
+
}
|
|
29
|
+
|
|
24
30
|
struct StatusBarManagerAndroidSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
25
31
|
static constexpr auto constants = std::tuple{
|
|
26
32
|
TypedConstant<StatusBarManagerAndroidSpec_Constants>{0},
|
|
@@ -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(StatusBarManagerIOSSpec_getHeight_callback_result)
|
|
17
16
|
struct StatusBarManagerIOSSpec_getHeight_callback_result {
|
|
18
|
-
REACT_FIELD(height)
|
|
19
17
|
double height;
|
|
20
18
|
};
|
|
21
19
|
|
|
22
|
-
REACT_STRUCT(StatusBarManagerIOSSpec_Constants)
|
|
23
20
|
struct StatusBarManagerIOSSpec_Constants {
|
|
24
|
-
REACT_FIELD(HEIGHT)
|
|
25
21
|
double HEIGHT;
|
|
26
|
-
REACT_FIELD(DEFAULT_BACKGROUND_COLOR)
|
|
27
22
|
std::optional<double> DEFAULT_BACKGROUND_COLOR;
|
|
28
23
|
};
|
|
29
24
|
|
|
25
|
+
|
|
26
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(StatusBarManagerIOSSpec_getHeight_callback_result*) noexcept {
|
|
27
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
28
|
+
{L"height", &StatusBarManagerIOSSpec_getHeight_callback_result::height},
|
|
29
|
+
};
|
|
30
|
+
return fieldMap;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(StatusBarManagerIOSSpec_Constants*) noexcept {
|
|
34
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
35
|
+
{L"HEIGHT", &StatusBarManagerIOSSpec_Constants::HEIGHT},
|
|
36
|
+
{L"DEFAULT_BACKGROUND_COLOR", &StatusBarManagerIOSSpec_Constants::DEFAULT_BACKGROUND_COLOR},
|
|
37
|
+
};
|
|
38
|
+
return fieldMap;
|
|
39
|
+
}
|
|
40
|
+
|
|
30
41
|
struct StatusBarManagerIOSSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
31
42
|
static constexpr auto constants = std::tuple{
|
|
32
43
|
TypedConstant<StatusBarManagerIOSSpec_Constants>{0},
|
|
@@ -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 TimingSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
18
|
static constexpr auto methods = std::tuple{
|
|
18
19
|
Method<void(double, double, double, bool) noexcept>{0, L"createTimer"},
|
|
@@ -8,25 +8,31 @@
|
|
|
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(ToastAndroidSpec_Constants)
|
|
17
16
|
struct ToastAndroidSpec_Constants {
|
|
18
|
-
REACT_FIELD(SHORT)
|
|
19
17
|
double SHORT;
|
|
20
|
-
REACT_FIELD(LONG)
|
|
21
18
|
double LONG;
|
|
22
|
-
REACT_FIELD(TOP)
|
|
23
19
|
double TOP;
|
|
24
|
-
REACT_FIELD(BOTTOM)
|
|
25
20
|
double BOTTOM;
|
|
26
|
-
REACT_FIELD(CENTER)
|
|
27
21
|
double CENTER;
|
|
28
22
|
};
|
|
29
23
|
|
|
24
|
+
|
|
25
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(ToastAndroidSpec_Constants*) noexcept {
|
|
26
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
27
|
+
{L"SHORT", &ToastAndroidSpec_Constants::SHORT},
|
|
28
|
+
{L"LONG", &ToastAndroidSpec_Constants::LONG},
|
|
29
|
+
{L"TOP", &ToastAndroidSpec_Constants::TOP},
|
|
30
|
+
{L"BOTTOM", &ToastAndroidSpec_Constants::BOTTOM},
|
|
31
|
+
{L"CENTER", &ToastAndroidSpec_Constants::CENTER},
|
|
32
|
+
};
|
|
33
|
+
return fieldMap;
|
|
34
|
+
}
|
|
35
|
+
|
|
30
36
|
struct ToastAndroidSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
31
37
|
static constexpr auto constants = std::tuple{
|
|
32
38
|
TypedConstant<ToastAndroidSpec_Constants>{0},
|
|
@@ -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 UIManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
18
|
static constexpr auto methods = std::tuple{
|
|
18
19
|
SyncMethod<::React::JSValue(std::string) noexcept>{0, L"getConstantsForViewManager"},
|
|
@@ -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 VibrationSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
18
|
static constexpr auto methods = std::tuple{
|
|
18
19
|
Method<void(double) noexcept>{0, L"vibrate"},
|
|
@@ -8,17 +8,23 @@
|
|
|
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(WebSocketModuleSpec_connect_options)
|
|
17
16
|
struct WebSocketModuleSpec_connect_options {
|
|
18
|
-
REACT_FIELD(headers)
|
|
19
17
|
std::optional<::React::JSValue> headers;
|
|
20
18
|
};
|
|
21
19
|
|
|
20
|
+
|
|
21
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(WebSocketModuleSpec_connect_options*) noexcept {
|
|
22
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
23
|
+
{L"headers", &WebSocketModuleSpec_connect_options::headers},
|
|
24
|
+
};
|
|
25
|
+
return fieldMap;
|
|
26
|
+
}
|
|
27
|
+
|
|
22
28
|
struct WebSocketModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
23
29
|
static constexpr auto methods = std::tuple{
|
|
24
30
|
Method<void(std::string, std::optional<std::vector<std::string>>, WebSocketModuleSpec_connect_options, double) noexcept>{0, L"connect"},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-windows",
|
|
3
|
-
"version": "0.72.
|
|
3
|
+
"version": "0.72.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@react-native-community/cli": "11.3.5",
|
|
27
27
|
"@react-native-community/cli-platform-android": "11.3.5",
|
|
28
28
|
"@react-native-community/cli-platform-ios": "11.3.5",
|
|
29
|
-
"@react-native-windows/cli": "0.72.
|
|
29
|
+
"@react-native-windows/cli": "0.72.3",
|
|
30
30
|
"@react-native/assets": "1.0.0",
|
|
31
31
|
"@react-native/assets-registry": "^0.72.0",
|
|
32
32
|
"@react-native/codegen": "^0.72.6",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"yargs": "^17.6.2"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@react-native-windows/codegen": "0.72.
|
|
66
|
+
"@react-native-windows/codegen": "0.72.2",
|
|
67
67
|
"@rnw-scripts/babel-react-native-config": "0.0.0",
|
|
68
68
|
"@rnw-scripts/eslint-config": "1.1.15",
|
|
69
69
|
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.1",
|