-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
autoFocus() is not opening keyboard when screen loads #84
Comments
Hi @nainaag17. Please give more information about environment (version of the library, device you're using), please also attach short demo of the issue, because on my end it works fine. Thanks! |
Hi @anday013 , I am using the latest version. Here are the details below for your reference. Library version: 1.7.3 Please check the demo as well, it is not opening the keyboard when screen opens and OTP boxes has the auto focus. 1000000938.mp4 |
Hey @anday013 Do you get a chance to look into it ? |
Same problem This helps: |
Thank you for the details. I am looking for it |
btw what version of |
@anday013 At my end, react-native version is 0.75.2 |
@anday013 0.75.2 too |
I could not replicate the issue. I will try to get a Samsung device. In the meantime try this solution: CC: @kntbruh @nainaag17 |
@anday013 I have tried this, but its still not working. |
I have tried on Samsung Galaxy device, still working fine |
@anday013 Its not working at my end; I have tested on OnePlus devices as well. What could be the possible reason for not opening the keyboard when autoFocus is true. Also, I have tried your solution #84 (comment), but its still not working. @kntbruh Is it working at your end? |
Hi, for some reason I can't set styles via 'textInputProps', such as text color or size.
Please pay attention to this problem and give me a hint, thanks! |
@talhache Regarding the styling issues you have, you need to use proper props. The prop you are using is for underlying hidden TextInput, changing its styles won't affect anything. Try to use Regarding the autofill, what platform are you testing on? Android? |
@anday013 document_5343920260984627406.mp4The video demonstrates that minimizing the application triggers the hint for auto-filling the code to appear. I'm not entirely sure why this happens, but when I use the autoComplete="one-time-code" prop on a standard React Native TextInput, everything works as expected. It seems the issue might be related to the keyboard not updating when the code is received, and a re-render might be involved. However, I’m still new to this and may not fully understand the underlying cause. Additional context: I really appreciate the design of your solution. Could you please look into this issue or guide me on how to resolve it? Thank you! |
When screen is loading autoFocus on OTP is true and working fine. My requirement is to open the keyboard when screen loads with autoFocus, it is not working.
Also, onFocus() callback method is not implementing.
Expected behavior:
Keyboard should open when screen loads with autoFocus true.
The text was updated successfully, but these errors were encountered: