Skip to content

Commit

Permalink
Adds collapsable prop to Paper VM for View (#11249)
Browse files Browse the repository at this point in the history
* Adds collapsable prop to Paper VM for View

Fabric reads native view configs from the Paper UIManager. In order for
the `collapsable` prop to flow from JS to the native props for Fabric,
we need to have this prop set in the VM configuration for View in Paper.

* Change files
  • Loading branch information
rozele committed Feb 23, 2023
1 parent 040bbaf commit 7a6f87d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Adds collapsable prop to Paper VM for View",
"packageName": "react-native-windows",
"email": "erozell@outlook.com",
"dependentChangeType": "patch"
}
1 change: 1 addition & 0 deletions vnext/Microsoft.ReactNative/Views/ViewViewManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ void ViewViewManager::GetNativeProps(const winrt::Microsoft::ReactNative::IJSVal
winrt::Microsoft::ReactNative::WriteProperty(writer, L"focusable", L"boolean");
winrt::Microsoft::ReactNative::WriteProperty(writer, L"enableFocusRing", L"boolean");
winrt::Microsoft::ReactNative::WriteProperty(writer, L"tabIndex", L"number");
winrt::Microsoft::ReactNative::WriteProperty(writer, L"collapsable", L"boolean");
}

bool ViewViewManager::UpdateProperty(
Expand Down

0 comments on commit 7a6f87d

Please sign in to comment.