Question
I am using e.g. this great carousel library for a signup form. I have multiple TextInput within these forms, that gets rendered to the carousel sliders. When entering text and clicking a submit button it needs at least two clicks, as first, the text view gets unfocused. So basically, we need a feature that allows us to handle TouchEvents while the keyboard is open.
I know that we have for ScrollView this KeyboardShouldPersistTaps Prop to alternate this behaviour. I think something similar in this library would be great! 馃槉
See my expo snack below for an example.
(Check the step you've followed - put an x character between the square brackets ([]).)
Yes
Both
Yes it is
React: 16.8.3
React native: 0.59.8
react-native-snap-carousel: 3.8.0
Target Platform:
Android (6.0)
iOS (12.4)
You can click the button while the keyboard is open.
The TextInput gets unfocused AND the button gets clicked (/the other touch events are getting handled).
It needs at least two clicks to trigger the button
https://snack.expo.io/@hannojg/rn-carousel-input-issue
Thank you for your time in advance, and your great library!
Hello,
I don't want to annoy, but is it possible to let me know the stage this issue is in?
Thank you!
Hi @hannojg,
Have you tried using prop keyboardShouldPersistTaps on the carousel itself?
It should work the same as with a regular ScrollView. See this if you want more info.
Hi all, any updates?
keyboardShouldPersistTaps not helped :(
it worked for me just adding keyboardShouldPersistTaps='handled'
<Carousel
keyboardShouldPersistTaps='handled'
...
/>
use keyboardShouldPersistTaps = {true} as a prop in
keyboardShouldPersistTaps = {true} is deprecated, keyboardShouldPersistTaps = "always" did the trick for me
Most helpful comment
Hi @hannojg,
Have you tried using prop
keyboardShouldPersistTapson the carousel itself?It should work the same as with a regular
ScrollView. See this if you want more info.