question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nested touchables don't work correctly on Android

See original GitHub issue

Expected Behavior

Kapture 2019-10-05 at 16 34 43

Current Behavior

Kapture 2019-10-05 at 16 57 32

Description

When you have nested touchables from react-native-gesture-handler and press the inner touchable, the outer one also gets pressed.

Reproduction (Android): https://snack.expo.io/@brunolemos/rngh-nested-touchable-android-bug

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:19
  • Comments:37 (10 by maintainers)

github_iconTop GitHub Comments

23reactions
tankers746commented, Feb 26, 2021

Passing disallowInterruption={true} to the touchable should fix this.

<TouchableOpacity {...props} disallowInterruption={true} />,

Should this be enabled by default in GenericTouchable?

16reactions
akug17commented, May 31, 2020

I tried TouchableOpacity from ‘react-native’ lib it works fine

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - Nested touchables don't work correctly on Android -
When you have nested touchables from react-native-gesture-handler and press the inner touchable, the outer one also gets pressed. Reproduction (Android): ...
Read more >
Nested TouchableOpacity in a FlatList is not working properly
Working : i have created a touchable flatlist for cards and nested another touchable for the kebab dropdown which get enable on the...
Read more >
Troubleshooting | Stream Chat - React Native SDK Docs
Nested gesture handlers and touchables need special treatment and can act differently on iOS & Android. If you want Nested Touchables to work...
Read more >
rngh-nested-touchable-android-bug - Expo Snack
rngh-nested-touchable-android-bug. No description. Open with Expo Go. Open in editor. Need Expo? Don't have the Expo Go? Download the app to try this...
Read more >
ViewGroup - Android Developers
FOCUS_DOWN If the reference refers to a view that does not exist or is part of a ... Return the current axes of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found