react-native-windows 0.80.0-preview.1 → 0.80.0-preview.2

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.
@@ -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::Shared contextContainer = std::make_shared<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 = [](facebook::react::EventDispatcher::Weak const &eventDispatcher,
101
- facebook::react::ContextContainer::Shared const &contextContainer)
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(ContextContainer::Shared const &contextContainer) {
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 ContextContainer::Shared &contextContainer)
69
+ TextLayoutManager::TextLayoutManager(const std::shared_ptr<const ContextContainer> &contextContainer)
70
70
  : contextContainer_(contextContainer), textMeasureCache_(kSimpleThreadSafeCacheSizeCap) {}
71
71
 
72
- WindowsTextLayoutManager::WindowsTextLayoutManager(const ContextContainer::Shared &contextContainer)
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 ContextContainer::Shared &contextContainer);
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.1</ReactNativeWindowsVersion>
13
+ <ReactNativeWindowsVersion>0.80.0-preview.2</ReactNativeWindowsVersion>
14
14
  <ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
15
15
  <ReactNativeWindowsMinor>80</ReactNativeWindowsMinor>
16
16
  <ReactNativeWindowsPatch>0</ReactNativeWindowsPatch>
17
17
  <ReactNativeWindowsCanary>false</ReactNativeWindowsCanary>
18
- <ReactNativeWindowsCommitId>79b0da7bfd78f59a7de9a025ab750e11005766e6</ReactNativeWindowsCommitId>
18
+ <ReactNativeWindowsCommitId>71ced315c54a79b620ad5d9284a0c23c18ec7d8f</ReactNativeWindowsCommitId>
19
19
  </PropertyGroup>
20
20
  </Project>
@@ -23,7 +23,7 @@ namespace facebook::react {
23
23
  ComponentDescriptorRegistry::ComponentDescriptorRegistry(
24
24
  ComponentDescriptorParameters parameters,
25
25
  const ComponentDescriptorProviderRegistry& providerRegistry,
26
- ContextContainer::Shared contextContainer)
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.1",
3
+ "version": "0.80.0-preview.2",
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.1",
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",