File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 3
3
## Basic Usage
4
4
5
5
``` javascript
6
+ import { OTPInput } from ' react-native-otp-input-fields' ;
7
+
6
8
const [OTP , SetOTP ] = useState (" " );
7
9
// Maintain a state variable
8
10
@@ -12,7 +14,7 @@ const [OTP, SetOTP] = useState("");
12
14
value= {OTP }
13
15
...
14
16
15
- / >
17
+ / >
16
18
```
17
19
18
20
![ OTP Input Demo GIF] ( https://i.imgur.com/ZKOv0Pa.gif )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-otp-input-fields" ,
3
- "version" : " 1.0.1 " ,
3
+ "version" : " 1.0.2 " ,
4
4
"description" : " React Native Component for OTP Input Fields." ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
18
18
},
19
19
"repository" : {
20
20
"type" : " git" ,
21
- "url" : " git+https://github.com/kartikeyvaish/OTP-Input-Fields .git"
21
+ "url" : " git+https://github.com/kartikeyvaish/react-native-otp-input-fields .git"
22
22
},
23
23
"keywords" : [
24
24
" OTP Input" ,
29
29
"author" : " Kartikey Vaish" ,
30
30
"license" : " MIT" ,
31
31
"bugs" : {
32
- "url" : " https://github.com/kartikeyvaish/OTP-Input-Fields "
32
+ "url" : " https://github.com/kartikeyvaish/react-native-otp-input-fields "
33
33
},
34
- "homepage" : " https://github.com/kartikeyvaish/OTP-Input-Fields #readme"
34
+ "homepage" : " https://github.com/kartikeyvaish/react-native-otp-input-fields #readme"
35
35
}
You can’t perform that action at this time.
0 commit comments