We are using react-native-gesture-handler in our project and currently working on a layout that involves Touchables and nested FlatLists. We have come across an issue on iOS and are hoping to receive some guidance. I am creating this issue because I am seeing the behaviour we expect on Android.
A quick description of the layout is as follows:
The screen displays a vertical list of cards to users
the card shows a large image, and some text description
tapping anywhere on the card should open a new screen with additional details
The area on the card that shows the image is horizontal list allowing users to scroll through
Our issue is that while both the vertical and horizontal scrolling is working, tapping in the area occupied by the FlatList does not trigger the onPress callback of the Touchable. Only touches in the area occupied by the text description will trigger the onPress callback.
Please reference the screenshot below for a reference to the layout. The images are represented by the different color blocks.
Steps to reproduce
Render a vertical FlatList with Touchable items
Render a horizontal FlatList inside of the Touchable items
Description
Hello!
We are using react-native-gesture-handler in our project and currently working on a layout that involves Touchables and nested FlatLists. We have come across an issue on iOS and are hoping to receive some guidance. I am creating this issue because I am seeing the behaviour we expect on Android.
A quick description of the layout is as follows:
Our issue is that while both the vertical and horizontal scrolling is working, tapping in the area occupied by the FlatList does not trigger the onPress callback of the Touchable. Only touches in the area occupied by the text description will trigger the onPress callback.
Please reference the screenshot below for a reference to the layout. The images are represented by the different color blocks.
Steps to reproduce
See code sample below for an example:
Snack or a link to a repository
https://snack.expo.dev/wnDDkWgK60-bO0jYdCOBZ
Gesture Handler version
2.16.0
React Native version
0.71.16
Platforms
iOS
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
None
Device model
No response
Acknowledgements
Yes