open release_tests > Swipeable Reanimation example in both an emulator and an editor
add enabled={false} prop to both the swipeables
legacy swipeable is now immovable
new swipeable used to be unaffected, with this fix it should be immovable as well
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
Description
This issue fixes
enabled
prop having no effect on the new Swipeable.Reported here by @jackstudd
Test plan
release_tests
>Swipeable Reanimation
example in both an emulator and an editorenabled={false}
prop to both the swipeablesswipeable
is now immovableswipeable
used to be unaffected, with this fix it should be immovable as wellI added the
enabled
usage only for thePan
gesture and not theTap
gesture intentionally. TheTap
gesture should remain active even when the rest ofswipeable
is disabled, as I found when testing the legacyswipeable