react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Add Signature props: signatureCreationModes and signatureColorOptions

Open ghost1face opened this issue 6 months ago • 0 comments

Details

Provide two new props to the PSPDFKitView component. This allows for further customization of the component to select acceptable signature modes and colors:

import PSPDFKitView, { PDFConfiguration } from "react-native-pspdfkit";

<PSPDFKitView
  configuration={{
    signatureCreationModes: [
        PDFConfiguration.SignatureCreationModes.DRAW, 
        PDFConfiguration.SignatureCreationModes.IMAGE,
        PDFConfiguration.SignatureCreationModes.TYPE
    ],
    signatureColorOptions: [
        "black",
        "#876543",
        "rgb(127, 81, 202)"
    ]
  }}
/>

Implemented both iOS and Android backings

Acceptance Criteria

  • [ ] When approved, right before merging, rebase with master and increment the package version in package.json, package-lock.json, samples/Catalog/package.json, samples/Catalog/yarn.lock, samples/NativeCatalog/package.json, and samples/NativeCatalog/yarn.lock (see example commit: https://github.com/PSPDFKit/react-native/pull/403/commits/b32b4edd97ee9b49c51c8b932e2bf477744c2b24).
  • [ ] Create a new release (and tag) with the new package version (see https://github.com/PSPDFKit/react-native/releases).

ghost1face avatar Aug 12 '24 18:08 ghost1face