-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keyboard cannot be dismissed for CardForm component #954
Comments
Is this on Android or iOS? or both? Filling out the entire bug report template is a huge help to us in debugging the issue |
This is for iOS. It's basically the same issue with #222, however for CardForm that's why I didn't get too detailed about it, apologies. |
Using const MyComponent = () => {
const closeKeyboard = useCallback(() => {
focusInputRef.current.focus();
Keyboard.dismiss();
focusInputRef.current.blur();
}, []);
return (
<View>
<CardForm />
<TextInput
ref={focusInputRef}
accessible={false}
accessibilityElementsHidden={true}
style={styles.hackFocusInput}
/>
</View>
)
}
const styles = {
hackFocusInput: {
width: 1,
height: 1,
position: 'absolute',
bottom: 0,
right: 0,
opacity: 0,
},
} Using |
Same issue here but only with Zipcode. Urgent to fix this. |
keyboardShouldPersistTaps with StripeContainer on screen It's work for me |
Describe the bug
Keyboard cannot be closed by tapping away from the screen. I've programmatically called Keyboard.dismiss() however this works for other inputs but not for the CardForm inputs.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Keyboard should easily be dismissed
Additional context
I've already followed the solution from:
#222
however this does not work for CardForm
The text was updated successfully, but these errors were encountered: