[Windows] Port to Direct2D to remove win2d dependency (#2052)

This change removes the win2d (Direct2D wrapper) dependency by using D2D directly. This removes the manual step of adding the win2d to any new react-native-windows projects that want to use react-native-svg. It is also a stepping stone to an easier Fabric implementation for windows.
This commit is contained in:
Marlene Cota
2023-11-14 05:33:19 -05:00
committed by GitHub
parent 22f47333fb
commit f88532d195
66 changed files with 1420 additions and 711 deletions

View File

@@ -42,6 +42,8 @@ Windows::UI::Xaml::FrameworkElement RenderableViewManager::CreateView() {
return winrt::RNSVG::PatternView();
case RNSVG::SVGClass::RNSVGClipPath:
return winrt::RNSVG::ClipPathView();
case RNSVG::SVGClass::RNSVGMarker:
return winrt::RNSVG::MarkerView();
}
throw hresult_not_implemented();