Socket
Book a DemoInstallSign in
Socket

@lagregance/react-native-signature-capture

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lagregance/react-native-signature-capture

Lets users sign their signatures

latest
Source
npmnpm
Version
0.6.0
Version published
Maintainers
0
Created
Source

This is a fork of https://www.npmjs.com/package/react-native-signature-capture.

Breaking changes

  • Manage minStrokeWidth & maxStrokeWidth on both iOS & Android
  • onDragEvent is send at the end of dragging on iOS (like it does on Android)
  • Long press not erase the signature anymore on iOS (like it does on Android)
  • Add enableDate option to add the date on the signature result
  • Image is not saved anymore, you can easily save it if you want with react-native-fs and the base64
  • Add typescript definition

Install

yarn add @lagregance/react-native-signature-capture

Usage

The minStrokeWidth & maxStrokeWidth replace the DEFINE STROKE_WIDTH_MIN & STROKE_WIDTH_MAX of the file PPSSignatureView.m.
The default value are respectively 0.004 & 0.030, so it's not in pixel and we have to do something like that :

import SignatureCapture from '@lagregance/react-native-signature-capture';

// [...]

<SignatureCapture
    minStrokeWidth={Platform.OS === 'android' ? 2 : 0.004}
    maxStrokeWidth={Platform.OS === 'android' ? 4 : 0.01}
/>

I know it's not very clean but I didn't have much time to spend on it, but it may be useful for you.

Keywords

react-component

FAQs

Package last updated on 17 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.