All Projects → Harishn28 → react-native-signview

Harishn28 / react-native-signview

Licence: MIT license
Signature view for react native(Android + IOS)

Programming Languages

java
68154 projects - #9 most used programming language
objective c
16641 projects - #2 most used programming language
javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to react-native-signview

pdf-sign-check
A java / spring boot application to help you sign and check signed pdf documents
Stars: ✭ 81 (+440%)
Mutual labels:  signature
orchestrate-node
This Orchestrate library provides convenient access to the Orchestrate API from applications written in server-side NodeJS
Stars: ✭ 19 (+26.67%)
Mutual labels:  signature
fortify
Fortify enables web applications to use smart cards, local certificate stores and do certificate enrollment. This is the desktop application repository.
Stars: ✭ 88 (+486.67%)
Mutual labels:  signature
signature
HMAC and RSA signature for Laravel and Lumen
Stars: ✭ 26 (+73.33%)
Mutual labels:  signature
git-secure-tag
Secure git tag signing
Stars: ✭ 44 (+193.33%)
Mutual labels:  signature
wascap
Embed, extract, and validate capability claims in JWTs for WebAssembly modules
Stars: ✭ 59 (+293.33%)
Mutual labels:  signature
go-dkim
A Go library to create and verify DKIM signatures (migrated)
Stars: ✭ 38 (+153.33%)
Mutual labels:  signature
qdigidoc
DEPRECATED DigiDoc3 Client is a program that can be used to sign digitally with ID-card and Mobile-ID, check the validity of digital signatures and open and save documents inside the signature container.
Stars: ✭ 25 (+66.67%)
Mutual labels:  signature
larsign
Laravel signature certification with web API server.
Stars: ✭ 18 (+20%)
Mutual labels:  signature
jwt-core
[READ-ONLY] Core component of the JWT Framework
Stars: ✭ 46 (+206.67%)
Mutual labels:  signature
open-attestation
Meta framework for providing digital provenance and integrity to documents.
Stars: ✭ 39 (+160%)
Mutual labels:  signature
memory signature
A small wrapper class providing an unified interface to search for various memory signatures
Stars: ✭ 69 (+360%)
Mutual labels:  signature
mini-smooth-signature
小程序版带笔锋手写签名,支持微信/支付宝/钉钉/QQ小程序
Stars: ✭ 85 (+466.67%)
Mutual labels:  signature
leptin
🔗 Leptin is a PoW blockchain completely built in Nodejs.
Stars: ✭ 57 (+280%)
Mutual labels:  signature
trim-canvas
A tiny (< 100 LoC) library for trimming whitespace from a canvas element with no dependencies
Stars: ✭ 48 (+220%)
Mutual labels:  signature
eosdart ecc
Elliptic curve cryptography functions in Dart. Private Key, Public Key, Signature, AES, Encryption, Decryption
Stars: ✭ 25 (+66.67%)
Mutual labels:  signature
binance-signature-examples
Examples of generating HMAC and RSA signature for Binance API
Stars: ✭ 170 (+1033.33%)
Mutual labels:  signature
smooth-signature
H5带笔锋手写签名,支持PC端和移动端,任何前端框架均可使用
Stars: ✭ 474 (+3060%)
Mutual labels:  signature
AutomatedOutlookSignature
PowerShell script to automate the creation of Outlook signatures using Active Directory attributes.
Stars: ✭ 36 (+140%)
Mutual labels:  signature
GPGit
A shell script that automates the process of signing Git sources via GPG
Stars: ✭ 84 (+460%)
Mutual labels:  signature

Signature view for react-native.

installing

npm i react-native-signview

react-native link

usage

...
import {Text, Button, View} from 'react-native';
import { SignatureView } from 'react-native-signview';

export default class SomeComponent extends Component<Props> {

...

  render() {
    return (
      <View style={{flex:1}}>
        <SignatureView />
      </View>
    );
  }
}

Properties

  • style: View Styles
  • signatureColor: Color for signature(stroke color)
  • strokeWidth: width of signature (stroke width)

Callbacks

  • onChangeInSign: Triggered whenever there is a change in signature. Base64 string of signature will be passed as parameter.

Methods

  • clearSignature: When called it'll clear the signature. onChangeInSign gets triggered with null as parameter.

Example

import React, {Component} from 'react';
import { StyleSheet, Text, Button, View} from 'react-native';
import { SignatureView } from 'react-native-signview';

export default class App extends Component<Props> {
  constructor(props){
    super(props);
    this.signView = React.createRef();
  }

  clearSignature = () => {
    if(this.signView && this.signView.current){
      this.signView.current.clearSignature();
    }
  }

  onChangeInSign = (base64StringOfSign) => {
    if(base64StringOfSign){
      console.log('Signature Available', base64StringOfSign.length);
    } else{
      console.log('No Signature');
    }
  }

  render() {
    return (
      <View style={styles.container}>
        <Text>Sign in below box</Text>
        <SignatureView 
          ref={this.signView}
        />
        <Button title={'clear signature'} onPress={this.clearSignature}/>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
  },
});

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].