I have an input box in react, I have passed the focus prop to make the input focused when someone lands on the component.
On Android, it works well, it focuses the input and pops up the keyboard.
On iOS, it does not work well, it focuses the input but does not shows the keyboard implicitly. I need to click on the input again to pops the keyboard.
I want that as soon as the user lands on the page, the keyboard shows up.
Here is the code: https://github.com/ritikbanger/react18-input-otp/blob/main/src/lib/index.jsx
Here is code sand box for the same: https://codesandbox.io/s/react18-input-otp-0nxzx7?file=/src/App.js
I have tried the following solutions but does not worked: