tttstudios / react-native-otp-input

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

Keyboard not opening #169

Open ankitvat opened 2 years ago

ankitvat commented 2 years ago

After entering the phone number ... The OTP gets copied from the clipboard but if I want to enter the OTP manually, keyboard isn't showing on Android when focusing on the input field. The input field is focused but keyboard isn't showing

Code

<OTPInputView autoFocusOnLoad codeInputFieldStyle={styles.unfocusedField} codeInputHighlightStyle={styles.focusedField} pinCount={6} ref={otpInputRef} onCodeChanged={onCodeChanged} keyboardType='phone-pad' onCodeFilled={() => { codeSet(); // console.log("code", code); // (envKey === "-prod" ? verify() : devFlow()) }} />

Code is wrapped inside a View

Expected Behaviour: When I focus on the input the keyboard should pop-up

Smartphone: OnePlus 7tg

Abdullah121 commented 2 years ago

Same here

Abdullah121 commented 2 years ago

set autoFocusOnLoad={false}

ZentPeople commented 2 years ago

Is there any workaround without setting autoFocusOnLoad to false as we need it to be autofocused