feat(windows): add clipPath and touch events (#1933)

Adding support for clipPath and touch events.
This commit is contained in:
Marlene Cota
2023-01-04 06:51:08 -08:00
committed by GitHub
parent 60fcb0f28f
commit 38da5fb67c
22 changed files with 235 additions and 10 deletions
+4
View File
@@ -40,6 +40,8 @@ Windows::UI::Xaml::FrameworkElement RenderableViewManager::CreateView() {
return winrt::RNSVG::RadialGradientView();
case RNSVG::SVGClass::RNSVGPattern:
return winrt::RNSVG::PatternView();
case RNSVG::SVGClass::RNSVGClipPath:
return winrt::RNSVG::ClipPathView();
}
throw hresult_not_implemented();
@@ -64,6 +66,8 @@ IMapView<hstring, ViewManagerPropertyType> RenderableViewManager::NativeProps()
nativeProps.Insert(L"matrix", ViewManagerPropertyType::Array);
nativeProps.Insert(L"opacity", ViewManagerPropertyType::Number);
nativeProps.Insert(L"propList", ViewManagerPropertyType::Array);
nativeProps.Insert(L"clipPath", ViewManagerPropertyType::String);
nativeProps.Insert(L"responsible", ViewManagerPropertyType::Boolean);
return nativeProps.GetView();
}