@keyvaluesystems/react-native-scribble
v1.2.1
Published
React native package to capture user scribbling on screen and convert it to an svg image
Downloads
11
Readme
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