react-native-otp-inputs icon indicating copy to clipboard operation
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.

Open linco6054 opened this issue 3 years ago • 0 comments

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} />

linco6054 avatar Jun 15 '22 15:06 linco6054