You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using ReanimatedSwipeable to show a right action when a cell is swiped. We may also show that action when a button is tapped by calling openRight on that swipable. When the right action is shown, if we drag that action back instead of swiping it back, calling openRight will not show the action again. Please check the attached video.
We did some investigation and found that the variable rightActionTranslate defined in ReanimatedSwipeable.ts is -10000 when the bug happens, and so the right action is actually shown out of the screen.
ScreenRecording_10-31-2024.14-45-15_1.MP4
Steps to reproduce
We have a cell contained in ReanimatedSwipeable, and a Delete button in that cell. openRight will be called when the delete button is tapped.
Swipe the cell to show the right action
Drag the cell to hide the right action
Tap the Delete button so that openRight is called to show the right action
Snack or a link to a repository
Just use the latest code
Gesture Handler version
2.20.2
React Native version
0.74.3
Platforms
iOS
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered:
Could you please let me know if this issue still occurs in this PR?
Unfortunately I wasn't able to replicate it on my end, neither on the main branch, and the aforementioned PR.
Yeah. The issue doesn't occur in the PR you mentioned. But the PR has a regression though. If we call openRight before swiping the cell, the right action won't be shown. openRight only works after the cell has been swiped at least once.
Description
We are using ReanimatedSwipeable to show a right action when a cell is swiped. We may also show that action when a button is tapped by calling
openRight
on that swipable. When the right action is shown, if we drag that action back instead of swiping it back, callingopenRight
will not show the action again. Please check the attached video.We did some investigation and found that the variable
rightActionTranslate
defined in ReanimatedSwipeable.ts is -10000 when the bug happens, and so the right action is actually shown out of the screen.ScreenRecording_10-31-2024.14-45-15_1.MP4
Steps to reproduce
We have a cell contained in ReanimatedSwipeable, and a Delete button in that cell.
openRight
will be called when the delete button is tapped.openRight
is called to show the right actionSnack or a link to a repository
Just use the latest code
Gesture Handler version
2.20.2
React Native version
0.74.3
Platforms
iOS
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: