|
4 | 4 | []() |
5 | 5 | [](https://packagephobia.com/result?p=react-native-otp-entry) |
6 | 6 | [](https://github.com/anday013/react-native-otp-entry/actions) |
7 | | -[](https://github.com/your-username/react-native-otp-entry/blob/main/LICENSE) |
| 7 | +[](https://github.com/anday013/react-native-otp-entry/blob/main/LICENSE) |
8 | 8 |
|
9 | 9 | `react-native-otp-entry` is a simple and highly customizable React Native component for entering OTP (One-Time Password) on iOS, Android, and Web. It provides an intuitive and user-friendly interface for inputting one-time passwords in your React Native applications. |
10 | 10 |
|
|
16 | 16 |
|
17 | 17 | - Simple and easy-to-use OTP input component. |
18 | 18 | - Highly customizable appearance and styling. |
19 | | -- Supports autofill |
| 19 | +- Supports autofill and placeholder text. |
20 | 20 | - Effortlessly integrates with **React Native**, **Expo**, and **React Native Web** platforms. |
21 | 21 | - Fully typed with TypeScript. |
22 | 22 | - Fully covered with unit tests. |
@@ -53,7 +53,11 @@ yarn add react-native-otp-entry |
53 | 53 | 2. Render the `OtpInput` component in your screen/component: |
54 | 54 |
|
55 | 55 | ```jsx |
56 | | - <OtpInput numberOfDigits={6} onTextChange={(text) => console.log(text)} /> |
| 56 | + <OtpInput |
| 57 | + numberOfDigits={6} |
| 58 | + onTextChange={(text) => console.log(text)} |
| 59 | + onFilled={(text) => console.log(`OTP completed: ${text}`)} |
| 60 | + /> |
57 | 61 | ``` |
58 | 62 |
|
59 | 63 | 3. Customize the styling as per your requirements: |
@@ -149,7 +153,7 @@ The `react-native-otp-entry` component exposes these functions with `ref`: |
149 | 153 |
|
150 | 154 | ## License |
151 | 155 |
|
152 | | -This project is licensed under the [MIT License](https://github.com/your-username/react-native-otp-entry/blob/main/LICENSE). |
| 156 | +This project is licensed under the [MIT License](https://github.com/anday013/react-native-otp-entry/blob/main/LICENSE). |
153 | 157 |
|
154 | 158 | ## Contributing |
155 | 159 |
|
|
0 commit comments