Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/liuhong1happy/react-native-windows-svg

create windows svg component with Canvas、Shape.
https://github.com/liuhong1happy/react-native-windows-svg

react react-native react-native-svg react-native-windows react-native-windows-svg

Last synced: 16 days ago
JSON representation

create windows svg component with Canvas、Shape.

Awesome Lists containing this project

README

        

# react-native-windows-svg

create windows svg component with Canvas、Shape.

## Install

npm install --save react-native-windows-svg
# Add the `node_modules/react-native-windows-svg/windows/ReactNativeSVG` project to your `Solution`.

## Usage

1. Add the SVGReactPackage in your `Solution`.

```c#
///
/// MainPage.cs
///
...
public override List Packages
{
get
{
return new List
{
new MainReactPackage(),
new SVGReactPackage() // add this line
};
}
}
...
```

2. Use the component in your react-native project.
```js
...
import {Svg, Rect } from 'react-native-windows-svg';
...



...
```
## Todos

- [x] SVG
- [x] Rect
- [ ] Text
- [x] Circle
- [x] Line
- [x] Ellipse
- [x] G
- [x] Path
- [x] Polygon
- [x] Polyline

## Contact
- Email: [[email protected]](mailto:[email protected])