mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-06 07:06:11 +00:00
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.
27 lines
733 B
C++
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
|