react-native-windows 0.80.0-preview.1 → 0.80.0-preview.3
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/Fabric/FabricUIManagerModule.cpp +5 -3
- package/Microsoft.ReactNative/Fabric/ImageManager.cpp +1 -1
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/WindowsTextLayoutManager.cpp +2 -2
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/WindowsTextLayoutManager.h +1 -1
- package/PropertySheets/Generated/PackageVersion.g.props +2 -2
- package/PropertySheets/JSEngine.props +1 -1
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/componentregistry/ComponentDescriptorRegistry.cpp +1 -1
- package/package.json +2 -2
|
@@ -66,7 +66,8 @@ FabricUIManager::~FabricUIManager() {
|
|
|
66
66
|
void FabricUIManager::installFabricUIManager() noexcept {
|
|
67
67
|
std::lock_guard<std::mutex> schedulerLock(m_schedulerMutex);
|
|
68
68
|
|
|
69
|
-
facebook::react::ContextContainer
|
|
69
|
+
std::shared_ptr<const facebook::react::ContextContainer> contextContainer =
|
|
70
|
+
std::make_shared<facebook::react::ContextContainer>();
|
|
70
71
|
|
|
71
72
|
// This allows access to our ReactContext from the contextContainer thats passed around the fabric codebase
|
|
72
73
|
contextContainer->insert("MSRN.ReactContext", m_context);
|
|
@@ -97,8 +98,9 @@ void FabricUIManager::installFabricUIManager() noexcept {
|
|
|
97
98
|
};
|
|
98
99
|
|
|
99
100
|
toolbox.contextContainer = contextContainer;
|
|
100
|
-
toolbox.componentRegistryFactory =
|
|
101
|
-
|
|
101
|
+
toolbox.componentRegistryFactory =
|
|
102
|
+
[](facebook::react::EventDispatcher::Weak const &eventDispatcher,
|
|
103
|
+
std::shared_ptr<const facebook::react::ContextContainer> const &contextContainer)
|
|
102
104
|
-> facebook::react::ComponentDescriptorRegistry::Shared {
|
|
103
105
|
auto providerRegistry =
|
|
104
106
|
WindowsComponentDescriptorRegistry::FromProperties(
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
namespace facebook {
|
|
10
10
|
namespace react {
|
|
11
11
|
|
|
12
|
-
ImageManager::ImageManager(
|
|
12
|
+
ImageManager::ImageManager(std::shared_ptr<const ContextContainer> const &contextContainer) {
|
|
13
13
|
auto reactContext = *contextContainer->find<winrt::Microsoft::ReactNative::ReactContext>("MSRN.ReactContext");
|
|
14
14
|
self_ = new Microsoft::ReactNative::WindowsImageManager(reactContext);
|
|
15
15
|
}
|
|
@@ -66,10 +66,10 @@ class AttachmentInlineObject : public winrt::implements<AttachmentInlineObject,
|
|
|
66
66
|
float m_height;
|
|
67
67
|
};
|
|
68
68
|
|
|
69
|
-
TextLayoutManager::TextLayoutManager(const
|
|
69
|
+
TextLayoutManager::TextLayoutManager(const std::shared_ptr<const ContextContainer> &contextContainer)
|
|
70
70
|
: contextContainer_(contextContainer), textMeasureCache_(kSimpleThreadSafeCacheSizeCap) {}
|
|
71
71
|
|
|
72
|
-
WindowsTextLayoutManager::WindowsTextLayoutManager(const
|
|
72
|
+
WindowsTextLayoutManager::WindowsTextLayoutManager(const std::shared_ptr<const ContextContainer> &contextContainer)
|
|
73
73
|
: TextLayoutManager(contextContainer) {}
|
|
74
74
|
|
|
75
75
|
void WindowsTextLayoutManager::GetTextLayout(
|
|
@@ -20,7 +20,7 @@ namespace facebook::react {
|
|
|
20
20
|
|
|
21
21
|
class WindowsTextLayoutManager : public TextLayoutManager {
|
|
22
22
|
public:
|
|
23
|
-
WindowsTextLayoutManager(const
|
|
23
|
+
WindowsTextLayoutManager(const std::shared_ptr<const ContextContainer> &contextContainer);
|
|
24
24
|
virtual ~WindowsTextLayoutManager() = default;
|
|
25
25
|
|
|
26
26
|
/*
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
-->
|
|
11
11
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
12
12
|
<PropertyGroup>
|
|
13
|
-
<ReactNativeWindowsVersion>0.80.0-preview.
|
|
13
|
+
<ReactNativeWindowsVersion>0.80.0-preview.3</ReactNativeWindowsVersion>
|
|
14
14
|
<ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
|
|
15
15
|
<ReactNativeWindowsMinor>80</ReactNativeWindowsMinor>
|
|
16
16
|
<ReactNativeWindowsPatch>0</ReactNativeWindowsPatch>
|
|
17
17
|
<ReactNativeWindowsCanary>false</ReactNativeWindowsCanary>
|
|
18
|
-
<ReactNativeWindowsCommitId>
|
|
18
|
+
<ReactNativeWindowsCommitId>2311b7de497f7375c63ec3647d3e790fc9737657</ReactNativeWindowsCommitId>
|
|
19
19
|
</PropertyGroup>
|
|
20
20
|
</Project>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<!-- Enabling this will (1) Include hermes glues in the Microsoft.ReactNative binaries AND (2) Make hermes the default engine -->
|
|
7
7
|
<UseHermes Condition="'$(UseHermes)' == ''">true</UseHermes>
|
|
8
8
|
<!-- This will be true if (1) the client want to use hermes by setting UseHermes to true OR (2) We are building for UWP where dynamic switching is enabled -->
|
|
9
|
-
<HermesVersion Condition="'$(HermesVersion)' == ''">0.0.0-
|
|
9
|
+
<HermesVersion Condition="'$(HermesVersion)' == ''">0.0.0-2507.21007-eda7aef6</HermesVersion>
|
|
10
10
|
<HermesPackage Condition="'$(HermesPackage)' == '' And Exists('$(PkgMicrosoft_JavaScript_Hermes)')">$(PkgMicrosoft_JavaScript_Hermes)</HermesPackage>
|
|
11
11
|
<HermesPackage Condition="'$(HermesPackage)' == ''">$(NuGetPackageRoot)\Microsoft.JavaScript.Hermes\$(HermesVersion)</HermesPackage>
|
|
12
12
|
<EnableHermesInspectorInReleaseFlavor Condition="'$(EnableHermesInspectorInReleaseFlavor)' == ''">false</EnableHermesInspectorInReleaseFlavor>
|
|
@@ -23,7 +23,7 @@ namespace facebook::react {
|
|
|
23
23
|
ComponentDescriptorRegistry::ComponentDescriptorRegistry(
|
|
24
24
|
ComponentDescriptorParameters parameters,
|
|
25
25
|
const ComponentDescriptorProviderRegistry& providerRegistry,
|
|
26
|
-
|
|
26
|
+
std::shared_ptr<const ContextContainer> contextContainer)
|
|
27
27
|
: parameters_(std::move(parameters)),
|
|
28
28
|
providerRegistry_(providerRegistry),
|
|
29
29
|
contextContainer_(std::move(contextContainer)) {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-windows",
|
|
3
|
-
"version": "0.80.0-preview.
|
|
3
|
+
"version": "0.80.0-preview.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@react-native-community/cli": "17.0.0",
|
|
27
27
|
"@react-native-community/cli-platform-android": "17.0.0",
|
|
28
28
|
"@react-native-community/cli-platform-ios": "17.0.0",
|
|
29
|
-
"@react-native-windows/cli": "0.80.0-preview.
|
|
29
|
+
"@react-native-windows/cli": "0.80.0-preview.2",
|
|
30
30
|
"@react-native/assets": "1.0.0",
|
|
31
31
|
"@react-native/assets-registry": "0.80.0",
|
|
32
32
|
"@react-native/codegen": "0.80.0",
|