-
Notifications
You must be signed in to change notification settings - Fork 251
Description
Hi i got issue about this, OTP autofill works as expected on the first OTP request in iOS, but after I requesting in a second OTP, autofill does not trigger anymore, even if the app is killed and reopened or another OTP is requested. This problem persists even after multiple requests and app restarts, preventing users from using autofill for subsequent OTP entries.
<OTPInputView ref={refInput} autoFocus={true} onInputFocus={0} autoFocusOnLoad={false} style={{width: '90%', height: 120}} pinCount={6} code={otpInput} onCodeChanged={(code) => setOtpInput(code)} onCodeFilled={(code) => setOtpInput(code)} codeInputFieldStyle={{ fontSize: STYLES.SIZE.S25, fontFamily: STYLES.FAMILY.BOLD, borderRadius: 8, color: STYLES.BLUE.CERULEAN, borderColor: STYLES.GREEN.PERSIAN, backgroundColor: STYLES.GREEN.LAVENDER, height: 45, }} autoComplete="sms-otp" keyboardType="number-pad" isAutoFillSupported={true} />
addmore i custom lib by create prop name "isAutoFillSupported"to force set to be like this inside lib
textContentType={isAutoFillSupported ? "oneTimeCode" : "none"}
I do not know howfix that ,
This relate behavior devices or not , I have test with android but it work and autofill,
Please help me thank you.