Skip to content

KeyValueSoftwareSystems/react-native-scribble

Repository files navigation

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