react-native-otp-inputs
react-native-otp-inputs copied to clipboard
When I type OTP and select a middle number to remove and clean it using delete button, the number jumps to previous fields.
is there a way i can only delete the focused input box ? My code
<OtpInputs autoFocus={false} defaultValue={value} style={styles({ theme, colorMode }).main} inputContainerStyles={styles({ theme, colorMode }).inputContainerStyles} inputStyles={styles({ theme, colorMode }).inputStyles} autofillFromClipboard={true} // auto fill from sms keyboardType="phone-pad" focusStyles={ isInvalid ? styles({ theme, colorMode }).error : styles({ theme, colorMode }).focusStyles } handleChange={code => { resetErrorState(); if (code.match(/^[0-9]*$/)) { setValue(code); } }} numberOfInputs={CELL_COUNT} />