deanmcpherson / react-native-sortable-listview

Drag drop capable wrapper of ListView for React Native
MIT License
917 stars 235 forks source link

Fix crash when switching too fast between two screens #119

Closed kornfleks closed 6 years ago

kornfleks commented 6 years ago

You can reproduce the bug by switching between two screens (one of them containing the sortable listview) faster than the transition animation duration. The application crash saying: "cannot read property measureWrapper of undefined".

Thanks to @gouxlord

nihgwu commented 6 years ago

Not quite sure how this could happen as we have cancel the timeout in componentWillUnmount

nihgwu commented 6 years ago

since this change do solve you problem, I'd love to merge it, thanks