Skip to content

Swipeable renderLeftActions button not firing #3223

@erie-e9

Description

@erie-e9

Description

Trying with simple example, I faced next issue, I can't trigger onPress action on renderLeftActions, only renderRightActions works fine. Even if I momentarily swap the body of both, the problem persists.
This is working fine in v2.20.2, but something crashes in 2.21.0, 2.21.1 and 2.21.2.

Video.

Simulator.Screen.Recording.-.iPhone.16.Pro.-.2024-11-18.at.13.35.23.mp4

Steps to reproduce

  1. Implement Swipeable inside a GestureHandlerRootView, with two levels of TouchableOpacity children.
  2. Swipe on the Swipeable. Both right and left TouchableOpacity can be displayed.
  3. Once the button is displayed, try to trigger onPress action.
  4. Only right onPress action works, left one seems to be blocked or under-indexed, onPress action doesn't work.

Snack or a link to a repository

https://snack.expo.io/

Gesture Handler version

2.21.0, 2.21.1 and 2.21.2

React Native version

0.76.2

Platforms

iOS

JavaScript runtime

None

Workflow

React Native (without Expo)

Architecture

Fabric (New Architecture)

Build type

Debug mode

Device

iOS simulator

Device model

iPhone 16 Pro simulator

Acknowledgements

Yes

Metadata

Metadata

Assignees

Labels

Can reproIt is confirmed we can reproduce the issuePlatform: AndroidThis issue is specific to AndroidPlatform: WebPlatform: iOSThis issue is specific to iOS

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions