[General] Change yieldsToNativeGestures to yieldsToContinuousGestures - #4152
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Renames the Native gesture configuration option from yieldsToNativeGestures to yieldsToContinuousGestures, broadening the “yield” behavior from only Native-view peers to any continuous gesture across Web, Android, and iOS.
Changes:
- Replaced
yieldsToNativeGestureswithyieldsToContinuousGesturesin public types/config and docs. - Introduced a cross-platform
isContinuousflag (Web/Android/iOS) and marked relevant handlers as continuous. - Updated the common-app Reanimated Swipeable example to use the v3
Touchable.
Reviewed changes
Copilot reviewed 29 out of 29 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/react-native-gesture-handler/src/web/interfaces.ts | Renames the web config field to yieldsToContinuousGestures. |
| packages/react-native-gesture-handler/src/web/handlers/RotationGestureHandler.ts | Marks Rotation as isContinuous on web. |
| packages/react-native-gesture-handler/src/web/handlers/PinchGestureHandler.ts | Marks Pinch as isContinuous on web. |
| packages/react-native-gesture-handler/src/web/handlers/PanGestureHandler.ts | Marks Pan as isContinuous on web. |
| packages/react-native-gesture-handler/src/web/handlers/NativeViewGestureHandler.ts | Applies renamed config and updates interruption logic to use isContinuous. |
| packages/react-native-gesture-handler/src/web/handlers/ManualGestureHandler.ts | Marks Manual as isContinuous on web. |
| packages/react-native-gesture-handler/src/web/handlers/IGestureHandler.ts | Adds isContinuous to the web handler interface. |
| packages/react-native-gesture-handler/src/web/handlers/HoverGestureHandler.ts | Marks Hover as isContinuous on web. |
| packages/react-native-gesture-handler/src/web/handlers/GestureHandler.ts | Adds default isContinuous = false to the web base handler. |
| packages/react-native-gesture-handler/src/v3/hooks/gestures/native/NativeTypes.ts | Renames the v3 Native config property and updates the native-props whitelist set. |
| packages/react-native-gesture-handler/src/v3/components/Touchable/Touchable.tsx | Switches Touchable’s internal Native gesture config to yieldsToContinuousGestures: true. |
| packages/react-native-gesture-handler/apple/RNGestureHandler.mm | Adds default -isContinuous implementation returning NO. |
| packages/react-native-gesture-handler/apple/RNGestureHandler.h | Exposes -isContinuous on the base iOS handler interface. |
| packages/react-native-gesture-handler/apple/Handlers/RNRotationHandler.m | Marks Rotation as continuous on iOS. |
| packages/react-native-gesture-handler/apple/Handlers/RNPinchHandler.m | Marks Pinch as continuous on iOS. |
| packages/react-native-gesture-handler/apple/Handlers/RNPanHandler.m | Marks Pan as continuous on iOS. |
| packages/react-native-gesture-handler/apple/Handlers/RNNativeViewHandler.mm | Renames config key and uses isContinuous to decide which recognizers to preserve. |
| packages/react-native-gesture-handler/apple/Handlers/RNManualHandler.m | Marks Manual as continuous on iOS. |
| packages/react-native-gesture-handler/apple/Handlers/RNHoverHandler.m | Marks Hover as continuous on iOS (iOS + macOS sections). |
| packages/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootHelper.kt | Marks RootViewGestureHandler as continuous on Android. |
| packages/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/core/RotationGestureHandler.kt | Marks Rotation as continuous on Android. |
| packages/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/core/PinchGestureHandler.kt | Marks Pinch as continuous on Android. |
| packages/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/core/PanGestureHandler.kt | Marks Pan as continuous on Android. |
| packages/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/core/NativeViewGestureHandler.kt | Renames config key and updates interruption logic to use isContinuous. |
| packages/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/core/ManualGestureHandler.kt | Marks Manual as continuous on Android. |
| packages/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/core/HoverGestureHandler.kt | Marks Hover as continuous on Android. |
| packages/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandler.kt | Adds base isContinuous flag (default false) on Android. |
| packages/docs-gesture-handler/docs/gestures/use-native-gesture.mdx | Updates documentation to the new option name and semantics. |
| apps/common-app/src/new_api/components/swipeable/index.tsx | Updates example row pressable from RectButton to v3 Touchable. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
m-bert
approved these changes
May 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Changes
yieldsToNativeGesturestoyieldsToContinuousGestures. Instead of allowing native gestures to take precedence, it allows all continuous gestures to do so.Test plan
Updated
Reanimated Swipeableexample to useTouchable