Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
enabled
prop support to swipeable (#3011)
## Description This issue fixes `enabled` prop having no effect on the new Swipeable. Reported [here](#2936 (comment)) by @jackstudd ## Test plan - 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`
- Loading branch information