diff --git a/README.md b/README.md index 5ca1c7c..8e240ff 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,49 @@ # react-native-signature-pad -React Native wrapper around szimek's Canvas based Signature Pad +React Native wrapper around @[szimek's](https://github.com/szimek) HTML Canvas based [Signature Pad](https://github.com/szimek/signature_pad) + +- Supports Android and iOS +- Tested with RN 0.20 +- Can easily be rotated using the "transform" style + +## Demo + +![SignaturePadDemo](https://cloud.githubusercontent.com/assets/7293984/13274796/f3bf0370-da62-11e5-88df-5827a9617e77.png) + +## Installation + +```sh +npm install --save react-native-signature-pad +``` + +## Example + +```js +var React = require('react-native'); + +var { + View, + Component, + } = React; + +var SignaturePad = require('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); + }; +} +```