Skip to content

Commit 5eddcfb

Browse files
committed
Add comment on why the detector is disabled there
1 parent b122859 commit 5eddcfb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gesture-handler/ScreenGestureDetector.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ import {
2424
} from './constraints';
2525
import { GestureProviderProps } from '../types';
2626

27+
// The detector is disabled to work around issue with pressables
28+
// losing focus. See https://github.com/software-mansion/react-native-screens/pull/2819
2729
const EmptyGestureHandler = Gesture.Fling().enabled(false);
2830

2931
const ScreenGestureDetector = ({

0 commit comments

Comments
 (0)