You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Android setup requires [react-native-keyevent](https://github.com/kevinejohn/react-native-keyevent) package to work properly.
27
-
28
-
1. If you are using react-native < 0.60.0 then [follow these steps](https://github.com/kevinejohn/react-native-keyevent#linking-android)
29
-
1. If you are using react-native >= 0.60.0 then add this to your dependencies in `react-native.config.js`
30
-
31
-
```javascript
32
-
// react-native.config.js
33
-
module.exports= {
34
-
dependencies: {
35
-
'react-native-keyevent': {
36
-
platforms: {
37
-
ios:null,
38
-
},
39
-
},
40
-
},
41
-
};
42
-
```
43
-
44
-
3. Add `react-native-keyevent` to your dependencies with
45
-
46
-
```bash
47
-
yarn add react-native-keyevent
48
-
```
49
-
50
-
4. Then follow configuration for Android [here](https://github.com/kevinejohn/react-native-keyevent#configuration) (If you have problems, check [Example App](./Example/android/app/src/main/java/com/example/MainActivity.java) configuration)
| keyboardType | string | true | 'phone-pad' |Do not use `numeric``number-pad` or `decimal-pad` for android as it [won't work on android correctly](https://github.com/dsznajder/react-native-otp-inputs/issues/213)|
11
-
| numberOfInputs | number | true (1..6) | 4 | Inputs count to render. |
0 commit comments