react-native-windows 0.0.0-canary.657 → 0.0.0-canary.658

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.
@@ -217,8 +217,9 @@ void NativeUIManager::AddRootView(ShadowNode &shadowNode, facebook::react::IReac
217
217
  SystraceSection s("NativeUIManager::AddRootView");
218
218
  auto xamlRootView = static_cast<IXamlRootView *>(pReactRootView);
219
219
  XamlView view = xamlRootView->GetXamlView();
220
+ const auto rootTag = shadowNode.m_tag;
220
221
  m_tagsToXamlReactControl.emplace(
221
- shadowNode.m_tag,
222
+ rootTag,
222
223
  winrt::weak_ref<winrt::Microsoft::ReactNative::ReactRootView>(
223
224
  view.as<winrt::Microsoft::ReactNative::ReactRootView>()));
224
225
 
@@ -226,14 +227,16 @@ void NativeUIManager::AddRootView(ShadowNode &shadowNode, facebook::react::IReac
226
227
  view.as<xaml::FrameworkElement>().FlowDirection(
227
228
  I18nManager::IsRTL(m_context.Properties()) ? xaml::FlowDirection::RightToLeft : xaml::FlowDirection::LeftToRight);
228
229
 
229
- m_tagsToYogaNodes.emplace(shadowNode.m_tag, make_yoga_node(m_yogaConfig));
230
+ m_tagsToYogaNodes.emplace(rootTag, make_yoga_node(m_yogaConfig));
230
231
 
231
232
  auto element = view.as<xaml::FrameworkElement>();
232
- Microsoft::ReactNative::SetTag(element, shadowNode.m_tag);
233
+ Microsoft::ReactNative::SetTag(element, rootTag);
233
234
 
234
235
  // Add listener to size change so we can redo the layout when that happens
235
- m_sizeChangedVector.push_back(
236
- view.as<xaml::FrameworkElement>().SizeChanged(winrt::auto_revoke, [this](auto &&, auto &&) { DoLayout(); }));
236
+ m_sizeChangedVector.push_back(view.as<xaml::FrameworkElement>().SizeChanged(
237
+ winrt::auto_revoke, [this, rootTag](auto &&, xaml::SizeChangedEventArgs const &args) {
238
+ ApplyLayout(rootTag, args.NewSize().Width, args.NewSize().Height);
239
+ }));
237
240
  }
238
241
 
239
242
  void NativeUIManager::removeRootView(Microsoft::ReactNative::ShadowNode &shadow) {
@@ -10,11 +10,11 @@
10
10
  -->
11
11
  <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
12
12
  <PropertyGroup>
13
- <ReactNativeWindowsVersion>0.0.0-canary.657</ReactNativeWindowsVersion>
13
+ <ReactNativeWindowsVersion>0.0.0-canary.658</ReactNativeWindowsVersion>
14
14
  <ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
15
15
  <ReactNativeWindowsMinor>0</ReactNativeWindowsMinor>
16
16
  <ReactNativeWindowsPatch>0</ReactNativeWindowsPatch>
17
17
  <ReactNativeWindowsCanary>true</ReactNativeWindowsCanary>
18
- <ReactNativeWindowsCommitId>31e90ef4d20203a35b7ebb2353b0adbe2686fe6e</ReactNativeWindowsCommitId>
18
+ <ReactNativeWindowsCommitId>684db1330d1a3e933274bd80e42e684a78f8e7c4</ReactNativeWindowsCommitId>
19
19
  </PropertyGroup>
20
20
  </Project>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-windows",
3
- "version": "0.0.0-canary.657",
3
+ "version": "0.0.0-canary.658",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",