Skip to content

Commit

Permalink
chore: updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sachdevavaibhav committed May 12, 2024
1 parent 1917acb commit 7c49c9a
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,17 @@ npm install react-native-paper-otp-input
## Usage

```js
import { multiply } from 'react-native-paper-otp-input';

// ...

const result = await multiply(3, 7);
import { PaperOtpInput } from 'react-native-paper-otp-input';

// You need to wrap it around scroll view for input blur to
//work properly
<PaperOtpInput
autoFocus={false}
onPinReady={(pin) => {
console.log('Do something when the pin is ready');
}}
maxLength={4}
/>;
```

## Contributing
Expand Down

0 comments on commit 7c49c9a

Please sign in to comment.