From 8f7b60b21b9050e507c920283dd8f362463ad5c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrej=20Kostic=CC=81?= Date: Tue, 14 Nov 2023 16:48:26 +0100 Subject: [PATCH] fix for swipeable actions when toast is shown from React-Native Modal --- src/toast.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/toast.tsx b/src/toast.tsx index 2e7556f..3bcb65a 100644 --- a/src/toast.tsx +++ b/src/toast.tsx @@ -211,6 +211,7 @@ const Toast: FC = (props) => { if (panResponderRef.current) return panResponderRef.current; const swipeThreshold = Platform.OS === "android" ? 10 : 0; panResponderRef.current = PanResponder.create({ + onStartShouldSetPanResponder: (evt, gestureState) => true, onMoveShouldSetPanResponder: (_, gestureState) => { //return true if user is swiping, return false if it's a single click return (