Skip to content

Commit

Permalink
Merge pull request #4 from KeyValueSoftwareSystems/update-package-usa…
Browse files Browse the repository at this point in the history
…ge-readme

fix: update the readme file for better example for usage
  • Loading branch information
nirmalkeyvalue authored Oct 16, 2023
2 parents 1066249 + c892e18 commit f823c01
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,18 @@ npm install react-native-scribble
## Usage

```jsx
const signatureProps = useSignaturePad();

<CaptureSignature {...signatureProps} />
const signatureProps = useSvgCapture();
const { clearPad, getFilePath } = signatureProps;

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

## Contributing
Expand Down

0 comments on commit f823c01

Please sign in to comment.