-
-
Notifications
You must be signed in to change notification settings - Fork 983
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix swipeable swiping to left when no
renderRightActions
is set (#3145
) ## Description Fixed `Swipeable` being able to be opened to the left when no right element is present. This was caused by incorrectly set `rightOffset`, equal to `0` when no elements were present, even though it should've been set to `rowWidth` ## Test plan - Open any swipeable example in the example app - Remove the `renderRightActions` prop - See how before this fix, `Swipeable` could've still been opened to the left, and now it can't be.
- Loading branch information
Showing
1 changed file
with
18 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters