All Projects → liuhong1happy → react-native-windows-svg

liuhong1happy / react-native-windows-svg

Licence: MIT license
create windows svg component with Canvas、Shape.

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to react-native-windows-svg

react-native-d3multiline-chart
Animated Android and iOS multiline/line/scatterPoint chart based on d3.js 🤘😎🤘
Stars: ✭ 43 (+207.14%)
Mutual labels:  react-native-svg
React Native Svg Charts
📈 One library to rule all charts for React Native 📊
Stars: ✭ 2,056 (+14585.71%)
Mutual labels:  react-native-svg
react-native-draw
SVG based data-driven React Native drawing component 🎨
Stars: ✭ 41 (+192.86%)
Mutual labels:  react-native-svg
rnsvg-generator
generate react-native-svg component from .svg file
Stars: ✭ 33 (+135.71%)
Mutual labels:  react-native-svg
think
Instagram clone using React Native with funcional components, React Hooks, React Navigation 4x and Reactotron debugger
Stars: ✭ 20 (+42.86%)
Mutual labels:  react-native-svg
react-platform
Experimental cross-platform React Native interoperability APIs, component wrappers and polyfills.
Stars: ✭ 13 (-7.14%)
Mutual labels:  react-native-windows
react-native-xaml
A React Native Windows library to use XAML / WinUI controls
Stars: ✭ 55 (+292.86%)
Mutual labels:  react-native-windows

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.
        /// <summary>
        /// MainPage.cs
        /// </summary>
        ...
        public override List<IReactPackage> Packages
        {
            get
            {
                return new List<IReactPackage>
                {
                    new MainReactPackage(),
                    new SVGReactPackage() // add this line
                };
            }
        }
        ...
  1. Use the component in your react-native project.
    ...
    import {Svg, Rect } from 'react-native-windows-svg';
    ...
      <Svg width={300} height={300} >
        <Rect stroke="#000000" fill="#ffffff" rx={10} ry={10} strokeWidth={1} />
      </Svg>
    ...

Todos

  • SVG
  • Rect
  • Text
  • Circle
  • Line
  • Ellipse
  • G
  • Path
  • Polygon
  • Polyline

Contact

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].