react-native-windows 0.75.3 → 0.75.5
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/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +17 -15
- package/Microsoft.ReactNative/ComponentView.idl +11 -0
- package/Microsoft.ReactNative/Composition.Input.idl +1 -0
- package/Microsoft.ReactNative/CompositionSwitcher.idl +3 -0
- package/Microsoft.ReactNative/Fabric/ComponentView.cpp +7 -9
- package/Microsoft.ReactNative/Fabric/ComponentView.h +5 -6
- package/Microsoft.ReactNative/Fabric/Composition/Composition.Input.cpp +4 -0
- package/Microsoft.ReactNative/Fabric/Composition/Composition.Input.h +1 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionContextHelper.cpp +44 -13
- package/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.cpp +6 -1
- package/Microsoft.ReactNative/Fabric/Composition/CompositionHwndHost.cpp +1 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.cpp +11 -8
- package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.h +2 -3
- package/Microsoft.ReactNative/Fabric/Composition/DebuggingOverlayComponentView.cpp +8 -6
- package/Microsoft.ReactNative/Fabric/Composition/DebuggingOverlayComponentView.h +1 -2
- package/Microsoft.ReactNative/Fabric/Composition/FocusManager.cpp +20 -6
- package/Microsoft.ReactNative/Fabric/Composition/FocusManager.h +13 -6
- package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.cpp +2 -3
- package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.h +1 -2
- package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.cpp +72 -54
- package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.h +14 -4
- package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.cpp +26 -8
- package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.h +5 -2
- package/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.cpp +18 -7
- package/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.h +1 -2
- package/Microsoft.ReactNative/Fabric/Composition/SwitchComponentView.cpp +6 -6
- package/Microsoft.ReactNative/Fabric/Composition/SwitchComponentView.h +1 -2
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp +97 -140
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.h +8 -4
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputShadowNode.cpp +14 -11
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputShadowNode.h +4 -4
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputState.cpp +0 -13
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputState.h +0 -3
- package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.cpp +29 -4
- package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.h +2 -0
- package/Microsoft.ReactNative/Fabric/Composition/UnimplementedNativeViewComponentView.cpp +1 -2
- package/Microsoft.ReactNative/Fabric/Composition/UnimplementedNativeViewComponentView.h +1 -2
- package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.cpp +28 -3
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/TextLayoutManager.cpp +9 -2
- package/Microsoft.ReactNative/IReactViewComponentBuilder.idl +8 -1
- package/Microsoft.ReactNative/Modules/LogBoxModule.cpp +9 -0
- package/Microsoft.ReactNative/Modules/LogBoxModule.h +2 -0
- package/Microsoft.ReactNative/Modules/SampleTurboModule.cpp +104 -0
- package/Microsoft.ReactNative/Modules/SampleTurboModule.h +78 -0
- package/Microsoft.ReactNative/ReactHost/MsoReactContext.cpp +0 -7
- package/Microsoft.ReactNative/ReactHost/MsoReactContext.h +0 -5
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp +17 -1
- package/Microsoft.ReactNative/ReactInstanceSettingsBuilder.cpp +59 -0
- package/Microsoft.ReactNative/ReactInstanceSettingsBuilder.h +23 -0
- package/Microsoft.ReactNative/ReactNativeAppBuilder.cpp +179 -0
- package/Microsoft.ReactNative/ReactNativeAppBuilder.h +35 -0
- package/Microsoft.ReactNative/ReactNativeAppBuilder.idl +69 -0
- package/Microsoft.ReactNative/ReactNativeIsland.idl +2 -0
- package/Microsoft.ReactNative/ReactNativeWin32App.cpp +82 -0
- package/Microsoft.ReactNative/ReactNativeWin32App.h +38 -0
- package/Microsoft.ReactNative/packages.lock.json +67 -40
- package/PropertySheets/Generated/PackageVersion.g.props +3 -3
- package/Shared/Shared.vcxitems +33 -0
- package/Shared/Shared.vcxitems.filters +1 -0
- package/Shared/TurboModuleManager.cpp +0 -3
- package/package.json +17 -16
- package/templates/cpp-app/windows/MyApp/MyApp.cpp +1 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
#include "ReactNativeAppBuilder.g.h"
|
|
3
|
+
#include <winrt/Microsoft.UI.Content.h>
|
|
4
|
+
|
|
5
|
+
namespace winrt::Microsoft::ReactNative::implementation {
|
|
6
|
+
struct ReactNativeAppBuilder : ReactNativeAppBuilderT<ReactNativeAppBuilder> {
|
|
7
|
+
ReactNativeAppBuilder();
|
|
8
|
+
|
|
9
|
+
~ReactNativeAppBuilder();
|
|
10
|
+
|
|
11
|
+
winrt::Microsoft::ReactNative::ReactNativeAppBuilder AddPackageProviders(
|
|
12
|
+
winrt::Windows::Foundation::Collections::IVector<winrt::Microsoft::ReactNative::IReactPackageProvider> const
|
|
13
|
+
&packageProviders);
|
|
14
|
+
winrt::Microsoft::ReactNative::ReactNativeAppBuilder SetReactInstanceSettings(
|
|
15
|
+
winrt::Microsoft::ReactNative::ReactInstanceSettings const &settings);
|
|
16
|
+
|
|
17
|
+
// TODO: Currently, SetCompositor API is not exposed to the developer.
|
|
18
|
+
// Compositor depends on the DispatcherQueue created by DispatcherQueueController on a current thread
|
|
19
|
+
// or dedicated thread. So we also have to make a provision for setting DispatcherQueueController.
|
|
20
|
+
winrt::Microsoft::ReactNative::ReactNativeAppBuilder SetCompositor(
|
|
21
|
+
winrt::Microsoft::UI::Composition::Compositor const &compositor);
|
|
22
|
+
winrt::Microsoft::ReactNative::ReactNativeAppBuilder SetAppWindow(
|
|
23
|
+
winrt::Microsoft::UI::Windowing::AppWindow const &appWindow);
|
|
24
|
+
winrt::Microsoft::ReactNative::ReactNativeAppBuilder SetReactViewOptions(
|
|
25
|
+
winrt::Microsoft::ReactNative::ReactViewOptions const &reactViewOptions);
|
|
26
|
+
winrt::Microsoft::ReactNative::ReactNativeWin32App Build();
|
|
27
|
+
|
|
28
|
+
private:
|
|
29
|
+
winrt::Microsoft::ReactNative::ReactViewOptions m_reactViewOptions{};
|
|
30
|
+
winrt::Microsoft::ReactNative::ReactNativeWin32App m_reactNativeWin32App{nullptr};
|
|
31
|
+
};
|
|
32
|
+
} // namespace winrt::Microsoft::ReactNative::implementation
|
|
33
|
+
namespace winrt::Microsoft::ReactNative::factory_implementation {
|
|
34
|
+
struct ReactNativeAppBuilder : ReactNativeAppBuilderT<ReactNativeAppBuilder, implementation::ReactNativeAppBuilder> {};
|
|
35
|
+
} // namespace winrt::Microsoft::ReactNative::factory_implementation
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
|
|
2
|
+
import "ReactNativeHost.idl";
|
|
3
|
+
import "ReactNativeIsland.idl";
|
|
4
|
+
import "ReactInstanceSettings.idl";
|
|
5
|
+
import "IReactPackageProvider.idl";
|
|
6
|
+
|
|
7
|
+
#include "DocString.h"
|
|
8
|
+
|
|
9
|
+
namespace Microsoft.ReactNative {
|
|
10
|
+
|
|
11
|
+
[experimental]
|
|
12
|
+
DOC_STRING("ReactNativeWin32App is used to manage resources appropriately to be able to host ReactNative component in a contentIsland.")
|
|
13
|
+
runtimeclass ReactNativeWin32App {
|
|
14
|
+
// Properties
|
|
15
|
+
Microsoft.UI.Windowing.AppWindow AppWindow {get;};
|
|
16
|
+
|
|
17
|
+
Microsoft.UI.Composition.Compositor Compositor {get;};
|
|
18
|
+
|
|
19
|
+
Microsoft.UI.Content.DesktopChildSiteBridge DesktopChildSiteBridge {get;};
|
|
20
|
+
|
|
21
|
+
ReactNativeHost ReactNativeHost {get;};
|
|
22
|
+
|
|
23
|
+
ReactNativeIsland ReactNativeIsland {get;};
|
|
24
|
+
|
|
25
|
+
// Methods
|
|
26
|
+
void Start();
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[experimental]
|
|
30
|
+
DOC_STRING("This is the builder for creating ReactInstanceSettings.")
|
|
31
|
+
runtimeclass ReactInstanceSettingsBuilder
|
|
32
|
+
{
|
|
33
|
+
ReactInstanceSettingsBuilder();
|
|
34
|
+
|
|
35
|
+
// Properties
|
|
36
|
+
ReactInstanceSettings ReactInstanceSettings {get;};
|
|
37
|
+
|
|
38
|
+
// Methods
|
|
39
|
+
ReactInstanceSettingsBuilder UseDirectDebugger(Boolean state);
|
|
40
|
+
|
|
41
|
+
ReactInstanceSettingsBuilder UseDeveloperSupport(Boolean state);
|
|
42
|
+
|
|
43
|
+
ReactInstanceSettingsBuilder BundleRootPath(String path);
|
|
44
|
+
|
|
45
|
+
ReactInstanceSettingsBuilder DebugBundlePath(String path);
|
|
46
|
+
|
|
47
|
+
ReactInstanceSettingsBuilder JavaScriptBundleFile(String file);
|
|
48
|
+
|
|
49
|
+
ReactInstanceSettingsBuilder UseFastRefresh(Boolean state);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[experimental]
|
|
53
|
+
DOC_STRING("ReactNativeAppBuilder initializes all the required infrastructure for a Win32 Fabric Application.")
|
|
54
|
+
runtimeclass ReactNativeAppBuilder
|
|
55
|
+
{
|
|
56
|
+
ReactNativeAppBuilder();
|
|
57
|
+
|
|
58
|
+
// Methods
|
|
59
|
+
ReactNativeAppBuilder AddPackageProviders(Windows.Foundation.Collections.IVector<Microsoft.ReactNative.IReactPackageProvider> packageProviders);
|
|
60
|
+
|
|
61
|
+
ReactNativeAppBuilder SetReactInstanceSettings(ReactInstanceSettings settings);
|
|
62
|
+
|
|
63
|
+
ReactNativeAppBuilder SetAppWindow(Microsoft.UI.Windowing.AppWindow appWindow);
|
|
64
|
+
|
|
65
|
+
ReactNativeAppBuilder SetReactViewOptions(Microsoft.ReactNative.ReactViewOptions reactViewOptions);
|
|
66
|
+
|
|
67
|
+
ReactNativeWin32App Build();
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -98,6 +98,8 @@ namespace Microsoft.ReactNative
|
|
|
98
98
|
DOC_STRING("ScaleFactor for this windows (DPI/96)")
|
|
99
99
|
Single ScaleFactor {get; set;};
|
|
100
100
|
|
|
101
|
+
Single FontSizeMultiplier { get; };
|
|
102
|
+
|
|
101
103
|
DOC_STRING("Move focus to this @ReactNativeIsland")
|
|
102
104
|
FocusNavigationResult NavigateFocus(FocusNavigationRequest request);
|
|
103
105
|
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
#include "pch.h"
|
|
2
|
+
#include "ReactNativeWin32App.h"
|
|
3
|
+
#include "ReactNativeWin32App.g.cpp"
|
|
4
|
+
#include "ReactNativeHost.h"
|
|
5
|
+
#include "winrt/Microsoft.UI.Composition.h"
|
|
6
|
+
#include "winrt/Microsoft.UI.Content.h"
|
|
7
|
+
#include "winrt/Microsoft.UI.Interop.h"
|
|
8
|
+
#include "winrt/Microsoft.UI.Windowing.h"
|
|
9
|
+
|
|
10
|
+
namespace winrt::Microsoft::ReactNative::implementation {
|
|
11
|
+
ReactNativeWin32App::ReactNativeWin32App() {}
|
|
12
|
+
|
|
13
|
+
ReactNativeWin32App::~ReactNativeWin32App() {
|
|
14
|
+
m_desktopChildSiteBridge = nullptr;
|
|
15
|
+
|
|
16
|
+
// Destroy all Composition objects
|
|
17
|
+
m_compositor.Close();
|
|
18
|
+
m_compositor = nullptr;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
void ReactNativeWin32App::AppWindow(winrt::Microsoft::UI::Windowing::AppWindow const &appWindow) {
|
|
22
|
+
m_appWindow = appWindow;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
winrt::Microsoft::UI::Windowing::AppWindow ReactNativeWin32App::AppWindow() {
|
|
26
|
+
return m_appWindow;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
void ReactNativeWin32App::Compositor(winrt::Microsoft::UI::Composition::Compositor const &compositor) {
|
|
30
|
+
m_compositor = compositor;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
winrt::Microsoft::UI::Composition::Compositor ReactNativeWin32App::Compositor() {
|
|
34
|
+
return m_compositor;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
winrt::Microsoft::ReactNative::ReactNativeIsland ReactNativeWin32App::ReactNativeIsland() {
|
|
38
|
+
return m_reactNativeIsland;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
void ReactNativeWin32App::ReactNativeIsland(winrt::Microsoft::ReactNative::ReactNativeIsland const &reactNativeIsland) {
|
|
42
|
+
m_reactNativeIsland = reactNativeIsland;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
winrt::Microsoft::UI::Content::DesktopChildSiteBridge ReactNativeWin32App::DesktopChildSiteBridge() {
|
|
46
|
+
return m_desktopChildSiteBridge;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
void ReactNativeWin32App::DesktopChildSiteBridge(
|
|
50
|
+
winrt::Microsoft::UI::Content::DesktopChildSiteBridge const &desktopChildSiteBridge) {
|
|
51
|
+
m_desktopChildSiteBridge = desktopChildSiteBridge;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
winrt::Microsoft::ReactNative::ReactNativeHost ReactNativeWin32App::ReactNativeHost() {
|
|
55
|
+
if (m_host == nullptr) {
|
|
56
|
+
m_host = winrt::make<winrt::Microsoft::ReactNative::implementation::ReactNativeHost>();
|
|
57
|
+
}
|
|
58
|
+
return m_host;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
void ReactNativeWin32App::ReactNativeHost(winrt::Microsoft::ReactNative::ReactNativeHost const &host) {
|
|
62
|
+
m_host = host;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
void ReactNativeWin32App::DispatchQueueController(
|
|
66
|
+
winrt::Microsoft::UI::Dispatching::DispatcherQueueController const &dispatcherQueueController) {
|
|
67
|
+
m_dispatcherQueueController = dispatcherQueueController;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
void ReactNativeWin32App::Start() {
|
|
71
|
+
m_desktopChildSiteBridge.Show();
|
|
72
|
+
|
|
73
|
+
// Run the main application event loop
|
|
74
|
+
m_dispatcherQueueController.DispatcherQueue().RunEventLoop();
|
|
75
|
+
|
|
76
|
+
// Rundown the DispatcherQueue. This drains the queue and raises events to let components
|
|
77
|
+
// know the message loop has finished.
|
|
78
|
+
m_dispatcherQueueController.ShutdownQueue();
|
|
79
|
+
|
|
80
|
+
m_desktopChildSiteBridge.Close();
|
|
81
|
+
}
|
|
82
|
+
} // namespace winrt::Microsoft::ReactNative::implementation
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
#include "ReactNativeWin32App.g.h"
|
|
3
|
+
#include "winrt/Microsoft.UI.Dispatching.h"
|
|
4
|
+
|
|
5
|
+
namespace winrt::Microsoft::ReactNative::implementation {
|
|
6
|
+
struct ReactNativeWin32App : ReactNativeWin32AppT<ReactNativeWin32App> {
|
|
7
|
+
ReactNativeWin32App();
|
|
8
|
+
~ReactNativeWin32App();
|
|
9
|
+
|
|
10
|
+
void AppWindow(winrt::Microsoft::UI::Windowing::AppWindow const &appWindow);
|
|
11
|
+
winrt::Microsoft::UI::Windowing::AppWindow AppWindow();
|
|
12
|
+
|
|
13
|
+
winrt::Microsoft::UI::Composition::Compositor Compositor();
|
|
14
|
+
void Compositor(winrt::Microsoft::UI::Composition::Compositor const &compositor);
|
|
15
|
+
|
|
16
|
+
winrt::Microsoft::ReactNative::ReactNativeIsland ReactNativeIsland();
|
|
17
|
+
void ReactNativeIsland(winrt::Microsoft::ReactNative::ReactNativeIsland const &reactNativeIsland);
|
|
18
|
+
|
|
19
|
+
winrt::Microsoft::UI::Content::DesktopChildSiteBridge DesktopChildSiteBridge();
|
|
20
|
+
void DesktopChildSiteBridge(winrt::Microsoft::UI::Content::DesktopChildSiteBridge const &desktopChildSiteBridge);
|
|
21
|
+
|
|
22
|
+
void DispatchQueueController(
|
|
23
|
+
winrt::Microsoft::UI::Dispatching::DispatcherQueueController const &dispatcherQueueController);
|
|
24
|
+
|
|
25
|
+
winrt::Microsoft::ReactNative::ReactNativeHost ReactNativeHost();
|
|
26
|
+
void ReactNativeHost(winrt::Microsoft::ReactNative::ReactNativeHost const &host);
|
|
27
|
+
|
|
28
|
+
void Start();
|
|
29
|
+
|
|
30
|
+
private:
|
|
31
|
+
winrt::Microsoft::UI::Windowing::AppWindow m_appWindow{nullptr};
|
|
32
|
+
winrt::Microsoft::UI::Composition::Compositor m_compositor{nullptr};
|
|
33
|
+
winrt::Microsoft::UI::Dispatching::DispatcherQueueController m_dispatcherQueueController{nullptr};
|
|
34
|
+
winrt::Microsoft::ReactNative::ReactNativeHost m_host{nullptr};
|
|
35
|
+
winrt::Microsoft::ReactNative::ReactNativeIsland m_reactNativeIsland{nullptr};
|
|
36
|
+
winrt::Microsoft::UI::Content::DesktopChildSiteBridge m_desktopChildSiteBridge{nullptr};
|
|
37
|
+
};
|
|
38
|
+
} // namespace winrt::Microsoft::ReactNative::implementation
|
|
@@ -40,20 +40,19 @@
|
|
|
40
40
|
"resolved": "2.0.230706.1",
|
|
41
41
|
"contentHash": "l0D7oCw/5X+xIKHqZTi62TtV+1qeSz7KVluNFdrJ9hXsst4ghvqQ/Yhura7JqRdZWBXAuDS0G0KwALptdoxweQ=="
|
|
42
42
|
},
|
|
43
|
-
"Microsoft.
|
|
44
|
-
"type": "
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg=="
|
|
43
|
+
"Microsoft.WindowsAppSDK": {
|
|
44
|
+
"type": "Direct",
|
|
45
|
+
"requested": "[1.5.240227000, )",
|
|
46
|
+
"resolved": "1.5.240227000",
|
|
47
|
+
"contentHash": "6rESOsREi8534J7IDpNfFYPvxQaSleXKt4A7ZYPeQyckNMQ0o1W0jZ420bJbEMz9Cw/S/8IbpPftLLZ9w/GTCQ==",
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
|
|
50
|
+
}
|
|
52
51
|
},
|
|
53
|
-
"Microsoft.
|
|
52
|
+
"Microsoft.Windows.SDK.BuildTools": {
|
|
54
53
|
"type": "Transitive",
|
|
55
|
-
"resolved": "
|
|
56
|
-
"contentHash": "
|
|
54
|
+
"resolved": "10.0.22621.756",
|
|
55
|
+
"contentHash": "7ZL2sFSioYm1Ry067Kw1hg0SCcW5kuVezC2SwjGbcPE61Nn+gTbH86T73G3LcEOVj0S3IZzNuE/29gZvOLS7VA=="
|
|
57
56
|
},
|
|
58
57
|
"common": {
|
|
59
58
|
"type": "Project",
|
|
@@ -80,52 +79,80 @@
|
|
|
80
79
|
}
|
|
81
80
|
},
|
|
82
81
|
"native,Version=v0.0/win10-arm": {
|
|
83
|
-
"Microsoft.
|
|
84
|
-
"type": "
|
|
85
|
-
"
|
|
86
|
-
"
|
|
82
|
+
"Microsoft.WindowsAppSDK": {
|
|
83
|
+
"type": "Direct",
|
|
84
|
+
"requested": "[1.5.240227000, )",
|
|
85
|
+
"resolved": "1.5.240227000",
|
|
86
|
+
"contentHash": "6rESOsREi8534J7IDpNfFYPvxQaSleXKt4A7ZYPeQyckNMQ0o1W0jZ420bJbEMz9Cw/S/8IbpPftLLZ9w/GTCQ==",
|
|
87
|
+
"dependencies": {
|
|
88
|
+
"Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
|
|
89
|
+
}
|
|
87
90
|
}
|
|
88
91
|
},
|
|
89
92
|
"native,Version=v0.0/win10-arm-aot": {
|
|
90
|
-
"Microsoft.
|
|
91
|
-
"type": "
|
|
92
|
-
"
|
|
93
|
-
"
|
|
93
|
+
"Microsoft.WindowsAppSDK": {
|
|
94
|
+
"type": "Direct",
|
|
95
|
+
"requested": "[1.5.240227000, )",
|
|
96
|
+
"resolved": "1.5.240227000",
|
|
97
|
+
"contentHash": "6rESOsREi8534J7IDpNfFYPvxQaSleXKt4A7ZYPeQyckNMQ0o1W0jZ420bJbEMz9Cw/S/8IbpPftLLZ9w/GTCQ==",
|
|
98
|
+
"dependencies": {
|
|
99
|
+
"Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
|
|
100
|
+
}
|
|
94
101
|
}
|
|
95
102
|
},
|
|
96
103
|
"native,Version=v0.0/win10-arm64-aot": {
|
|
97
|
-
"Microsoft.
|
|
98
|
-
"type": "
|
|
99
|
-
"
|
|
100
|
-
"
|
|
104
|
+
"Microsoft.WindowsAppSDK": {
|
|
105
|
+
"type": "Direct",
|
|
106
|
+
"requested": "[1.5.240227000, )",
|
|
107
|
+
"resolved": "1.5.240227000",
|
|
108
|
+
"contentHash": "6rESOsREi8534J7IDpNfFYPvxQaSleXKt4A7ZYPeQyckNMQ0o1W0jZ420bJbEMz9Cw/S/8IbpPftLLZ9w/GTCQ==",
|
|
109
|
+
"dependencies": {
|
|
110
|
+
"Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
|
|
111
|
+
}
|
|
101
112
|
}
|
|
102
113
|
},
|
|
103
114
|
"native,Version=v0.0/win10-x64": {
|
|
104
|
-
"Microsoft.
|
|
105
|
-
"type": "
|
|
106
|
-
"
|
|
107
|
-
"
|
|
115
|
+
"Microsoft.WindowsAppSDK": {
|
|
116
|
+
"type": "Direct",
|
|
117
|
+
"requested": "[1.5.240227000, )",
|
|
118
|
+
"resolved": "1.5.240227000",
|
|
119
|
+
"contentHash": "6rESOsREi8534J7IDpNfFYPvxQaSleXKt4A7ZYPeQyckNMQ0o1W0jZ420bJbEMz9Cw/S/8IbpPftLLZ9w/GTCQ==",
|
|
120
|
+
"dependencies": {
|
|
121
|
+
"Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
|
|
122
|
+
}
|
|
108
123
|
}
|
|
109
124
|
},
|
|
110
125
|
"native,Version=v0.0/win10-x64-aot": {
|
|
111
|
-
"Microsoft.
|
|
112
|
-
"type": "
|
|
113
|
-
"
|
|
114
|
-
"
|
|
126
|
+
"Microsoft.WindowsAppSDK": {
|
|
127
|
+
"type": "Direct",
|
|
128
|
+
"requested": "[1.5.240227000, )",
|
|
129
|
+
"resolved": "1.5.240227000",
|
|
130
|
+
"contentHash": "6rESOsREi8534J7IDpNfFYPvxQaSleXKt4A7ZYPeQyckNMQ0o1W0jZ420bJbEMz9Cw/S/8IbpPftLLZ9w/GTCQ==",
|
|
131
|
+
"dependencies": {
|
|
132
|
+
"Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
|
|
133
|
+
}
|
|
115
134
|
}
|
|
116
135
|
},
|
|
117
136
|
"native,Version=v0.0/win10-x86": {
|
|
118
|
-
"Microsoft.
|
|
119
|
-
"type": "
|
|
120
|
-
"
|
|
121
|
-
"
|
|
137
|
+
"Microsoft.WindowsAppSDK": {
|
|
138
|
+
"type": "Direct",
|
|
139
|
+
"requested": "[1.5.240227000, )",
|
|
140
|
+
"resolved": "1.5.240227000",
|
|
141
|
+
"contentHash": "6rESOsREi8534J7IDpNfFYPvxQaSleXKt4A7ZYPeQyckNMQ0o1W0jZ420bJbEMz9Cw/S/8IbpPftLLZ9w/GTCQ==",
|
|
142
|
+
"dependencies": {
|
|
143
|
+
"Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
|
|
144
|
+
}
|
|
122
145
|
}
|
|
123
146
|
},
|
|
124
147
|
"native,Version=v0.0/win10-x86-aot": {
|
|
125
|
-
"Microsoft.
|
|
126
|
-
"type": "
|
|
127
|
-
"
|
|
128
|
-
"
|
|
148
|
+
"Microsoft.WindowsAppSDK": {
|
|
149
|
+
"type": "Direct",
|
|
150
|
+
"requested": "[1.5.240227000, )",
|
|
151
|
+
"resolved": "1.5.240227000",
|
|
152
|
+
"contentHash": "6rESOsREi8534J7IDpNfFYPvxQaSleXKt4A7ZYPeQyckNMQ0o1W0jZ420bJbEMz9Cw/S/8IbpPftLLZ9w/GTCQ==",
|
|
153
|
+
"dependencies": {
|
|
154
|
+
"Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
|
|
155
|
+
}
|
|
129
156
|
}
|
|
130
157
|
}
|
|
131
158
|
}
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
-->
|
|
11
11
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
12
12
|
<PropertyGroup>
|
|
13
|
-
<ReactNativeWindowsVersion>0.75.
|
|
13
|
+
<ReactNativeWindowsVersion>0.75.5</ReactNativeWindowsVersion>
|
|
14
14
|
<ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
|
|
15
15
|
<ReactNativeWindowsMinor>75</ReactNativeWindowsMinor>
|
|
16
|
-
<ReactNativeWindowsPatch>
|
|
16
|
+
<ReactNativeWindowsPatch>5</ReactNativeWindowsPatch>
|
|
17
17
|
<ReactNativeWindowsCanary>false</ReactNativeWindowsCanary>
|
|
18
|
-
<ReactNativeWindowsCommitId>
|
|
18
|
+
<ReactNativeWindowsCommitId>91192a3cc0a59ab92355a55721d20e04eade9648</ReactNativeWindowsCommitId>
|
|
19
19
|
</PropertyGroup>
|
|
20
20
|
</Project>
|
package/Shared/Shared.vcxitems
CHANGED
|
@@ -219,6 +219,21 @@
|
|
|
219
219
|
</ClCompile>
|
|
220
220
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\SynchronousEventBeat.cpp">
|
|
221
221
|
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
222
|
+
</ClCompile>
|
|
223
|
+
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeWin32App.cpp">
|
|
224
|
+
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
225
|
+
<DependentUpon>$(ReactNativeWindowsDir)Microsoft.ReactNative\ReactNativeAppBuilder.idl</DependentUpon>
|
|
226
|
+
<SubType>Code</SubType>
|
|
227
|
+
</ClCompile>
|
|
228
|
+
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeAppBuilder.cpp">
|
|
229
|
+
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
230
|
+
<DependentUpon>$(ReactNativeWindowsDir)Microsoft.ReactNative\ReactNativeAppBuilder.idl</DependentUpon>
|
|
231
|
+
<SubType>Code</SubType>
|
|
232
|
+
</ClCompile>
|
|
233
|
+
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactInstanceSettingsBuilder.cpp">
|
|
234
|
+
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
235
|
+
<DependentUpon>$(ReactNativeWindowsDir)Microsoft.ReactNative\ReactNativeAppBuilder.idl</DependentUpon>
|
|
236
|
+
<SubType>Code</SubType>
|
|
222
237
|
</ClCompile>
|
|
223
238
|
<ClCompile Include="$(MSBuildThisFileDirectory)BaseFileReaderResource.cpp" />
|
|
224
239
|
<ClCompile Include="$(MSBuildThisFileDirectory)BaseScriptStoreImpl.cpp" />
|
|
@@ -322,6 +337,21 @@
|
|
|
322
337
|
<DependentUpon>$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\JsiApi.idl</DependentUpon>
|
|
323
338
|
</ClInclude>
|
|
324
339
|
<ClInclude Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\SchedulerSettings.h" />
|
|
340
|
+
<ClInclude Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeWin32App.h">
|
|
341
|
+
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
342
|
+
<DependentUpon>$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeAppBuilder.idl</DependentUpon>
|
|
343
|
+
<SubType>Code</SubType>
|
|
344
|
+
</ClInclude>
|
|
345
|
+
<ClInclude Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeAppBuilder.h">
|
|
346
|
+
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
347
|
+
<DependentUpon>$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeAppBuilder.idl</DependentUpon>
|
|
348
|
+
<SubType>Code</SubType>
|
|
349
|
+
</ClInclude>
|
|
350
|
+
<ClInclude Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactInstanceSettingsBuilder.h">
|
|
351
|
+
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
352
|
+
<DependentUpon>$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeAppBuilder.idl</DependentUpon>
|
|
353
|
+
<SubType>Code</SubType>
|
|
354
|
+
</ClInclude>
|
|
325
355
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\DynamicReader.cpp">
|
|
326
356
|
<DependentUpon>$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\IJSValueReader.idl</DependentUpon>
|
|
327
357
|
</ClCompile>
|
|
@@ -376,6 +406,7 @@
|
|
|
376
406
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Timer.cpp">
|
|
377
407
|
<DependentUpon>$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Timer.idl</DependentUpon>
|
|
378
408
|
</ClCompile>
|
|
409
|
+
|
|
379
410
|
<ClInclude Include="$(MSBuildThisFileDirectory)AbiSafe.h" />
|
|
380
411
|
<ClInclude Include="$(MSBuildThisFileDirectory)BaseFileReaderResource.h" />
|
|
381
412
|
<ClInclude Include="$(MSBuildThisFileDirectory)CppRuntimeOptions.h" />
|
|
@@ -467,6 +498,7 @@
|
|
|
467
498
|
<ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Modules\PlatformConstantsWinModule.cpp" />
|
|
468
499
|
<ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Modules\ExceptionsManager.cpp" />
|
|
469
500
|
<ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Modules\Timing.cpp" />
|
|
501
|
+
<ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Modules\SampleTurboModule.cpp" />
|
|
470
502
|
<ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Modules\SourceCode.cpp" />
|
|
471
503
|
<ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\NativeModulesProvider.cpp" />
|
|
472
504
|
<ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\ReactHost\AsyncActionQueue.cpp" />
|
|
@@ -662,6 +694,7 @@
|
|
|
662
694
|
<Midl Condition="'$(UseFabric)' == 'true' OR '$(IncludeFabricInterface)' == 'true'" Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Theme.idl" />
|
|
663
695
|
<Midl Condition="'$(UseFabric)' == 'true' OR '$(IncludeFabricInterface)' == 'true'" Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\UriImageManager.idl" />
|
|
664
696
|
<Midl Condition="'$(UseFabric)' == 'true' OR '$(IncludeFabricInterface)' == 'true'" Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\ViewProps.idl" />
|
|
697
|
+
<Midl Condition="'$(UseFabric)' == 'true' OR '$(IncludeFabricInterface)' == 'true'" Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\ReactNativeAppBuilder.idl" />
|
|
665
698
|
</ItemGroup>
|
|
666
699
|
<ItemGroup>
|
|
667
700
|
<ClInclude Include="$(NodeApiJsiDir)src\ApiLoaders\HermesApi.h" />
|
|
@@ -304,6 +304,7 @@
|
|
|
304
304
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\AbiShadowNode.cpp" />
|
|
305
305
|
<ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Modules\PlatformConstantsWinModule.cpp" />
|
|
306
306
|
<ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Modules\ExceptionsManager.cpp" />
|
|
307
|
+
<ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Modules\SampleTurboModule.cpp" />
|
|
307
308
|
<ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Modules\SourceCode.cpp" />
|
|
308
309
|
<ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Modules\Timing.cpp" />
|
|
309
310
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\featureflags\ReactNativeFeatureFlags.cpp" />
|
|
@@ -30,9 +30,6 @@ std::shared_ptr<TurboModule> TurboModuleManager::getModule(const std::string &mo
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
if (moduleName.compare("SampleTurboModule") == 0) {
|
|
34
|
-
return m_modules.emplace(moduleName, std::make_shared<SampleTurboCxxModule>(m_callInvoker)).first->second;
|
|
35
|
-
}
|
|
36
33
|
return nullptr;
|
|
37
34
|
}
|
|
38
35
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-windows",
|
|
3
|
-
"version": "0.75.
|
|
3
|
+
"version": "0.75.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,23 +23,24 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@babel/runtime": "^7.0.0",
|
|
25
25
|
"@jest/create-cache-key-function": "^29.6.3",
|
|
26
|
-
"@react-native-community/cli": "14.
|
|
27
|
-
"@react-native-community/cli-platform-android": "14.
|
|
28
|
-
"@react-native-community/cli-platform-ios": "14.
|
|
29
|
-
"@react-native-windows/cli": "0.75.
|
|
26
|
+
"@react-native-community/cli": "14.1.0",
|
|
27
|
+
"@react-native-community/cli-platform-android": "14.1.0",
|
|
28
|
+
"@react-native-community/cli-platform-ios": "14.1.0",
|
|
29
|
+
"@react-native-windows/cli": "0.75.4",
|
|
30
30
|
"@react-native/assets": "1.0.0",
|
|
31
|
-
"@react-native/assets-registry": "0.75.
|
|
32
|
-
"@react-native/codegen": "0.75.
|
|
33
|
-
"@react-native/community-cli-plugin": "0.75.
|
|
34
|
-
"@react-native/gradle-plugin": "0.75.
|
|
35
|
-
"@react-native/js-polyfills": "0.75.
|
|
36
|
-
"@react-native/normalize-colors": "0.75.
|
|
37
|
-
"@react-native/virtualized-lists": "0.75.
|
|
31
|
+
"@react-native/assets-registry": "0.75.3",
|
|
32
|
+
"@react-native/codegen": "0.75.3",
|
|
33
|
+
"@react-native/community-cli-plugin": "0.75.3",
|
|
34
|
+
"@react-native/gradle-plugin": "0.75.3",
|
|
35
|
+
"@react-native/js-polyfills": "0.75.3",
|
|
36
|
+
"@react-native/normalize-colors": "0.75.3",
|
|
37
|
+
"@react-native/virtualized-lists": "0.75.3",
|
|
38
38
|
"abort-controller": "^3.0.0",
|
|
39
39
|
"anser": "^1.4.9",
|
|
40
40
|
"ansi-regex": "^5.0.0",
|
|
41
41
|
"base64-js": "^1.5.1",
|
|
42
42
|
"chalk": "^4.0.0",
|
|
43
|
+
"commander": "^9.4.1",
|
|
43
44
|
"event-target-shim": "^5.0.1",
|
|
44
45
|
"flow-enums-runtime": "^0.0.6",
|
|
45
46
|
"glob": "^7.1.1",
|
|
@@ -66,8 +67,8 @@
|
|
|
66
67
|
"yargs": "^17.6.2"
|
|
67
68
|
},
|
|
68
69
|
"devDependencies": {
|
|
69
|
-
"@react-native-windows/codegen": "0.75.
|
|
70
|
-
"@react-native/metro-config": "0.75.
|
|
70
|
+
"@react-native-windows/codegen": "0.75.2",
|
|
71
|
+
"@react-native/metro-config": "0.75.3",
|
|
71
72
|
"@rnw-scripts/babel-react-native-config": "0.0.0",
|
|
72
73
|
"@rnw-scripts/eslint-config": "1.2.23",
|
|
73
74
|
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.27",
|
|
@@ -83,7 +84,7 @@
|
|
|
83
84
|
"just-scripts": "^1.3.3",
|
|
84
85
|
"prettier": "2.8.8",
|
|
85
86
|
"react": "18.3.1",
|
|
86
|
-
"react-native": "0.75.
|
|
87
|
+
"react-native": "0.75.3",
|
|
87
88
|
"react-native-platform-override": "^1.9.42",
|
|
88
89
|
"react-refresh": "^0.14.0",
|
|
89
90
|
"typescript": "5.0.4"
|
|
@@ -91,7 +92,7 @@
|
|
|
91
92
|
"peerDependencies": {
|
|
92
93
|
"@types/react": "^18.2.6",
|
|
93
94
|
"react": "^18.2.0",
|
|
94
|
-
"react-native": "^0.75.
|
|
95
|
+
"react-native": "^0.75.3"
|
|
95
96
|
},
|
|
96
97
|
"beachball": {
|
|
97
98
|
"defaultNpmTag": "latest",
|
|
@@ -35,6 +35,7 @@ void UpdateRootViewSizeToAppWindow(
|
|
|
35
35
|
if (window.Presenter().as<winrt::Microsoft::UI::Windowing::OverlappedPresenter>().State() !=
|
|
36
36
|
winrt::Microsoft::UI::Windowing::OverlappedPresenterState::Minimized) {
|
|
37
37
|
winrt::Microsoft::ReactNative::LayoutConstraints constraints;
|
|
38
|
+
constraints.LayoutDirection = winrt::Microsoft::ReactNative::LayoutDirection::Undefined;
|
|
38
39
|
constraints.MaximumSize = constraints.MinimumSize = size;
|
|
39
40
|
rootView.Arrange(constraints, {0,0});
|
|
40
41
|
}
|