Files
react-native-svg/windows/RNSVG/MaskViewManager.cpp
Marlene Cota 2514ac4fdf feat(windows): add support for 74 and bump Example (#2315)
Added support for RNW 74.
Bumped windows Example to 74.
Updated README.md to remove instructions on how to import Win2D since we no longer use it.
2024-07-02 09:34:04 +02:00

27 lines
733 B
C++

#include "pch.h"
#include "MaskViewManager.h"
#if __has_include("MaskViewManager.g.cpp")
#include "MaskViewManager.g.cpp"
#endif
using namespace winrt;
using namespace Microsoft::ReactNative;
namespace winrt::RNSVG::implementation {
MaskViewManager::MaskViewManager() {
m_class = RNSVG::SVGClass::RNSVGMask;
m_name = L"RNSVGMask";
}
IMapView<hstring, ViewManagerPropertyType> MaskViewManager::NativeProps() {
auto const &parentProps{__super::NativeProps()};
auto const &nativeProps{winrt::single_threaded_map<hstring, ViewManagerPropertyType>()};
for (auto const &prop : parentProps) {
nativeProps.Insert(prop.Key(), prop.Value());
}
return nativeProps.GetView();
}
} // namespace winrt::RNSVG::implementation