software-mansion / react-native-gesture-handler

Declarative API exposing platform native touch and gesture system to React Native.
https://docs.swmansion.com/react-native-gesture-handler/
MIT License
6.13k stars 982 forks source link

Add `enabled` prop support to swipeable #3011

Closed latekvo closed 3 months ago

latekvo commented 3 months ago

Description

This issue fixes enabled prop having no effect on the new Swipeable.

Reported here by @jackstudd

Test plan

I added the enabled usage only for the Pan gesture and not the Tap gesture intentionally. The Tap gesture should remain active even when the rest of swipeable is disabled, as I found when testing the legacy swipeable