[Android] v3 `ReanimatedSwipeable` takes over a vertical scroll in a React Native list once the finger drifts 10 dp sideways
Maintainers usually reply within 2 days
@JaydeepAgravat is already working on this.
Since Nov 6, 2026.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- android, react-native, typescript
Research direction
Start by tracing RNGestureHandlerRootHelper.requestDisallowInterceptTouchEvent() and GestureHandlerOrchestrator.cancelAllLegacyHandlers(), then check how v3 detector action types are handled alongside the deferred cancellation from #4441. Reproduce with the linked example on Android using a vertical drag with sideways drift. Done when the React Native list keeps scrolling without opening a swipeable row, while existing gesture cancellation behavior still works.
Written by the indexing model from the issue text.
Description
Description
On Android, a ReanimatedSwipeable row inside a React Native FlatList / SectionList / ScrollView can take the touch away from a scroll that has already started. A vertical scroll with any slight sideways drift (a normal thumb arc) gets cancelled, and the row under the finger swipes open instead. iOS doesn't have the problem: once UIScrollView's pan has recognized, the row can't activate.
The cause looks like the same gap as #4432, this time for gestures created with the v3 hooks:
- When React Native's
ScrollViewstarts dragging, it callsrequestDisallowInterceptTouchEvent(true).RNGestureHandlerRootHelper.requestDisallowInterceptTouchEvent()responds withGestureHandlerOrchestrator.cancelAllLegacyHandlers(), which only cancels handlers whose action type isJS_FUNCTION_OLD_API,JS_FUNCTION_NEW_API,REANIMATED_WORKLETorNATIVE_ANIMATED_EVENT. ReanimatedSwipeablenow usesusePanGesturewith the v3GestureDetector, so its pan is attached withACTION_TYPE_NATIVE_DETECTOR. That type isn't in the list above.- #4441 added deferred cancellation (
cancelHandlersOnNativeTouchGrab), but it only coversNativeViewGestureHandlers that opt in (buttons).
As a result the scroll view's touch grab doesn't cancel the swipeable's pan. The pan keeps tracking for the rest of the scroll and activates as soon as the total horizontal movement passes activeOffsetX (10 dp by default). The root then intercepts and cancels the ScrollView mid-scroll.
The v2 Swipeable and the v2 Gesture.Pan() API didn't have this problem, because their action types are in cancelAllLegacyHandlers, so this is a regression for anyone moving to v3.
Workaround: use gesture-handler's ScrollView as the list's scroll view (renderScrollComponent={(props) => <ScrollView {...props} />}) together with gesture-handler's RefreshControl. The scroll then takes part in the orchestrator's normal arbitration and wins once it's active.
Steps to reproduce
- Render a vertical React Native
FlatList(not gesture-handler's) ofReanimatedSwipeablerows withrenderRightActions. - On an Android device, drag upward about 900 px with roughly 250 px of leftward drift (about 15° off vertical).
- The list barely scrolls, and the row under the finger swipes open to its right actions.
- Drag straight up the same distance: the list scrolls normally.
- Switch the list to gesture-handler's
FlatList(or pass gesture-handler'sScrollViewviarenderScrollComponent) and repeat step 2: the list scrolls and no row opens.
import { FlatList, Text, View } from 'react-native';
import ReanimatedSwipeable from 'react-native-gesture-handler/ReanimatedSwipeable';
const data = Array.from({ length: 50 }, (_, i) => String(i));
export default function App() {
return (
<FlatList
data={data}
keyExtractor={(item) => item}
renderItem={({ item }) => (
<ReanimatedSwipeable
renderRightActions={() => <View style={{ width: 80, backgroundColor: 'red' }} />}
>
<View style={{ height: 72, justifyContent: 'center', padding: 16, backgroundColor: '#eee' }}>
<Text>Row {item}</Text>
</View>
</ReanimatedSwipeable>
)}
/>
);
}
Suggested fix: include ACTION_TYPE_NATIVE_DETECTOR (and ACTION_TYPE_VIRTUAL_DETECTOR, if it applies) in the handlers cancelled when a native view grabs the touch mid-gesture, or give them the deferred grabbedMidGesture treatment from #4441.
A link to a Gist, an Expo Snack or a link to a repository based on this template that reproduces the bug.
https://github.com/IGx89/rngh-swipeable-scroll-repro
Gesture Handler version
3.3.0 (code unchanged on main / 3.4.0)
React Native version
0.88.1
Platforms
Android
JavaScript runtime
Hermes
Workflow
Using Expo Prebuild or an Expo development build
Build type
Debug mode
Device
Real device
Device model
Samsung Galaxy XCover Pro (SM-G715U), Android 13
Acknowledgements
Yes
- Dominant language
- TypeScript
- Stars
- 6.8k
- Forks
- 1.1k
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 46
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from software-mansion/react-native-gesture-handler
-
[Jest][3.5.0] `fireEvent.press` no longer reaches `Touchable` when its child is inside an `InterceptingGestureDetector`Possibly taken @m-bert claimed this 3 days ago. OpenMissing info Platform: Web
Difficulty 3/5 1-2 days Newbie friendliness 72/100
software-mansion/react-native-gesture-handler#4689 · 4 comments ·
Maintainers usually reply within 2 days
-
[Web] GestureDetector blocks context menu by defaultPossibly taken @lassiecoder claimed this 4 days ago. OpenPlatform: Web
Difficulty 3/5 1-2 days Newbie friendliness 56/100
software-mansion/react-native-gesture-handler#4687 · 3 comments ·
Maintainers usually reply within 2 days
-
Jest: with the hook API, raw touch events fired under a `GestureDetector` don't reach ancestors under Testing Library 14May be free again @aliassar claimed this 13 days ago, and no pull request is open. OpenPlatform: Android Platform: iOS
Difficulty 3/5 1-2 days Newbie friendliness 66/100
software-mansion/react-native-gesture-handler#4656 · 1 comment ·
Maintainers usually reply within 2 days
-
[Android] A held tap on a Touchable or Pressable in ScrollView does nothing while the keyboard is upPossibly taken @m-bert claimed this 6 days ago. OpenMissing repro Platform: Android
Difficulty 4/5 3-5 days Newbie friendliness 50/100
software-mansion/react-native-gesture-handler#4653 · 7 comments ·
Maintainers usually reply within 2 days
-
[IOS] The "hitslop" attribute used in the packaging component FlatList does not work as expected.OpenClose when stale Missing repro Platform: iOS
Difficulty 3/5 1-2 days Newbie friendliness 48/100
software-mansion/react-native-gesture-handler#4649 · 2 comments ·
Maintainers usually reply within 2 days
All issues in software-mansion/react-native-gesture-handler
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 2 days
-
nip98: validateEvent skips the payload check for a string or bytes bodyMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
nbd-wtf/nostr-tools#599 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
LemmyNet/lemmy-ui#4442 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Zettlr/Zettlr#6664 · 1 comment ·
Maintainers usually reply within 1 day
-
Microsoft Outlook add attachment reads the binary field from item 0Possibly taken @joshbarros claimed this today. Openstatus:in-linear
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
n8n-io/n8n#44021 · 2 comments ·
Maintainers usually reply within 1 day