react-native-otp-entry icon indicating copy to clipboard operation
react-native-otp-entry copied to clipboard

if i have use 2 input pins then it directly focused on second pin input not on first

Open dev-hk22 opened this issue 4 months ago • 4 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS:
  • Device OS:
  • Device version:
  • Library version:

Additional context Add any other context about the problem here.

dev-hk22 avatar Aug 05 '25 11:08 dev-hk22

+1 facing the same

HarshitMadhav avatar Oct 09 '25 07:10 HarshitMadhav

+1 facing the same

autoFocus={true} add this on first input and autoFocus={false} on second input will fix this

dev-hk22 avatar Oct 09 '25 07:10 dev-hk22

I fixed this by passing caretHidden true to the textInputProps, as relying on the focusStick of the component itself is self sufficient

HarshitMadhav avatar Oct 09 '25 07:10 HarshitMadhav

focusStick

textInputProps={{ caretHidden: true, contextMenuHidden: true, }}

dev-hk22 avatar Oct 09 '25 07:10 dev-hk22