React-native-gesture-handler: BaseButton does not seem to respect `TouchableWithoutFeedback`

Created on 28 Feb 2020  路  4Comments  路  Source: software-mansion/react-native-gesture-handler

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.

Missing info Touchable

Most helpful comment

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

All 4 comments

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

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

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jhalborg picture jhalborg  路  5Comments

jacobrosenskold picture jacobrosenskold  路  3Comments

rgangopadhya picture rgangopadhya  路  4Comments

enahum picture enahum  路  4Comments

wcandillon picture wcandillon  路  4Comments