React native package to capture user scribbling on screen and converting it to an svg image
npm i @keyvaluesystems/react-native-scribble
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} />
</>
);
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library