react-native-gesture-handler icon indicating copy to clipboard operation
react-native-gesture-handler copied to clipboard

BaseButton does not seem to respect `TouchableWithoutFeedback`

Open chrisdrackett opened this issue 5 years ago • 4 comments

I have a ScrollView with keyboardShouldPersistTaps set to never. If I put a TouchableWithoutFeedback from react-native and a TextInput in this view tapping the TouchableWithoutFeedback does not trigger its onPress and only blurs the TextInput. If I however replace the TouchableWithoutFeedback with a BaseButton from this package tapping the button both blurs the view and activates the onPress on BaseButton.

chrisdrackett avatar Feb 28 '20 17:02 chrisdrackett

If it's still relevant, could you provide some small repro?

jgonet avatar Sep 03 '20 12:09 jgonet

let me see if I can even remember where we ran into this and if I can reproduce!

chrisdrackett avatar Sep 03 '20 16:09 chrisdrackett

I think I probably have a typo above, I'm guessing the first TouchableWithoutFeedback should be keyboardShouldPersistTaps

chrisdrackett avatar Sep 03 '20 16:09 chrisdrackett

ok, here is a working example: https://snack.expo.io/@tiltshift/cf2c6f

when the input is focused at the bottom of the card if you press "baseButton" the button press count at the top will update. This is inconsistent with the behavior we get with the native TouchableWithoutFeedback where the count value does not update

chrisdrackett avatar Sep 03 '20 16:09 chrisdrackett