Open kranthikumar-uppula opened 3 years ago
so you find a solution for this? im getting this too
I'm not sure whether it's the default behavior or the developers have set it like this. Already addressed https://github.com/tttstudios/react-native-otp-input/issues/116#issuecomment-873310411
Having the same issue!
multiline={true} in node package index and patch the package worked for me.
Describe the bug Enter the OTP and then start removing then the cursor showing on right side instead in center.
To Reproduce Steps to reproduce the behavior:
Expected behavior Should show cursor in center if textAlign is center
Screenshots![Screenshot_20210601_134225](https://user-images.githubusercontent.com/49552133/120289919-6ef55700-c2df-11eb-87bd-5f45e4e6d95f.jpg)
Smartphone (please complete the following information):
Additional context After removing code the value inside digits[index] is undefined. So I tried by updating code and it has worked. value={!clearInputs ? (digits[index] || "") : ""} I have created a PR to fix this issue (https://github.com/tttstudios/react-native-otp-input/pull/142). Please check and do the needful. Thank you