https://github.com/kevinstumpf/react-native-signature-pad
React Native wrapper around szimek's Canvas based Signature Pad
https://github.com/kevinstumpf/react-native-signature-pad
Last synced: 2 months ago
JSON representation
React Native wrapper around szimek's Canvas based Signature Pad
- Host: GitHub
- URL: https://github.com/kevinstumpf/react-native-signature-pad
- Owner: kevinstumpf
- License: mit
- Created: 2016-02-24T02:31:17.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-07-11T20:36:06.000Z (almost 2 years ago)
- Last Synced: 2024-10-22T23:47:04.901Z (7 months ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 277
- Watchers: 14
- Forks: 198
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-canvas - react-native-signature-pad - React Native wrapper around szimek's Canvas based Signature Pad.   (Libraries / Signature pad)
README
# react-native-signature-pad
[](//npmjs.com/package/react-native-signature-pad)
[](https://github.com/kevinstumpf/react-native-signature-pad) [](http://makeapullrequest.com) [](#contributors) [](https://snyk.io/test/github/kevinstumpf/react-native-signature-pad)React Native wrapper around @[szimek's](https://github.com/szimek) HTML5 Canvas based [Signature Pad](https://github.com/szimek/signature_pad)
- Supports Android and iOS
- Pure JavaScript implementation with no native dependencies
- Tested with RN 0.20
- Can easily be rotated using the "transform" style
- Generates a base64 encoded png image of the signature## Demo
 
## Installation
```sh
$ yarn add react-native-signature-pad
```## Example
```js
import React, {Component} from 'react';
import {View} from 'react-native';
import SignaturePad from 'react-native-signature-pad';export default class Demo extends Component {
render = () => {
return (
)
};_signaturePadError = (error) => {
console.error(error);
};_signaturePadChange = ({base64DataUrl}) => {
console.log("Got new signature: " + base64DataUrl);
};
}
```