JSPM

@noxother/signature

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 20
  • Score
    100M100P100Q56840F
  • License MIT

A react native signature canvas built on skia

Package Exports

  • @noxother/signature
  • @noxother/signature/dist/commonjs/index.js
  • @noxother/signature/dist/module/index.js
  • @noxother/signature/src/index.ts

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@noxother/signature) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

React Native Signature

A signature canvas -- built with Skia

Installation

@noxother/signature has a few peer dependencies which must be installed first if not already present in your project

yarn add react-native-reanimated react-native-gesture-handler @shopify/react-native-skia

Follow the installation instructions for each package to make sure they are setup correctly.

[!NOTE] If using Expo, currently you will need to create a development build. The version of Skia that Expo ships with by default is not compatible.

Next, install @noxother/signature:

yarn add @noxother/signature

Components

Canvas

Canvas is added to your layout, and is the area users will interact with to sign.

Prop Type Description
strokeColor Color (from Skia) Color used when drawing
strokeWidth number Width of stroke
gestureHandler GestureType (from RNGH) Gesture handler to add custom handling for all touch events

License

MIT