react-native-windows 0.74.21 → 0.74.22
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/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 +18 -8
- package/Microsoft.ReactNative/Fabric/ComponentView.h +7 -5
- 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 +75 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.h +8 -2
- package/Microsoft.ReactNative/Fabric/Composition/CompositionHwndHost.cpp +1 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.cpp +34 -7
- package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.h +3 -2
- 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 +80 -55
- package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.h +15 -4
- package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.cpp +37 -8
- package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.h +7 -2
- package/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.cpp +14 -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/TextDrawing.cpp +1 -2
- package/Microsoft.ReactNative/Fabric/Composition/TextDrawing.h +1 -1
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp +104 -152
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.h +7 -3
- 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/Theme.cpp +12 -4
- package/Microsoft.ReactNative/Fabric/Composition/TooltipService.cpp +338 -0
- package/Microsoft.ReactNative/Fabric/Composition/TooltipService.h +66 -0
- package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.cpp +37 -4
- package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.h +3 -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 +31 -3
- package/Microsoft.ReactNative/Fabric/ReactTaggedView.h +4 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewProps.cpp +5 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewProps.h +1 -1
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewTraitsInitializer.h +1 -1
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/TextLayoutManager.cpp +9 -2
- package/Microsoft.ReactNative/IReactViewComponentBuilder.idl +8 -1
- package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +1 -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/ReactCoreInjection.h +0 -1
- 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/Timer.idl +1 -1
- package/Microsoft.ReactNative/packages.lock.json +0 -10
- package/PropertySheets/Generated/PackageVersion.g.props +3 -3
- package/Shared/Shared.vcxitems +36 -0
- package/Shared/Shared.vcxitems.filters +2 -0
- package/Shared/TurboModuleManager.cpp +0 -3
- package/package.json +3 -3
- package/templates/cpp-app/windows/MyApp/MyApp.cpp +1 -0
|
@@ -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
|
|
@@ -49,16 +49,6 @@
|
|
|
49
49
|
"Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
|
-
"Microsoft.Build.Tasks.Git": {
|
|
53
|
-
"type": "Transitive",
|
|
54
|
-
"resolved": "1.1.1",
|
|
55
|
-
"contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q=="
|
|
56
|
-
},
|
|
57
|
-
"Microsoft.SourceLink.Common": {
|
|
58
|
-
"type": "Transitive",
|
|
59
|
-
"resolved": "1.1.1",
|
|
60
|
-
"contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg=="
|
|
61
|
-
},
|
|
62
52
|
"Microsoft.Windows.SDK.BuildTools": {
|
|
63
53
|
"type": "Transitive",
|
|
64
54
|
"resolved": "10.0.22621.756",
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
-->
|
|
11
11
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
12
12
|
<PropertyGroup>
|
|
13
|
-
<ReactNativeWindowsVersion>0.74.
|
|
13
|
+
<ReactNativeWindowsVersion>0.74.22</ReactNativeWindowsVersion>
|
|
14
14
|
<ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
|
|
15
15
|
<ReactNativeWindowsMinor>74</ReactNativeWindowsMinor>
|
|
16
|
-
<ReactNativeWindowsPatch>
|
|
16
|
+
<ReactNativeWindowsPatch>22</ReactNativeWindowsPatch>
|
|
17
17
|
<ReactNativeWindowsCanary>false</ReactNativeWindowsCanary>
|
|
18
|
-
<ReactNativeWindowsCommitId>
|
|
18
|
+
<ReactNativeWindowsCommitId>917bfde9006fda17e83c8f9b29ea4ed183e6afc3</ReactNativeWindowsCommitId>
|
|
19
19
|
</PropertyGroup>
|
|
20
20
|
</Project>
|
package/Shared/Shared.vcxitems
CHANGED
|
@@ -150,6 +150,9 @@
|
|
|
150
150
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\TextDrawing.cpp">
|
|
151
151
|
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
152
152
|
</ClCompile>
|
|
153
|
+
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\TooltipService.cpp">
|
|
154
|
+
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
155
|
+
</ClCompile>
|
|
153
156
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\UiaHelpers.cpp">
|
|
154
157
|
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
155
158
|
</ClCompile>
|
|
@@ -219,6 +222,21 @@
|
|
|
219
222
|
</ClCompile>
|
|
220
223
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\SynchronousEventBeat.cpp">
|
|
221
224
|
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
225
|
+
</ClCompile>
|
|
226
|
+
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeWin32App.cpp">
|
|
227
|
+
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
228
|
+
<DependentUpon>$(ReactNativeWindowsDir)Microsoft.ReactNative\ReactNativeAppBuilder.idl</DependentUpon>
|
|
229
|
+
<SubType>Code</SubType>
|
|
230
|
+
</ClCompile>
|
|
231
|
+
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeAppBuilder.cpp">
|
|
232
|
+
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
233
|
+
<DependentUpon>$(ReactNativeWindowsDir)Microsoft.ReactNative\ReactNativeAppBuilder.idl</DependentUpon>
|
|
234
|
+
<SubType>Code</SubType>
|
|
235
|
+
</ClCompile>
|
|
236
|
+
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactInstanceSettingsBuilder.cpp">
|
|
237
|
+
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
238
|
+
<DependentUpon>$(ReactNativeWindowsDir)Microsoft.ReactNative\ReactNativeAppBuilder.idl</DependentUpon>
|
|
239
|
+
<SubType>Code</SubType>
|
|
222
240
|
</ClCompile>
|
|
223
241
|
<ClCompile Include="$(MSBuildThisFileDirectory)BaseFileReaderResource.cpp" />
|
|
224
242
|
<ClCompile Include="$(MSBuildThisFileDirectory)BaseScriptStoreImpl.cpp" />
|
|
@@ -322,6 +340,21 @@
|
|
|
322
340
|
<DependentUpon>$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\JsiApi.idl</DependentUpon>
|
|
323
341
|
</ClInclude>
|
|
324
342
|
<ClInclude Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\SchedulerSettings.h" />
|
|
343
|
+
<ClInclude Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeWin32App.h">
|
|
344
|
+
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
345
|
+
<DependentUpon>$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeAppBuilder.idl</DependentUpon>
|
|
346
|
+
<SubType>Code</SubType>
|
|
347
|
+
</ClInclude>
|
|
348
|
+
<ClInclude Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeAppBuilder.h">
|
|
349
|
+
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
350
|
+
<DependentUpon>$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeAppBuilder.idl</DependentUpon>
|
|
351
|
+
<SubType>Code</SubType>
|
|
352
|
+
</ClInclude>
|
|
353
|
+
<ClInclude Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactInstanceSettingsBuilder.h">
|
|
354
|
+
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
355
|
+
<DependentUpon>$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeAppBuilder.idl</DependentUpon>
|
|
356
|
+
<SubType>Code</SubType>
|
|
357
|
+
</ClInclude>
|
|
325
358
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\DynamicReader.cpp">
|
|
326
359
|
<DependentUpon>$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\IJSValueReader.idl</DependentUpon>
|
|
327
360
|
</ClCompile>
|
|
@@ -376,6 +409,7 @@
|
|
|
376
409
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Timer.cpp">
|
|
377
410
|
<DependentUpon>$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Timer.idl</DependentUpon>
|
|
378
411
|
</ClCompile>
|
|
412
|
+
|
|
379
413
|
<ClInclude Include="$(MSBuildThisFileDirectory)AbiSafe.h" />
|
|
380
414
|
<ClInclude Include="$(MSBuildThisFileDirectory)BaseFileReaderResource.h" />
|
|
381
415
|
<ClInclude Include="$(MSBuildThisFileDirectory)CppRuntimeOptions.h" />
|
|
@@ -467,6 +501,7 @@
|
|
|
467
501
|
<ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Modules\PlatformConstantsWinModule.cpp" />
|
|
468
502
|
<ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Modules\ExceptionsManager.cpp" />
|
|
469
503
|
<ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Modules\Timing.cpp" />
|
|
504
|
+
<ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Modules\SampleTurboModule.cpp" />
|
|
470
505
|
<ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Modules\SourceCode.cpp" />
|
|
471
506
|
<ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\NativeModulesProvider.cpp" />
|
|
472
507
|
<ClCompile Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\ReactHost\AsyncActionQueue.cpp" />
|
|
@@ -656,6 +691,7 @@
|
|
|
656
691
|
<Midl Condition="'$(UseFabric)' == 'true' OR '$(IncludeFabricInterface)' == 'true'" Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Theme.idl" />
|
|
657
692
|
<Midl Condition="'$(UseFabric)' == 'true' OR '$(IncludeFabricInterface)' == 'true'" Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\UriImageManager.idl" />
|
|
658
693
|
<Midl Condition="'$(UseFabric)' == 'true' OR '$(IncludeFabricInterface)' == 'true'" Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\ViewProps.idl" />
|
|
694
|
+
<Midl Condition="'$(UseFabric)' == 'true' OR '$(IncludeFabricInterface)' == 'true'" Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\ReactNativeAppBuilder.idl" />
|
|
659
695
|
</ItemGroup>
|
|
660
696
|
<ItemGroup>
|
|
661
697
|
<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" />
|
|
@@ -324,6 +325,7 @@
|
|
|
324
325
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\TextDrawing.cpp" />
|
|
325
326
|
<ClCompile Include="$(MSBuildThisFileDirectory)Networking\NetworkPropertyIds.cpp" />
|
|
326
327
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\AbiEventEmitter.cpp" />
|
|
328
|
+
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\TooltipService.cpp" />
|
|
327
329
|
</ItemGroup>
|
|
328
330
|
<ItemGroup>
|
|
329
331
|
<Filter Include="Source Files">
|
|
@@ -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.74.
|
|
3
|
+
"version": "0.74.22",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@react-native-community/cli": "13.6.9",
|
|
27
27
|
"@react-native-community/cli-platform-android": "13.6.9",
|
|
28
28
|
"@react-native-community/cli-platform-ios": "13.6.9",
|
|
29
|
-
"@react-native-windows/cli": "0.74.
|
|
29
|
+
"@react-native-windows/cli": "0.74.6",
|
|
30
30
|
"@react-native/assets": "1.0.0",
|
|
31
31
|
"@react-native/assets-registry": "0.74.87",
|
|
32
32
|
"@react-native/codegen": "0.74.87",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"yargs": "^17.6.2"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@react-native-windows/codegen": "0.74.
|
|
67
|
+
"@react-native-windows/codegen": "0.74.4",
|
|
68
68
|
"@react-native/metro-config": "0.74.87",
|
|
69
69
|
"@rnw-scripts/babel-react-native-config": "0.0.0",
|
|
70
70
|
"@rnw-scripts/eslint-config": "1.2.9",
|
|
@@ -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
|
}
|