react-native-gesture-handler: React-Native 0.61.0-rc.0 - Touchable* & *Button does not trigger `onPress` event.

Hi,

With newest RC version, onPress event is not triggered. I’m not sure yet with GestureHandlers but I will create repro example with both 60.x & 61.x.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 21
  • Comments: 23 (1 by maintainers)

Commits related to this issue

Most upvoted comments

@kmagiera I’m closing this as RNGH is working properly with RN 61.1.

Thanks 🙌 🙌 🙌

With 0.61.0-rc.2 also all the components relying on PanGestureHandler don’t seem to work. Native Swipeable and react-native-modalize don’t accept any swipe gestures anymore.

@dsznajder This issue can be reproduced with the latest RN version, could You please reopen the issue?

I found a workaround, replace componentDidUpdate() to UNSAFE_componentWillUpdate(), working on RN 0.61.5.

I’m seeing this with just Android. iOS still seems to be working.

For me, the problem was solved by using the Touchable* from the react-native-gesture-handler package instead of the ones from react-native. On RN 0.63 it also doesn’t work with the new Pressable component.

I tried 0.61-rc.3. It has such problem only on Android. AndroidX was enabled.

Just to confirm, upgraded to the latest rn 0.61.0-rc.2 and onPress is not triggered in Android. iOS works fine.