react-native-windows 0.81.10 → 0.81.11

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.
@@ -226,6 +226,11 @@ winrt::hstring ViewProps::AccessibilityLabel() noexcept {
226
226
  return m_viewProps ? winrt::to_hstring(m_viewProps->accessibilityLabel) : winrt::hstring{};
227
227
  }
228
228
 
229
+ winrt::Microsoft::ReactNative::Overflow ViewProps::Overflow() noexcept {
230
+ return m_viewProps ? static_cast<winrt::Microsoft::ReactNative::Overflow>(m_viewProps->yogaStyle.overflow())
231
+ : winrt::Microsoft::ReactNative::Overflow::Visible;
232
+ }
233
+
229
234
  ImageProps::ImageProps(facebook::react::SharedViewProps props) noexcept : Super(props) {}
230
235
 
231
236
  winrt::Windows::Foundation::Collections::IVectorView<winrt::Microsoft::ReactNative::ImageSource>
@@ -101,6 +101,7 @@ struct ViewProps : ViewPropsT<ViewProps> {
101
101
  winrt::Microsoft::ReactNative::Color BackgroundColor() noexcept;
102
102
  winrt::hstring TestId() noexcept;
103
103
  winrt::hstring AccessibilityLabel() noexcept;
104
+ winrt::Microsoft::ReactNative::Overflow Overflow() noexcept;
104
105
 
105
106
  protected:
106
107
  facebook::react::SharedViewProps m_props;
@@ -1350,6 +1350,10 @@ void ViewComponentView::updateLayoutMetrics(
1350
1350
  void ViewComponentView::updateChildrenClippingPath(
1351
1351
  facebook::react::LayoutMetrics const &layoutMetrics,
1352
1352
  const facebook::react::ViewProps &viewProps) noexcept {
1353
+ // Views with a custom visual to mount children into should to do their own handling of children clipping path
1354
+ if (m_builder && m_builder->VisualToMountChildrenIntoHandler())
1355
+ return;
1356
+
1353
1357
  const float scale = layoutMetrics.pointScaleFactor;
1354
1358
  const float viewWidth = layoutMetrics.frame.size.width * scale;
1355
1359
  const float viewHeight = layoutMetrics.frame.size.height * scale;
@@ -72,6 +72,8 @@ namespace Microsoft.ReactNative.Composition
72
72
  void SetCreateVisualHandler(CreateVisualDelegate impl);
73
73
  void SetViewFeatures(ComponentViewFeatures viewFeatures);
74
74
  void SetUpdateLayoutMetricsHandler(UpdateLayoutMetricsDelegate impl);
75
+
76
+ DOC_STRING("Provides a customized ContainerVisual that this components children will be mounted into. When overriding this, a clip is no longer automatically applied for overflow:\"hidden\"")
75
77
  void SetVisualToMountChildrenIntoHandler(VisualToMountChildrenIntoDelegate impl);
76
78
  };
77
79
 
@@ -32,6 +32,14 @@ namespace Microsoft.ReactNative {
32
32
  static void WriteValue(IJSValueWriter writer, Color color);
33
33
  };
34
34
 
35
+ [experimental]
36
+ enum Overflow
37
+ {
38
+ Visible,
39
+ Hidden,
40
+ Scroll,
41
+ };
42
+
35
43
  [webhosthidden]
36
44
  [experimental]
37
45
  DOC_STRING("Interface to implement custom view component properties.")
@@ -53,6 +61,7 @@ namespace Microsoft.ReactNative {
53
61
  Color BackgroundColor { get; };
54
62
  String TestId { get; };
55
63
  String AccessibilityLabel { get; };
64
+ Overflow Overflow { get; };
56
65
 
57
66
  // TODO add accessors to all the properties on ViewProps
58
67
  };
@@ -10,11 +10,11 @@
10
10
  -->
11
11
  <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
12
12
  <PropertyGroup>
13
- <ReactNativeWindowsVersion>0.81.10</ReactNativeWindowsVersion>
13
+ <ReactNativeWindowsVersion>0.81.11</ReactNativeWindowsVersion>
14
14
  <ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
15
15
  <ReactNativeWindowsMinor>81</ReactNativeWindowsMinor>
16
- <ReactNativeWindowsPatch>10</ReactNativeWindowsPatch>
16
+ <ReactNativeWindowsPatch>11</ReactNativeWindowsPatch>
17
17
  <ReactNativeWindowsCanary>false</ReactNativeWindowsCanary>
18
- <ReactNativeWindowsCommitId>d6ceca3bc8465442c06193a6958953718d69ff7c</ReactNativeWindowsCommitId>
18
+ <ReactNativeWindowsCommitId>a964ab588ab12db0b975f848c88d7a0b750d6cba</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.81.10",
3
+ "version": "0.81.11",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",