r5n-labs / react-native-otp-inputs

OTP inputs for React-Native
MIT License
249 stars 91 forks source link

There is no way to clear all code. #248

Closed yudiz-vipul closed 4 years ago

yudiz-vipul commented 4 years ago

<OtpInputs selectionColor={Platform.OS === 'ios' && AppColors.app490074} inputContainerStyles={styles.otpInput} inputStyles={styles.otpInputText} numberOfInputs={6} autofillFromClipboard={true} returnKeyType={'done'} handleChange={(code) => { setOTPVerificationCode(code) }} />

I would like to clear all entered code. Is there any way to do this?

yudiz-vipul commented 4 years ago

I have found solutions here: https://github.com/dsznajder/react-native-otp-inputs/issues/245