-
Notifications
You must be signed in to change notification settings - Fork 60
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
In IOS OTP is not getting focus, when the otp comes we copy it and then from keyboard we push, it doesn't get filled !! #14
Comments
Paste into text input automatically not yet developed. Will be pushing it in the next release. Thanks for the input @visheshsprinzo. |
@naveenvignesh5 any updates? I am using an android device still not able to paste code into text inputs |
This seems to be something quite fundamental, and the reason I used this lib rather than writing my own. Too bad that it's not implemented. Switching to https://github.com/tttstudios/react-native-otp-input which seems to have it |
Do we have any update regarding this issue fixes ? |
Hi yousefamar As I was looking into this https://github.com/tttstudios/react-native-otp-input sdk it's 2 years old, is it working fine with latest react native version ? |
@pgpankajgoyal I'm still using it in production, with latest react-native. However, the latest version (1.3.11) is broken (tttstudios/react-native-otp-input#87), but I simply froze it at 1.3.7 which works fine for now. |
@yousefamar @shivam0831 did you try this example for your use case ? If so what blockers are facing with regards to below way of implementing OTP pre-fill. // hooks
import React, { useRef } from 'react';
const ParentComponent = () => {
const otpInput = useRef(null);
const clearText = () => {
otpInput.current.clear();
}
const setText = () => {
otpInput.current.setValue("1234");
}
return (
<View>
<OTPTextInput ref={e => (otpInput = e)} >
<Button title="clear" onClick={clearText}>
</View>
);
} |
@naveenvignesh5 Is there any plan for release this enhancement? |
@naveenvignesh5 I want to auto-fill the otp fields when i click on the otp suggestion from keyboard in iOS. Can you please tell how to achieve this? |
@naveenvignesh5 hi, looking for this enhancement too. |
any update on this? |
+1 |
This enhancement actually has been released in v1.1.1 using
Update: |
Any solution for this issue ? |
if i copy code and the code is 1234 and I am going to type 1 on 1st block then function will run and it will autofill. |
#45 (comment) |
No description provided.
The text was updated successfully, but these errors were encountered: