liuhong1happy / react-native-scrawl

create scrawl with react-native-svg

Home Page:https://liuhong1happy.github.io/react-native-scrawl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-scrawl

Version Downloads

create scrawl with react-native-svg

Install

# react-native-svg 
npm install --save react-native-svg
react-native link react-native-svg
# install react-raphael-scrawl in your react-raphael-scrawl project

npm install --save react-native-scrawl

Quickly Start

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

import Scrawl from 'react-native-scrawl'

export default class ScrawlApp extends Component {
  render() {
    return (
      <View>
        <Scrawl ref="scrawl" />
      </View>
    );
  }
}

AppRegistry.registerComponent('scrawl', () => ScrawlApp);

API

All Scrawl Props

All Scrawl Ref

  • clear function clear all scrawl path

Development

npm install
react-native link react-native-svg
react-native run-android
react-native run-ios

Contact

Email: liuhong1.happy@163.com

About

create scrawl with react-native-svg

https://liuhong1happy.github.io/react-native-scrawl/

License:MIT License


Languages

Language:JavaScript 42.8%Language:Objective-C 33.6%Language:Python 12.5%Language:Java 11.1%