# @lagregance/react-native-signature-capture

> Lets users sign their signatures

Latest version **0.6.0** (published 2025-03-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install @lagregance/react-native-signature-capture
pnpm add @lagregance/react-native-signature-capture
yarn add @lagregance/react-native-signature-capture
bun add @lagregance/react-native-signature-capture
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.0 |
| Published | 2025-03-17 |
| First published | 2021-11-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 423.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | RepairShopr,LaGregance |
| Maintainers | la-gregance |
| Keywords | react-component, react-native, ios, signature |

## Links

- npm: https://www.npmjs.com/package/@lagregance/react-native-signature-capture
- Repository: https://github.com/LaGregance/react-native-signature-capture
- Issues: https://github.com/LaGregance/react-native-signature-capture/issues
- npm.io page: https://npm.io/package/@lagregance/react-native-signature-capture

## Dependencies (1)

- [prop-types](https://npm.io/package/prop-types.md) ^15.5.10

## Recent versions

- 0.6.0 (latest) — 2025-03-17
- 0.5.1 — 2023-07-12
- 0.5.0 — 2021-11-26
- 0.4.12 — 2021-11-25
- 0.4.11 — 2021-11-25

## README

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
```bash
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 :
```jsx
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.

---
_Source: https://npm.io/package/@lagregance/react-native-signature-capture · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
