You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the property left (or right) changes his value, the width of the swipe movement doesn't get recalculated.
If for example the left property contains 2 buttons, the width is calculated in the componentDidMount method with an initial value. After a change in the left property it has now 4 button, but the swipe width is still the initial one (when it should be much more). The result is that the two new buttons are only partially visible or not visible al all.
The same happens with the right property.
I only verified this problem in the browser, not in native version of the Swipeout component.
To solve this problem simply add a componentDidUpdate like this:
If the property left (or right) changes his value, the width of the swipe movement doesn't get recalculated.
If for example the left property contains 2 buttons, the width is calculated in the componentDidMount method with an initial value. After a change in the left property it has now 4 button, but the swipe width is still the initial one (when it should be much more). The result is that the two new buttons are only partially visible or not visible al all.
The same happens with the right property.
I only verified this problem in the browser, not in native version of the Swipeout component.
To solve this problem simply add a componentDidUpdate like this:
Thanks
The text was updated successfully, but these errors were encountered: