We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Output of react-native info:
react-native info
Environment: OS: Windows 10 Node: 10.13.0 Yarn: 1.12.3 npm: 6.4.1 Watchman: Not Found Xcode: N/A Android Studio: Not Found Packages: (wanted => installed) react: 16.3.1 => 16.3.1 react-native: 0.55.4 => 0.55.4
After installing the plugin and using it as follows:
import WindowsSvg from 'react-native-windows-svg'; <WindowsSvg.Svg height={200} width={200}> <WindowsSvg.Path stroke="black" strokeWidth={1} /> </WindowsSvg.Svg>
The following error appears:
Changing in the file ShapeViewManager.cs:
ShapeViewManager.cs
public void SetStroke(Shape view, uint? iColor) { ShapeViewModel viewModel = (ShapeViewModel)view.DataContext; viewModel.SetValue(ShapeViewModel.StrokeProperty, iColor); UpdateShape(view, viewModel, "stroke"); }
to
public void SetStroke(Rectangle view, uint? iColor) { ShapeViewModel viewModel = (ShapeViewModel)view.DataContext; viewModel.SetValue(ShapeViewModel.StrokeProperty, iColor); UpdateShape(view, viewModel, "stroke"); }
Gives the error:
Which indicates that Rectangle should be Line:
Rectangle
Line
public void SetStroke(Line view, uint? iColor) { ShapeViewModel viewModel = (ShapeViewModel)view.DataContext; viewModel.SetValue(ShapeViewModel.StrokeProperty, iColor); UpdateShape(view, viewModel, "stroke"); }
But that gives the original error:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Output of
react-native info
:After installing the plugin and using it as follows:
The following error appears:
Changing in the file
ShapeViewManager.cs
:to
Gives the error:
Which indicates that
Rectangle
should beLine
:But that gives the original error:
The text was updated successfully, but these errors were encountered: