# @trunkrs/react-native-signature-capture

> A native signature plugin for iOS and Android.

Latest version **0.1.25** (published 2020-04-10) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.25 |
| Published | 2020-04-10 |
| First published | 2019-08-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 974.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Trunkrs |
| Maintainers | trunkrs-public |
| Keywords | react-native, ios, android, plugin, signature, component |

## Links

- npm: https://www.npmjs.com/package/@trunkrs/react-native-signature-capture
- Repository: https://github.com/Trunkrs/react-native-signature-capture
- Homepage: https://github.com/Trunkrs/react-native-signature-capture#readme
- Issues: https://github.com/Trunkrs/react-native-signature-capture/issues
- npm.io page: https://npm.io/package/@trunkrs/react-native-signature-capture

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.25 (latest) — 2020-04-10
- 0.1.24 — 2020-04-09
- 0.1.23 — 2019-09-06
- 0.1.22 — 2019-08-29
- 0.1.21 — 2019-08-28
- 0.1.20 — 2019-08-28
- 0.1.19 — 2019-08-28
- 0.1.18 — 2019-08-28
- 0.1.17 — 2019-08-28
- 0.1.16 — 2019-08-27
- 0.1.15 — 2019-08-26
- 0.1.14 — 2019-08-26
- 0.1.12 — 2019-08-26
- 0.1.11 — 2019-08-26
- 0.1.10 — 2019-08-26
- … 10 more at https://npm.io/package/@trunkrs/react-native-signature-capture/versions

## README

# react-native-signature-pad

## Getting started

`$ npm install react-native-signature-pad --save`

### Mostly automatic installation

`$ react-native link react-native-signature-pad`

### Manual installation


#### iOS

1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`
2. Go to `node_modules` ➜ `react-native-signature-pad` and add `TRNReactNativeSignaturePad.xcodeproj`
3. In XCode, in the project navigator, select your project. Add `libTRNReactNativeSignaturePad.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`
4. Run your project (`Cmd+R`)<

#### Android

1. Open up `android/app/src/main/java/[...]/MainApplication.java`
  - Add `import com.trunkrs.signature-pad.TRNReactNativeSignaturePadPackage;` to the imports at the top of the file
  - Add `new TRNReactNativeSignaturePadPackage()` to the list returned by the `getPackages()` method
2. Append the following lines to `android/settings.gradle`:
  	```
  	include ':react-native-signature-pad'
  	project(':react-native-signature-pad').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-signature-pad/android')
  	```
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
  	```
      compile project(':react-native-signature-pad')
  	```


## Usage
```javascript
import TRNReactNativeSignaturePad from 'react-native-signature-pad';

// TODO: What to do with the module?
TRNReactNativeSignaturePad;
```

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