tttstudios / react-native-otp-input

Tiny Javascript library which provides an elegant UI for user to input one time passcode.
MIT License
521 stars 238 forks source link

When I fill the opt last input it gives background color when I lose focus after filling 4 digit otp code. #179

Open muhammadwasi81 opened 2 years ago

muhammadwasi81 commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem. <OTPInputView style={{ width: '80%' }} pinCount={4} autoFocusOnLoad codeInputFieldStyle={styles.underlineStyleBase} codeInputHighlightStyle={styles.underlineStyleHighLighted} placeholderTextColor={COLORS.black} selectionColor={COLORS.main} keyboardType="number-pad" onCodeFilled={code => { console.log(Code is ${code}, you are good to go!) setCode(code) }} />

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

saheem128 commented 2 years ago

Use this instead: https://www.npmjs.com/package/react-native-simple-otp

sachinkumar-vs commented 2 years ago

same issue in android.