Open Krupskis opened 3 days ago
Hey! 👋
The issue doesn't seem to contain a minimal reproduction.
Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?
Did some more investigation, seems like Pan Gesture stops working after navigation to other screens. We wrote our own Tab Navigation and use display: "none"
to hide inactive screens, rewrote to use opacity: 0
instead and seems to work now.
Hi! Could you share a copy-pastable reproduction? This one misses some of the functions masking it harder to find out cause of this bug.
Description
I am using Pan Gesture to build a vertical pager for 2 pages. Each page is a flatlist of items. The idea is to activate pan gesture when either at the bottom of the top list or at the top of the bottom list and animated transition between pages, pages are just views of SCREEN_HEIGHT contained within a view of 2 * SCREEN_HEIGHT.
The code is fairly simple, the issue is after some time of inactivity in the app
onBegin
andonUpdate
andonEnd
callbacks won't get called anymore making the pager not functional. When that happens I seeisPagerEnabled
istrue
, but no logs from the callbacks are coming through. Refresh of the app fixes the issue.I've tried to stress test the pager by switching pager rapidly, or cancelling animation mid page switch, but couldn't replicate the issue - it all happens pretty randomly.
Steps to reproduce
There is no clear reproduction steps, the behavior seems flaky, happens after some time of inactivity.
Snack or a link to a repository
can't really reproduce this, issue is flaky
Gesture Handler version
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
Real device
Device model
Iphone 15 pro
Acknowledgements
Yes