Skip to content

Commit

Permalink
fix: udpate the readme file for better example for usage
Browse files Browse the repository at this point in the history
  • Loading branch information
nirmalkeyvalue committed Oct 16, 2023
1 parent 1066249 commit c892e18
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 c892e18

Please sign in to comment.