@keyvaluesystems/react-native-scribble
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

react-native-scribble

React native package to capture user scribbling on screen and converting it to an svg image

Installation

npm i @keyvaluesystems/react-native-scribble

Usage

import { SvgCapture ,useSvgCapture } from '@keyvaluesystems/react-native-scribble';
  // ...
  const signatureProps = useSvgCapture();
  const { clearPad, getFilePath } = signatureProps;

  const handleFileGeneration = async () => {
    const filePath = await getFilePath();
  };
  // ...
  return (
    <>
      <SvgCapture {...signatureProps} />
      <Button title="Clear" onClick={clearPad} />
      <Button title="Save" onClick={handleFileGeneration} />
    </>
  );

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

Package Sidebar

Install

npm i @keyvaluesystems/react-native-scribble

Weekly Downloads

0

Version

1.2.1

License

MIT

Unpacked Size

40.2 kB

Total Files

31

Last publish

Collaborators

  • bilta
  • gokuleyr
  • arun-ghosh-kv
  • prasanth-kv
  • aathil-a
  • akhil424
  • keyvaluesoftware