Skip to content

zhaiduo/react-native-touchvg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-touchvg

TouchVG for React Native

Usage

import React, { Component } from 'react';
import {View,} from 'react-native';
import { TouchVGView } from 'react-native-touchvg';

class App extends Component {

constructor(props) {
    super(props);
    this.state = {
      command: 'splines', /*Other commands:  select | erase | rect | ellipse |  triangle | line */
    }
  }

render() {
    return (
      <View style={{backgroundColor: '#fff'}}>
        <TouchVGView
          command={this.state.command}
          style={{ width: '100%', height: '100%', alignSelf: 'center' }} />
      </View>
    );
  }
}

NOTE

Based on https://github.com/rhcad/TouchVG projects.

About

TouchVG for React Native

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 50.3%
  • Java 40.7%
  • Objective-C++ 5.5%
  • Objective-C 2.1%
  • C 1.3%
  • JavaScript 0.1%