react-native-windows 0.71.30 → 0.71.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Directory.Build.props +5 -0
- package/Microsoft.ReactNative/IReactDispatcher.cpp +4 -0
- package/Microsoft.ReactNative/IReactDispatcher.h +1 -0
- package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +2 -4
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp +30 -11
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.h +0 -2
- package/Microsoft.ReactNative/Views/DevMenu.cpp +3 -3
- package/Microsoft.ReactNative.Cxx/JSI/NodeApiJsiLoader.cpp +16 -0
- package/Microsoft.ReactNative.Cxx/Microsoft.ReactNative.Cxx.vcxitems +43 -12
- package/Microsoft.ReactNative.Cxx/Microsoft.ReactNative.Cxx.vcxitems.filters +17 -6
- package/PropertySheets/External/Microsoft.ReactNative.Uwp.CSharpApp.targets +1 -1
- package/PropertySheets/External/Microsoft.ReactNative.Uwp.CppApp.targets +1 -1
- package/PropertySheets/External/Microsoft.ReactNative.WinAppSDK.CSharpApp.targets +1 -1
- package/PropertySheets/Generated/PackageVersion.g.props +3 -3
- package/PropertySheets/JSEngine.props +4 -4
- package/PropertySheets/React.Cpp.props +1 -0
- package/PropertySheets/Warnings.props +6 -0
- package/ReactCommon/ReactCommon.vcxproj +53 -1
- package/ReactCommon/cgmanifest.json +15 -0
- package/Scripts/Tfs/Layout-MSRN-Headers.ps1 +36 -0
- package/Shared/DevSupportManager.cpp +2 -9
- package/Shared/DevSupportManager.h +2 -6
- package/Shared/HermesRuntimeHolder.cpp +344 -84
- package/Shared/HermesRuntimeHolder.h +32 -21
- package/Shared/HermesSamplingProfiler.cpp +66 -14
- package/Shared/HermesSamplingProfiler.h +5 -3
- package/Shared/InspectorPackagerConnection.cpp +62 -108
- package/Shared/InspectorPackagerConnection.h +9 -21
- package/Shared/JSI/RuntimeHolder.h +2 -2
- package/Shared/JSI/ScriptStore.h +18 -20
- package/Shared/JSI/V8RuntimeHolder.cpp +260 -0
- package/Shared/JSI/V8RuntimeHolder.h +37 -0
- package/Shared/OInstance.cpp +16 -32
- package/Shared/SafeLoadLibrary.cpp +77 -0
- package/Shared/SafeLoadLibrary.h +19 -0
- package/Shared/Shared.vcxitems +19 -8
- package/Shared/Shared.vcxitems.filters +23 -30
- 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/NativeDatePickerAndroidSpec.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/NativeDeviceEventManagerSpec.g.h +2 -1
- package/codegen/NativeDeviceInfoSpec.g.h +41 -20
- package/codegen/NativeDialogManagerAndroidSpec.g.h +26 -15
- package/codegen/NativeDialogManagerWindowsSpec.g.h +27 -16
- 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 +2 -1
- package/codegen/NativeImageLoaderIOSSpec.g.h +2 -1
- 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 +15 -9
- 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 +10 -4
- 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
- package/template/cs-app-WinAppSDK/proj/ExperimentalFeatures.props +1 -1
- package/Microsoft.ReactNative.Cxx/JSI/NodeApiJsiRuntime.cpp +0 -2103
- package/Microsoft.ReactNative.Cxx/JSI/NodeApiJsiRuntime.h +0 -73
- package/Shared/HermesShim.cpp +0 -118
- package/Shared/HermesShim.h +0 -21
- package/Shared/JSI/NapiJsiV8RuntimeHolder.cpp +0 -209
- package/Shared/JSI/NapiJsiV8RuntimeHolder.h +0 -44
- package/Shared/V8JSIRuntimeHolder.cpp +0 -70
- package/Shared/V8JSIRuntimeHolder.h +0 -53
|
@@ -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.71.
|
|
3
|
+
"version": "0.71.32",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@react-native-community/cli": "10.2.4",
|
|
27
27
|
"@react-native-community/cli-platform-android": "10.2.0",
|
|
28
28
|
"@react-native-community/cli-platform-ios": "10.2.4",
|
|
29
|
-
"@react-native-windows/cli": "0.71.
|
|
29
|
+
"@react-native-windows/cli": "0.71.16",
|
|
30
30
|
"@react-native/assets": "1.0.0",
|
|
31
31
|
"@react-native/normalize-color": "2.1.0",
|
|
32
32
|
"@react-native/polyfills": "2.0.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"ws": "^6.2.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@react-native-windows/codegen": "0.71.
|
|
61
|
+
"@react-native-windows/codegen": "0.71.7",
|
|
62
62
|
"@rnw-scripts/babel-react-native-config": "0.0.0",
|
|
63
63
|
"@rnw-scripts/eslint-config": "1.1.14",
|
|
64
64
|
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.0",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
<!--
|
|
14
14
|
Compiles Hermes-related code and sets it to the default JS engine.
|
|
15
|
-
Requires the "
|
|
15
|
+
Requires the "Microsoft.JavaScript.Hermes" NuGet package.
|
|
16
16
|
|
|
17
17
|
See https://microsoft.github.io/react-native-windows/docs/0.64/hermes
|
|
18
18
|
-->
|