-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
Platform: AndroidThis issue is specific to AndroidThis issue is specific to AndroidRepro providedA reproduction with a snack or repo is providedA reproduction with a snack or repo is provided
Description
Description
I initially reported this Issue in react-native-pager-view, but already closed as I found it's not scoped to PagerView exclusively
Starting RNGH LongPress while scrolling non-RNGH Scrollable disrupts Scrollable Control
Possibly it disrupts any long-lasting non-RNGH Gesture, I didn't check yet
Steps to reproduce
- Start swiping through ReactNative.
ScrollViewwithpagingEnabledset totrue(or react-native-pager-view.PagerView, which usesAndroidX.ViewPager2under the Hood) - LongPress at a ReactNativeGestureHandler's GestureDetector configured to handle LongPresses
- Swipe Gesture loses Control over Scrolling, but Scrollable doesn't recognize it
- in case of AndroidX.
ViewPager2itsViewPager2.OnPageChangeCallback.onPageScrollStateChangeddoesn't get called AND Pager stays indraggingState, not settling (till next Swipe Gesture or Tab Press) - in case of ReactNative.
ScrollViewitsonScrollEndDragdoesn't get called AND Snap-to-Page doesn't occur (till next Swipe Gesture)
[Videos are below]
A link to a Gist, an Expo Snack or a link to a repository based on this template that reproduces the bug.
In first Repro I'm using React Navigation's MaterialTopTabNavigator for simplicity, but Issue lays in ViewPager2
In second Repro I'm using ReactNative.ScrollView
Messages are shown for LongPresses to be easily noticeable, LongPress' Handlers might be empty
Repro with PagerView
FILE.2026-01-14.18.36.41.mp4
Repro with ReactNative.ScrollView
FILE.2026-01-15.15.04.47.mp4
Gesture Handler version
2.27.2
React Native version
0.80.2
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
New Architecture (Fabric)
Build type
None
Device
Real device
Device model
Pixel 6a (Android 16)
Acknowledgements
Yes
Metadata
Metadata
Assignees
Labels
Platform: AndroidThis issue is specific to AndroidThis issue is specific to AndroidRepro providedA reproduction with a snack or repo is providedA reproduction with a snack or repo is provided