We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
onPress
onLongPress
1 parent fc92105 commit df7cd90Copy full SHA for df7cd90
packages/react-native-gesture-handler/src/components/Pressable/Pressable.tsx
@@ -231,8 +231,8 @@ const Pressable = forwardRef(
231
return;
232
}
233
234
- if (hasPassedBoundsChecks.current) {
235
- onLongPress?.(gestureTouchToPressableEvent(event));
+ if (hasPassedBoundsChecks.current && onLongPress) {
+ onLongPress(gestureTouchToPressableEvent(event));
236
isPressCallbackEnabled.current = false;
237
238
0 commit comments