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
{{ message }}
Repository navigation
Swipeable on Android throws exception if component is removed #48
I have a FlatList with Swipeable items. I have a handler onSwipeableLeftOpen that will remove the item from the list. Each item also has a checkbox that when clicked will remove the item from the list. If the only way you remove items is to swipe them away everything works great. If you click the checkbox the item is removed, but the next time you touch the list it will throw an exception.
I have only tested this on Android.
I tried to debug but I haven't had much luck tracking it down. I can say the exception is thrown in GestureHandlerOrchestrator.java line 318:
throw new IllegalArgumentException("Parent is null? View is no longer in the tree");
Thanks a lot @tallenh for reporting this issue. I allowed me to catch two serious problems with Android implementation. These are fixed in #53 which will go out in the next release today or tomorrow
Activity
kmagiera commentedon Oct 30, 2017
Thanks for reporting @tallenh I'm going to take a look at this soon
osdnk commentedon Nov 4, 2017
I also came across this issue and made a PR. It works in my case
kmagiera commentedon Nov 10, 2017
@osdnk have you managed to repro this issue on the example app @tallenh provided: https://gist.github.com/tallenh/dfebf73859cca956bf8d6f31ccc4bf7c
osdnk commentedon Nov 10, 2017
Yes. I've just pasted this gist into app
GenyMotion, Nexus 5, API 23
kmagiera commentedon Nov 14, 2017
Thanks a lot @tallenh for reporting this issue. I allowed me to catch two serious problems with Android implementation. These are fixed in #53 which will go out in the next release today or tomorrow
[iOS] Fix callback crashes from detached gesture recognizers (#4679)
[iOS] Fix callback crashes from detached gesture recognizers (#4679)