mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-20 22:05:14 +00:00
[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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user