Firstly, thanks for your work on this project! π
Today I used patch-package to patch react-native-deck-swiper@2.0.5 for the project I'm working on.
If swipe and navigate to another screen and return back to the screen the swiper deck is frozen intermittently. I suppose the root cause is if we do it fast the component can't register an event in time and we trying to remove the event listener that isn't registered yet.
And one more fix - removeEventListener is deprecated and I replaced it with the remove method.
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch
react-native-deck-swiper@2.0.5
for the project I'm working on.If swipe and navigate to another screen and return back to the screen the swiper deck is frozen intermittently. I suppose the root cause is if we do it fast the component can't register an event in time and we trying to remove the event listener that isn't registered yet.
And one more fix -
removeEventListener
is deprecated and I replaced it with theremove
method.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.